Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Implementation of state rollback in /sync #373

Closed
wants to merge 6 commits into from

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Nov 12, 2015

Implementation of SPEC-254: roll back the state dictionary to how it looked at
the start of the timeline.

Add a couple of type annotations, docstrings, and other comments, in the
interest of keeping track of what types I have.
Basically this moves the process of flattening the existing dictionary into a
list up to rest.client.*, instead of doing it in handlers.sync. This simplifies
a bit of the code in handlers.sync, but it is also going to be somewhat
beneficial in the next stage of my hacking on SPEC-254.
Implementation of SPEC-254: roll back the state dictionary to how it looked at
the start of the timeline.
richvdh added a commit to matrix-org/sytest that referenced this pull request Nov 12, 2015
Sync now returns state corresponding to the *start* of the timeline. Update the
tests to reflect that.

This code tests the changes introduced in
matrix-org/synapse#373.
@NegativeMjark
Copy link
Contributor

LGTM

@richvdh richvdh closed this Nov 13, 2015
richvdh added a commit that referenced this pull request Nov 13, 2015
Implementation of SPEC-254: roll back the state dictionary to how it looked at
the start of the timeline.

Merged PR #373
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants