-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AC-2161] update cipher collections org vault modal #8027
Conversation
… collections in the org vault edit collections modal
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8027 +/- ##
==========================================
- Coverage 26.34% 26.22% -0.12%
==========================================
Files 2286 2278 -8
Lines 66938 66817 -121
Branches 12577 12571 -6
==========================================
- Hits 17635 17524 -111
+ Misses 47930 47925 -5
+ Partials 1373 1368 -5 ☔ View full report in Codecov by Sentry. |
No New Or Fixed Issues Found |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We still have some odd behavior going on here and need to investigate some more before merging this.
@@ -688,6 +688,15 @@ export class VaultComponent implements OnInit, OnDestroy { | |||
(c) => !c.readOnly && c.id != Unassigned, | |||
); | |||
} | |||
collections = collections.sort((a, b) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue / question: The collections
list here is being filtered above to only show non-readonly collections. I think something unexpected is going on if you're able to get a mix of readonly and non-readonly collections to sort here.
Are you using the v1 flexible collections flag? And/or is the limit admin access to collections/items setting enabled?
…ed, readonly, and manage properties
…when in individual vault
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, gave it go on my local environment as well and the dialog was behaving as expected in my tests, thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The CollectionsComponent
base class is AC Team's only file here, and it doesn't look like we should own it. I assume it's a holdover from when we owned collections. But all its subclasses are all in vault code, and vault now owns collections, so please move this into your code ownership as well.
I am approving in the meantime to unblock you but I am relying on @shane-melton being happy with it.
6a84b89
to
325df09
Compare
… super.loadCipher
…cover custom users with manage access
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is pretty much there -- just two questions to make sure we're on the same page and this is behaving as we both expect.
libs/angular/src/admin-console/components/collections.component.ts
Outdated
Show resolved
Hide resolved
…ditCipherCollections for better updates to collections modal when flag is off
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ready to go to me! Thanks for all your work on this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirming @shane-melton 's review
Objective
When Org has
Owners and Admins can manage all collections and items
turned onEdit Collections
modal and add/remove collections associated with the cipherWhen Org has
Owners and Admins can manage all collections and items
turned offEdit Collections
modalreadOnly
access to will be on the bottomCan Edit
collections associated with it, the Owner will be blocked from updating that ciphers collections. When trying to save in this instance they will get an error toastCode changes
editableCollections$
. Pass in flexible collections flag to modalcanEditAllCiphers
boolean to assess what endpoint to hitcanEditAllCiphers
- added to loadCipher in org-vault collections component and submit in libs collections componentRecording
First Recording For Original Flow
https://github.com/bitwarden/clients/assets/8302660/28f6cf86-4bb7-4b5f-8eaf-4a0c169433d5
Second Recording For QA Bugs Found (AC-2283, AC-2279, AC-2280)
AC-2161_bugs_AC-2283_AC-2279_AC-2280.mov