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

refactor(crypto)!: Remove unused OneTimeKey::Key and SessionCreationError::OneTimeKeyUnknown variants #4194

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

zecakeh
Copy link
Collaborator

@zecakeh zecakeh commented Oct 30, 2024

As discussed in #4171 (comment).

@zecakeh zecakeh requested review from a team as code owners October 30, 2024 15:11
@zecakeh zecakeh requested review from jmartinesp and richvdh and removed request for a team October 30, 2024 15:11
Copy link
Contributor

@poljar poljar left a comment

Choose a reason for hiding this comment

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

Looks good, though the commit mentions that OneTimeKey::Signed was removed, no such variant exists and SignedKey certainly was not removed.

Copy link

codecov bot commented Oct 30, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 84.91%. Comparing base (71abbeb) to head (190fb3f).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...rates/matrix-sdk-crypto/src/types/one_time_keys.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4194      +/-   ##
==========================================
+ Coverage   84.89%   84.91%   +0.02%     
==========================================
  Files         272      272              
  Lines       29142    29131      -11     
==========================================
- Hits        24739    24738       -1     
+ Misses       4403     4393      -10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

…onError::OneTimeKeyUnknown` variants

Signed-off-by: Kévin Commaille <[email protected]>
@zecakeh zecakeh changed the title refactor(crypto)!: Remove unused OneTimeKey::Signed and SessionCreationError::OneTimeKeyUnknown variants refactor(crypto)!: Remove unused OneTimeKey::Key and SessionCreationError::OneTimeKeyUnknown variants Oct 30, 2024
@zecakeh
Copy link
Collaborator Author

zecakeh commented Oct 30, 2024

Oops, sorry about that. It's fixed now.

@poljar poljar enabled auto-merge (rebase) October 30, 2024 16:03
@poljar poljar merged commit 75683d2 into matrix-org:main Oct 30, 2024
39 checks passed
@zecakeh zecakeh deleted the rm-unsigned-otk branch October 30, 2024 16:14
@andybalaam
Copy link
Contributor

This contained some crypto interface changes (https://github.com/matrix-org/matrix-rust-sdk-crypto-wasm/actions/runs/11604714936/job/32313920920) that would have been helpful to document in the changelog

@andybalaam
Copy link
Contributor

This contained some crypto interface changes (matrix-org/matrix-rust-sdk-crypto-wasm/actions/runs/11604714936/job/32313920920) that would have been helpful to document in the changelog

No blame though - it's almost impossible to keep track of this and the automated checks we have are after-the-fact, which is how I'm picking it up.

@poljar
Copy link
Contributor

poljar commented Oct 31, 2024

This contained some crypto interface changes (https://github.com/matrix-org/matrix-rust-sdk-crypto-wasm/actions/runs/11604714936/job/32313920920) that would have been helpful to document in the changelog

Err, but we're using git-cliff for changelogs and this commit is even marked to contain a breaking change.

@poljar
Copy link
Contributor

poljar commented Oct 31, 2024

To clarify a bit further, every time you bump the SDK version in the WASM bindings you can use git cliff $commit..range to get the list of relevant changes. So no need to manually look through the CHANGELOG.md file and guestimate what was part of your bump or not.

Of course all of this might become even easier once we start doing releases, hopefully next week.

@andybalaam
Copy link
Contributor

Ah, so I should not have expected it to appear in CHANGELOG.md yet? Thanks, I didn't realise git-cliff was going to do this job for crypto stuff.

Of course all of this might become even easier once we start doing releases, hopefully next week.

🚀

@poljar
Copy link
Contributor

poljar commented Oct 31, 2024

Ah, so I should not have expected it to appear in CHANGELOG.md yet?

That's correct, the changelog will be updated during the release, it'll be a bit of a mess the first time we do this since we have a mix of cliff entries and hand written entries but eventually things will stabilize.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants