-
Notifications
You must be signed in to change notification settings - Fork 862
[PM-21577] Handle organization limitItemDeletion from sync response. #5244
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
Conversation
Great job, no security vulnerabilities found in this Pull Request |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5244 +/- ##
==========================================
+ Coverage 81.65% 82.55% +0.89%
==========================================
Files 874 694 -180
Lines 57412 51648 -5764
Branches 7299 6950 -349
==========================================
- Hits 46882 42637 -4245
+ Misses 8029 6702 -1327
+ Partials 2501 2309 -192 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@@ -347,6 +347,9 @@ data class SyncResponseJson( | |||
|
|||
@SerialName("userIsClaimedByOrganization") | |||
val userIsClaimedByOrganization: Boolean = false, | |||
|
|||
@SerialName("limitItemDeletion") | |||
val limitItemDeletion: Boolean = 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.
Can you make sure to add a doc for this and add an override for the test fixture as well
app/src/main/kotlin/com/x8bit/bitwarden/data/auth/repository/model/Organization.kt
Show resolved
Hide resolved
app/src/main/kotlin/com/x8bit/bitwarden/ui/vault/feature/util/CollectionViewExtensions.kt
Show resolved
Hide resolved
@@ -12,6 +12,8 @@ import com.bitwarden.network.model.OrganizationType | |||
* @property shouldUseKeyConnector Indicates that the organization uses a key connector. | |||
* @property role The user's role in the organization. | |||
* @property keyConnectorUrl The key connector domain (if applicable). | |||
* @property userIsClaimedByOrganization Indicates that the user is claimed by the organization. |
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.
👍
@@ -93,6 +93,7 @@ fun createMockOrganization( | |||
familySponsorshipValidUntil: ZonedDateTime? = ZonedDateTime.parse("2023-10-27T12:00:00Z"), | |||
status: OrganizationStatusType = OrganizationStatusType.ACCEPTED, | |||
userIsClaimedByOrganization: Boolean = false, | |||
limitItemDeletion: Boolean = 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.
👍
🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-21577
📔 Objective
When organization
Limit item deletion to Members with Manage permission
is off, users withCan Edit
permission orCan edit, hide password
permission should be able to see the delete button in the menu.📸 Screenshots
Soon™
⏰ 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