-
Notifications
You must be signed in to change notification settings - Fork 1.5k
PM-27628 Rename Remove individual vault export policy #17335
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
base: main
Are you sure you want to change the base?
Conversation
|
Great job! No new security vulnerabilities introduced in this pull request |
willmartian
left a comment
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.
Perhaps a PolicyService.policyAppliesToActiveUser$ helper method would be an appropriate addition given how often we combine it with AccountService.activeAccount$
|
Oh, welcome to Bitwarden! Happy first PR in clients. π |
|
Claude finished @bmbitwarden's task ββ View job Code ReviewI've analyzed the PR and djsmith85's concern is partially valid. The situation requires clarification: SummaryThe PR changes both the i18n key ( Findingsβ Finding 1: Incomplete i18n key migration will break translations The change renames the key in
Current state:
Affected locale files (67 total)All locale files under djsmith85 stated "if the message is not changed, then please don't replace the key." However, the message was changed:
This is a semantic change that removes "individual vault", making it shorter and potentially broader in meaning. This justifies creating a new key to signal translators that retranslation is needed. Clarification needed: Is the key change intentional given the message change, or should we keep the old key? RecommendationsOption 1: Complete the key migration (if rename is intentional)
Option 2: Revert key change (if broader impact isn't desired)
Given this PR's scope ("Rename Remove individual vault export policy"), Option 1 better aligns with the intent but requires updating 67 additional files. Review CompleteSummary: The key change is justified by the message change, but the implementation is incomplete. 67 locale files need the same key rename to prevent breaking non-English translations. |
Codecov Reportβ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #17335 +/- ##
=======================================
Coverage 41.25% 41.25%
=======================================
Files 3546 3546
Lines 102040 102040
Branches 15308 15308
=======================================
+ Hits 42095 42099 +4
+ Misses 58180 58177 -3
+ Partials 1765 1764 -1 β View full report in Codecov by Sentry. π New features to boost your workflow:
|
Hinton
left a comment
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.
Putting a hold on this until the discussion in jira are resolved. Browser and desktop should probably also be updated since the jira ticket contains figma designs of the browser extension.
Hinton
left a comment
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 please update the PR title and description to reflect the new scope.
Hinton
left a comment
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.
- I18n keys changed β
- All usages updated β
| }, | ||
| "disablePersonalVaultExport": { | ||
| "message": "Remove individual vault export" | ||
| "disableExport": { |
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.
β Finding 1: Key renamed but 67 other locale files not updated
Renaming this key from disablePersonalVaultExport to disableExport will break translations in all non-English locales. The old key still exists in 67 other messages.json files:
apps/web/src/locales/ar/messages.json
apps/web/src/locales/de/messages.json
apps/web/src/locales/es/messages.json
... (64 more files)
Options:
- Update all 68 locale files - Rename the key in every
messages.jsonfile (keep existing translations) - Revert key change - Keep
disablePersonalVaultExportas the key, only update the English message
Since the message content changed ("Remove individual vault export" β "Remove export"), Option 1 is more appropriate as it signals to translators that retranslation is needed.

Relates to: PM-27628
ποΈ Tracking
https://bitwarden.atlassian.net/browse/PM-27628
https://bitwarden.atlassian.net/browse/PM-7853
π Objective
Rename Remove individual vault export policy to Remove export
β° Reminders before review