-
Notifications
You must be signed in to change notification settings - Fork 927
[PM-26395] Hide "my items" collection when item is assigned to other collection #6018
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
[PM-26395] Hide "my items" collection when item is assigned to other collection #6018
Conversation
|
Great job! No new security vulnerabilities introduced in this pull request |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #6018 +/- ##
==========================================
- Coverage 84.59% 84.55% -0.05%
==========================================
Files 722 736 +14
Lines 54897 55268 +371
Branches 7581 7591 +10
==========================================
+ Hits 46440 46730 +290
- Misses 5800 5877 +77
- Partials 2657 2661 +4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| val selectableCollections: List<VaultCollection> | ||
| get() { | ||
| val collections = | ||
| organizations.first { it.id == selectedOrganizationId }.collections |
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.
Can we chain this:
val collections = organizations
.first { it.id == selectedOrganizationId }
.collections| selectedOrganization.collections.any { | ||
| it.id == collectionId && it.isDefaultUserCollection | ||
| } | ||
| } ?: false |
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.
Formatting here too:
cipherToMove
?.collectionIds
?.any { collectionId ->
selectedOrganization.collections.any {
it.id == collectionId && it.isDefaultUserCollection
}
}
?: false| it.id == collectionId && it.isDefaultUserCollection | ||
| } | ||
| } | ||
| ?: false |
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.
Thanks for updating that

🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-26395
📔 Objective
When an item belongs to a collection, should not be displayed the "My items" collection
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:) or similar for great changes:memo:) or ℹ️ (:information_source:) for notes or general info:question:) for questions:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:) for suggestions / improvements:x:) or:warning:) for more significant problems or concerns needing attention:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt:pick:) for minor or nitpick changes