-
Notifications
You must be signed in to change notification settings - Fork 375
IndexedDB: Clean up code after EventCacheStore-MediaStore split
#5676
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
IndexedDB: Clean up code after EventCacheStore-MediaStore split
#5676
Conversation
…eir own module Signed-off-by: Michael Goldenberg <[email protected]>
Signed-off-by: Michael Goldenberg <[email protected]>
… to IndexedTypeSerializer{Error}
Signed-off-by: Michael Goldenberg <[email protected]>
…ndexedTypeSerializer{Error}
Signed-off-by: Michael Goldenberg <[email protected]>
Signed-off-by: Michael Goldenberg <[email protected]>
Signed-off-by: Michael Goldenberg <[email protected]>
Signed-off-by: Michael Goldenberg <[email protected]>
…saction Signed-off-by: Michael Goldenberg <[email protected]>
…e transaction Signed-off-by: Michael Goldenberg <[email protected]>
Signed-off-by: Michael Goldenberg <[email protected]>
Signed-off-by: Michael Goldenberg <[email protected]>
…dules Signed-off-by: Michael Goldenberg <[email protected]>
Signed-off-by: Michael Goldenberg <[email protected]>
…ache store migrations Signed-off-by: Michael Goldenberg <[email protected]>
…till under development Signed-off-by: Michael Goldenberg <[email protected]>
Signed-off-by: Michael Goldenberg <[email protected]>
Signed-off-by: Michael Goldenberg <[email protected]>
…il it is publicly exposed Signed-off-by: Michael Goldenberg <[email protected]>
…ache store module Signed-off-by: Michael Goldenberg <[email protected]>
…serializer modules while media store under development Signed-off-by: Michael Goldenberg <[email protected]>
Signed-off-by: Michael Goldenberg <[email protected]>
…uiet warning about using non-existent features in crypto store Signed-off-by: Michael Goldenberg <[email protected]>
CodSpeed Performance ReportMerging #5676 will not alter performanceComparing Summary
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5676 +/- ##
=======================================
Coverage 88.40% 88.40%
=======================================
Files 355 355
Lines 97713 97713
Branches 97713 97713
=======================================
Hits 86383 86383
Misses 7262 7262
Partials 4068 4068 ☔ View full report in Codecov by Sentry. |
…n feature is not enabled Signed-off-by: Michael Goldenberg <[email protected]>
…raits are only available when they are needed Signed-off-by: Michael Goldenberg <[email protected]>
Signed-off-by: Michael Goldenberg <[email protected]>
Hywan
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.
It seems to be mostly code move. Thanks for the cleanup, that's a nice improvement! Thank you for the efforts!
Background
This pull request is part of a series of pull requests to add a full IndexedDB implementation of the
EventCacheStore(see #4617, #4996, #5090, #5138, #5226, #5274, #5343, #5384, #5406, #5414, #5497, #5506, #5540, #5574, #5603). This particular pull request cleans up duplicated code and various warnings introduced during theEventCacheStore-MediaStoresplit (see #5568).Changes
Deduplication
The primary changes are de-duplicating the
transactionandserializermodules inevent_cache_storeandmedia_store. This additionally required some renaming of existing types in order to make sure that there were no clashes with existing top-level types.Warnings introduced by split
Additionally, many warnings were previously being suppressed, as the
event_cache_storemodule was under active development and not yet exposed publicly. Warning suppression was removed in #5568, but the warnings were not addressed. So, many of the changes deal with addressing warnings or suppressing them where development is still active.Warnings not introduced by split
Finally, there was an unrelated warning in the
crypto_storemodule introduced in #5537, which complained about the use of a feature that did not exist in the crate - namely,experimental-encrypted-state-eventswhich was used in thecryptostore_integration_tests. This was addressed in the same way that it was addressed inmatrix-sdk-sqlite- i.e., by introducing a feature flag in the crate.Future Work
MediaStoreSigned-off-by: Michael Goldenberg [email protected]