This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolve and share
state_groups
for all historical events in batch (MSC2716) #10975Resolve and share
state_groups
for all historical events in batch (MSC2716) #10975Changes from 13 commits
64448b3
f3174cd
6713a2a
97fa9a2
fa4f20d
4fea37e
8fb4d6f
96d9d11
b20fd16
0362887
cafb1dc
487754f
43f1328
d494673
6005c46
1227154
10c91ee
d0d6699
aa2e56e
3b085ab
b975bd2
c5ea94c
dc34f0f
77ffb69
1d1830d
14d6672
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is moved down here so we can get a copy of the
full_state_ids_at_event
to put in the insertion events below.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this was actually a bug. We only want the base insertion event to be tied to
prev_event_ids_from_query
.Whereas previously, this attached the base and normal insertion event for the first batch (when no
?batch_id
was specified)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(notice the extra
prev_event
for the insertion event inchunk0
)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed this to an upsert to avoid colliding with a previous entry we put in via
store_state_group_id_for_event_id
earlier before we persisted the events.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what's going on here. The braces to enclose the
await
is legit syntax (it'll build a set, like{"hello"}
). As written the function is going to returnNone
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #11310