-
Notifications
You must be signed in to change notification settings - Fork 1.4k
refactor(storage-core): move storage files out of @bitwarden/common #15076
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
1fdb0ab
to
2fb1932
Compare
New Issues (1)Checkmarx found the following issues in this Pull Request
|
473d3a7
to
fa999c5
Compare
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #15076 +/- ##
==========================================
- Coverage 36.75% 36.74% -0.01%
==========================================
Files 3201 3201
Lines 92657 92611 -46
Branches 13929 13924 -5
==========================================
- Hits 34060 34034 -26
+ Misses 57191 57172 -19
+ Partials 1406 1405 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
fa999c5
to
137bb21
Compare
d1aa48f
to
676ef09
Compare
676ef09
to
7b3006e
Compare
7b3006e
to
9fffbc0
Compare
|
||
import { AbstractStorageService, ObservableStorageService, StorageUpdate } from "./storage.service"; | ||
|
||
export class SerializedMemoryStorageService |
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.
We had two MemoryStorageService
s in different places. They are nearly identical, but one worked with serialized data and the other didn't so I renamed it. This might not be the best name. These services may even be redundant.
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 like it!
|
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.
Love it! So excited to have our stuff in libs!!
StorageUpdateType, | ||
StorageUpdate, | ||
ObservableStorageService, | ||
AbstractStorageService, |
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'm thinking this might be a good opportunity for getting rid of this prefix. We could rename it to StorageService
in the storage-core
lib but still re-export it as AbstractStorageService
for compat.
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.
This was previously in a spec
folder, in your opinion, should that continue?
|
||
import { AbstractStorageService, ObservableStorageService, StorageUpdate } from "./storage.service"; | ||
|
||
export class SerializedMemoryStorageService |
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 like it!
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 like that this is part of the template, to help people get a start with a test but once other tests are added do you think people should keep this test. Or should it be kept and test that the things you're expecting to export are actually there?
🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-22400
📔 Objective
This PR creates a platform owned
storage-core
library and attempts to extract all relevant code for it from@bitwarden/common
.Currently all classes are re-exported from their original homes in
@bitwarden/common
. Updates to references will come on followup PRs scoped to each impacted team.This library has no dependencies on other Bitwarden code.
📸 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