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

Conflicted state set is a set of events #1120

Merged
merged 2 commits into from Jun 14, 2022
Merged

Conflicted state set is a set of events #1120

merged 2 commits into from Jun 14, 2022

Conversation

DMRobertson
Copy link
Contributor

@DMRobertson DMRobertson commented Jun 13, 2022

In #1042 I incorrectly wrote that the conflicted state set is a set of
pairs (K, V). We later take the union of the conflicted state set and
the auth difference. The latter is a set of events (V) only.

Fix this by making the conflicted state set a set of events rather than
a set of pairs. That is, the conflicted state set is a a Set[Event]
instead of a Set[((type, state key), event)].

Preview: https://pr1120--matrix-spec-previews.netlify.app

David Robertson added 2 commits June 13, 2022 17:07
In #1042 I incorrectly wrote that the conflicted state set is a set of
pairs (K, V). We later take the union of the conflicted state set and
the auth difference. The latter is a set of events (V) only.

Fix this by making the conflicted state set a set of events rather than
a set of pairs. That is, the conflicted state set is a a `Set[Event]`
instead of a `Set[((type, state key), event)]`.
@DMRobertson DMRobertson marked this pull request as ready for review June 13, 2022 16:15
@DMRobertson DMRobertson requested a review from a team as a code owner June 13, 2022 16:15
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

content/rooms/fragments/v2-state-res.md Show resolved Hide resolved
@@ -0,0 +1 @@
Improve readability and understanding of the state resolution algorithms.
Copy link
Member

Choose a reason for hiding this comment

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

use the same changelog as #1042 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did; the changelog was changed by #1102.

@DMRobertson DMRobertson requested a review from richvdh June 14, 2022 15:41
@richvdh richvdh merged commit 580be61 into matrix-org:main Jun 14, 2022
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.

None yet

2 participants