-
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
[PM-5273] Migrate state in CipherService #8314
Conversation
# Conflicts: # libs/common/src/platform/state/state-definitions.ts # libs/common/src/state-migrations/migrate.ts
# Conflicts: # libs/common/src/state-migrations/migrate.ts
# Conflicts: # apps/browser/src/popup/app.component.ts # libs/common/src/state-migrations/migrate.ts
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8314 +/- ##
==========================================
+ Coverage 27.30% 27.36% +0.05%
==========================================
Files 2341 2343 +2
Lines 68379 68418 +39
Branches 12785 12787 +2
==========================================
+ Hits 18669 18720 +51
+ Misses 48309 48296 -13
- Partials 1401 1402 +1 ☔ View full report in Codecov by Sentry. |
New Issues
|
# Conflicts: # libs/angular/src/services/jslib-services.module.ts
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.
Things are looking solid from my side, though the CipherService, FolderService, and CipherStateService classes seem to be missing Jest test coverage in a number of places. It'd be nice to address that, though I won't block the ticket for it.
Let me know if you need any further review on this.
# Conflicts: # libs/common/src/platform/abstractions/state.service.ts # libs/common/src/state-migrations/migrate.ts
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 requested change I asked for is implemented. There's still a nit (I left it unresolved above), but it's not blocking.
# Conflicts: # libs/common/src/state-migrations/migrate.ts
c0dc655
It's been approved by another Vault's team member.
* PM-5273 Initial migration work for localData * PM-5273 Encrypted and Decrypted ciphers migration to state provider * pm-5273 Update references * pm5273 Ensure prototype on cipher * PM-5273 Add CipherId * PM-5273 Remove migrated methods and updated references * pm-5273 Fix versions * PM-5273 Added missing options * Conflict resolution * Revert "Conflict resolution" This reverts commit 0c0c203. * PM-5273 Fix PR comments * Pm-5273 Fix comments * PM-5273 Changed decryptedCiphers to use ActiveUserState * PM-5273 Fix tests * PM-5273 Fix pr comments
With CipherService using StateProviders: #8314 - we should no longer need CipherService
* Remove usage of getBgService for CipherService With CipherService using StateProviders: #8314 - we should no longer need CipherService * Remove usage of getBgService for CollectionService With CollectionService using StateProviders: #7732 - we should no longer need CollectionService --------- Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
Type of change
Objective
Migrate CipherService state to state provider,
encryptedCiphers
,decryptedCiphers
,localData
,addEditCipherInfo
.Code changes
AddEditCipherInfo
. Refactor decrypt method so it could be used by derived state.Before you submit