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

Remove MlsRules #243

Merged
merged 16 commits into from
Jan 22, 2025
Merged

Remove MlsRules #243

merged 16 commits into from
Jan 22, 2025

Conversation

mulmarta
Copy link
Contributor

This looks quite big but most changes are pretty trivial.

The real change is to

  • replace commit_options by appropriate functions of CommitBuilder
  • introduce ProposalBuilder
  • replace encryption_options by appropriate functions of CommitBuilder and ProposalBuilder

The only relevant files are

  • group/mod.rs (new API)
  • group/proposal.rs (ProposalBuilder)
  • group/commit/builder.rs (new options for CommitBuilder)

Follow-up

  • add any missing functionality to external group
  • add branch / reinit builders

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT license.

@mulmarta mulmarta requested a review from a team as a code owner January 21, 2025 15:44
@codecov-commenter
Copy link

codecov-commenter commented Jan 21, 2025

Codecov Report

Attention: Patch coverage is 94.14484% with 38 lines in your changes missing coverage. Please review.

Project coverage is 90.23%. Comparing base (51d8542) to head (3f2e8bd).

Files with missing lines Patch % Lines
mls-rs/src/group/proposal.rs 80.68% 28 Missing ⚠️
mls-rs/src/group/external_commit.rs 82.35% 3 Missing ⚠️
mls-rs/src/group/mod.rs 98.73% 3 Missing ⚠️
mls-rs/src/group/commit.rs 85.71% 2 Missing ⚠️
mls-rs/src/group/commit/builder.rs 98.40% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           1.x-main     #243      +/-   ##
============================================
- Coverage     90.30%   90.23%   -0.08%     
============================================
  Files           177      176       -1     
  Lines         31365    31222     -143     
============================================
- Hits          28325    28172     -153     
- Misses         3040     3050      +10     

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

tomleavy
tomleavy previously approved these changes Jan 22, 2025
Copy link
Contributor

@tomleavy tomleavy 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, see nit comments. One thing we should keep in mind as we get closer to where we want to be with the API is that we need to reorg the tests at some point to be able to be at the properly level. We should have builder level tests for edge cases and then integration tests for just general protocol testing. That will make some of these files a lot smaller

mls-rs/src/group/proposal.rs Show resolved Hide resolved
mls-rs/src/group/mod.rs Show resolved Hide resolved
@tomleavy
Copy link
Contributor

Any idea why the tests above are failing? Seems like something new?

@mulmarta
Copy link
Contributor Author

Any idea why the tests above are failing? Seems like something new?

It's new but unrelated, they fail on main too. We should investigate separately.

@mulmarta mulmarta merged commit c198d38 into 1.x-main Jan 22, 2025
30 checks passed
@mulmarta mulmarta deleted the 1.x-remove-mls-rules-2 branch January 22, 2025 15:11
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