-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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-14366] Deprecated active user state from billing state service #12273
[PM-14366] Deprecated active user state from billing state service #12273
Conversation
New Issues
Fixed Issues
|
Co-authored-by: ✨ Audrey ✨ <[email protected]>
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.
Just added a few suggestions and pointed out some failing tests. Thanks for working on this
apps/web/src/app/vault/individual-vault/vault-banners/services/vault-banners.service.ts
Outdated
Show resolved
Hide resolved
apps/cli/src/vault/create.command.ts
Outdated
cipher.organizationId == null && | ||
!(await firstValueFrom(this.accountProfileService.hasPremiumFromAnySource$)) | ||
) { | ||
const account = await firstValueFrom(this.accountService.activeAccount$); |
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 we can delete this and move the activeUserId
declared on L155 out of the try scope
...c/vault/popup/components/vault-v2/attachments/open-attachments/open-attachments.component.ts
Outdated
Show resolved
Hide resolved
…e-provider # Conflicts: # apps/desktop/src/vault/app/vault/vault.component.ts
bc195b3
…e-provider # Conflicts: # apps/browser/src/vault/popup/components/action-buttons.component.ts
🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-14366
📔 Objective
This PR updates the
BillingAccountProfileStateService
to remove its dependency onActiveUserStateProvider
by requiring explicit user IDs when checking premium status. This change:userId
parameter instead of relying on the active user stateAccountService.activeAccount$
, often via aswitchMap
, or otherwise,firstValueFrom
📸 Screenshots
⏰ 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