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

Use stable identifiers from MSC3706 (Faster joins) #350

Merged
merged 3 commits into from
Jan 13, 2023

Conversation

DMRobertson
Copy link
Contributor

@DMRobertson DMRobertson commented Jan 12, 2023

I haven't made any effort to maintain backwards compatibility (unlike in matrix-org/synapse#14832). I'm happy to do so if needed, but might need some guidance.

Synapse issue: matrix-org/synapse#14828
Synapse PR: matrix-org/synapse#14832
Complement PR: matrix-org/complement#583
GMSL PR: #350
MSC: matrix-org/matrix-spec-proposals#3706
Spec diff: matrix-org/matrix-spec#1393

Pull Request Checklist

Signed-off-by: David Robertson <[email protected]>

@codecov
Copy link

codecov bot commented Jan 12, 2023

Codecov Report

Base: 48.15% // Head: 48.19% // Increases project coverage by +0.03% 🎉

Coverage data is based on head (41fb88c) compared to base (c6b15eb).
Patch coverage: 66.66% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #350      +/-   ##
==========================================
+ Coverage   48.15%   48.19%   +0.03%     
==========================================
  Files          37       37              
  Lines        5889     5889              
==========================================
+ Hits         2836     2838       +2     
+ Misses       2785     2783       -2     
  Partials      268      268              
Impacted Files Coverage Δ
federationclient.go 10.74% <0.00%> (ø)
federationtypes.go 33.06% <100.00%> (ø)
stateresolutionv2.go 89.88% <0.00%> (+0.39%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -444,9 +444,9 @@ type RespSendJoin struct {
// but not guaranteed to be present as it's only since MSC3083.
Event RawJSON `json:"event,omitempty"`
// true if the state is incomplete
PartialState bool `json:"org.matrix.msc3706.partial_state"`
PartialState bool `json:"members_omitted"`
Copy link
Member

Choose a reason for hiding this comment

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

I kinda wonder if we should rename the struct field while we're here. It'll break compatibility with any apps using it, but there doesn't seem to be any advantage to delaying it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure what the done thing is in GMSL, but I'm persuaded.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

See d5bef8c

Copy link
Member

@kegsay kegsay left a comment

Choose a reason for hiding this comment

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

Don't worry about backwards compat - we don't use faster joins in Dendrite yet.

@DMRobertson DMRobertson merged commit 67e0601 into main Jan 13, 2023
@DMRobertson DMRobertson deleted the dmr/msc-3706-stable-identifiers branch January 13, 2023 18:12
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