Skip to content
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

Clean up legacy stores #4663

Conversation

florianduros
Copy link
Contributor

@florianduros florianduros commented Jan 28, 2025

Task element-hq/element-web#26922
Part of #4653

The migration from the legacy crypto to the rust crypto uses the legacy stores. In order to be able to delete the rest of the legacy crypto, these stores shouldn't rely on the types of the legacy crypto.

This PR does:

  • Keep the store methods which are needed in the migration and in the tests
  • Extract the types of the legacy crypto in put then in. src/crypto/store/base.ts

The legacy crypto tests and linting are in failure due to the removal of the store methods. The legacy crypto will be removed in the next PR.

The rust cryto needs these legacy stores in order to do the migration from the legacy crypto to the rust crypto. We keep the following methods of the stores:
- Used in `libolm_migration.ts`.
- Needed in the legacy store tests.
- Needed in the rust crypto test migration.
In order to be able to delete the legacy crypto, these stores shouldn't rely on the legacy crypto. We need to extract the used types.
@florianduros florianduros marked this pull request as ready for review January 29, 2025 10:41
@florianduros florianduros requested a review from a team as a code owner January 29, 2025 10:41
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

src/crypto/store/base.ts Outdated Show resolved Hide resolved
src/crypto/store/base.ts Outdated Show resolved Hide resolved
@florianduros florianduros merged commit 344ffa3 into florianduros/rip-out-legacy-crypto/remove-legacy-crypto Jan 30, 2025
15 of 24 checks passed
@florianduros florianduros deleted the florianduros/rip-out-legacy-crypto/clean-up-store branch January 30, 2025 13:45
florianduros added a commit that referenced this pull request Jan 31, 2025
In #4663, the storeXXX methods were removed of the CryptoStore interface but they are used internally by IndexedDBCryptoStore.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants