Skip to content

Ensure many batches are able to be imported (MSC2716) - #212

Closed
MadLittleMods wants to merge 4 commits into
masterfrom
madlittlemods/ensure-many-historical-chunks-work
Closed

Ensure many batches are able to be imported (MSC2716)#212
MadLittleMods wants to merge 4 commits into
masterfrom
madlittlemods/ensure-many-historical-chunks-work

Conversation

@MadLittleMods

@MadLittleModsMadLittleMods commented Oct 13, 2021

Copy link
Copy Markdown
Contributor

Ensure many batches are able to be imported and /messages still gives us a 200 OK.

Used to reproduce https://gitlab.com/gitterHQ/webapp/-/merge_requests/2229#note_665906390 which led to the fix in Synapse, matrix-org/synapse#11027.

Part of MSC2716: matrix-org/matrix-spec-proposals#2716

@MadLittleMods
MadLittleMods marked this pull request as draft October 13, 2021 03:38
@MadLittleModsMadLittleMods changed the title Draft: Ensure many batches are able to be importedEnsure many batches are able to be importedOct 13, 2021
@MadLittleMods
MadLittleMods marked this pull request as ready for review October 13, 2021 03:57
@MadLittleModsMadLittleMods changed the title Ensure many batches are able to be importedEnsure many batches are able to be imported (MSC2716)Oct 15, 2021
Comment threadtests/msc2716_test.go
"dir": []string{"b"},
"limit": []string{"100"},
}))
})

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Maybe move this down one more test

Comment threadtests/msc2716_test.go
}

// Ensure the /message response gives a 200
alice.MustDoFunc(t, "GET", []string{"_matrix", "client", "r0", "rooms", roomID, "messages"}, client.WithContentType("application/json"), client.WithQueries(url.Values{

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It would be nice to assert the number of events returned too, and that they have different event IDs.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

👍 Going to close this one in favor of #214 which actually checks for all of the messages in the batches

@MadLittleMods

Copy link
Copy Markdown
ContributorAuthor

Thanks for the review @kegsay 🦎

Sign up for freeto 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.

2 participants

@MadLittleMods@kegsay