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

Improve documentation for backfilling rooms #1469

Merged
merged 6 commits into from
Aug 9, 2018

Conversation

turt2live
Copy link
Member

@turt2live turt2live commented Aug 1, 2018

Rendered: see 'docs' commit status


There's not a whole lot to improve here - most of the changes are about reorganization and minor clarifications.

Most of my time was spent verifying that the endpoint does what it says it does: namely that it looks up previous events for a given set.

Fixes #1385

There's not a whole lot to improve here - most of the changes are about reorganization and minor clarifications.
@turt2live turt2live requested a review from a team August 1, 2018 19:34
@turt2live turt2live mentioned this pull request Aug 1, 2018
35 tasks
turt2live added a commit to turt2live/matrix-doc that referenced this pull request Aug 2, 2018
This also adds a previously-undocumented endpoint: /state_ids

Backfill is technically not part of this section, however it is being left untouched to make the merge with matrix-org#1469 easier (which moves it out of the file).

Reference material:
* Some calls to synapse on these endpoints with a relatively simple private room.
earliest_events:
type: array
description: |-
The events the sender is missing. The response will only contain events
Copy link
Member

Choose a reason for hiding this comment

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

We have the events in earliest_events, no? (Otherwise how do we know about them?

Copy link
Member Author

Choose a reason for hiding this comment

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

These are the prev_events to the latest_events that the sender is missing, so it only knows the event IDs.

Copy link
Member

Choose a reason for hiding this comment

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

https://github.com/matrix-org/synapse/blob/master/synapse/handlers/federation.py#L344 suggests that they are latest events the sender already has?

Copy link
Member Author

Choose a reason for hiding this comment

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

Looks like it, although I'm suitably confused as to how this endpoint works again. For the sake of understanding: earliest_events are the edges the server has and latest_events are the events the server wants? I'm not totally understanding what the receiver is supposed to do with this information.

Copy link
Member

Choose a reason for hiding this comment

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

Its to get all the missing events between earliest_events (which the server has), and latest_events (which the server has just found out about, but doesn't have the prev events for).

@turt2live turt2live mentioned this pull request Aug 3, 2018
6 tasks
The original text wasn't far off, except for being wrong about what the fields actually do. This commit also adds a bit of clarity for how the server is expected to behave.
@turt2live turt2live merged commit 56dbeeb into matrix-org:master Aug 9, 2018
@turt2live turt2live deleted the travis/s2s/backfill branch August 9, 2018 14:00
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.

2 participants