bitwarden / jslib

Common code referenced across Bitwarden JavaScript projects.
https://bitwarden.com
GNU General Public License v3.0
134 stars 138 forks source link

[SG-295] Use admin collections endpoint for org vault #806

Closed eliykat closed 2 years ago

eliykat commented 2 years ago

Type of change

Objective

Fix SG-295: after creating a new collection, you have to refresh the page before it will appear in the vault filters on the organization page.

This is because, pre-End User Vault Refresh, users with canEditAnyCollection permissions got their collections directly from the server, rather than synced data: https://github.com/bitwarden/web/blob/v2.28.1/src/app/organizations/vault/groupings.component.ts#L39. Best I can tell, this unintentionally got dropped during EUVR, so it's still pulling from outdated sync data.

Aside from that, we also just need to make sure that admin users are getting the right data.

@addisonbeck and @differsthecat can you please look at this as you are most familiar with filters.

This ~will~ may be picked to rc

Code changes

Before you submit

eliykat commented 2 years ago

Updated description per additional changes

eliykat commented 2 years ago

Closing in favour of @addisonbeck's work here: https://github.com/bitwarden/web/pull/1700