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

Paginated Sync #893

Closed
wants to merge 43 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
a2decbd
Only load the last N joined room
erikjohnston May 16, 2016
32d476d
Change token format
erikjohnston May 16, 2016
64df836
Correctly figure out which rooms we've sent down
erikjohnston May 17, 2016
d1e9655
Call get_last_ts less
erikjohnston May 17, 2016
b999adc
Filter before ordering
erikjohnston May 18, 2016
39182c3
Typo
erikjohnston May 18, 2016
573e51c
Correctly order recents
erikjohnston May 18, 2016
5941346
Merge branch 'develop' of github.com:matrix-org/synapse into erikj/pa…
erikjohnston May 18, 2016
99a7205
Change name
erikjohnston May 20, 2016
38d90e0
Add POST /sync API endpoint
erikjohnston May 20, 2016
4902770
Merge branch 'erikj/sync_refactor' of github.com:matrix-org/synapse i…
erikjohnston May 24, 2016
26c7f08
Implement basic pagination
erikjohnston May 24, 2016
43cbde4
Basic extra include pagination impl
erikjohnston May 25, 2016
e5b3034
Indicate if /sync was limited or not
erikjohnston May 25, 2016
3b52bd1
Merge branch 'develop' of github.com:matrix-org/synapse into erikj/pa…
erikjohnston Jun 14, 2016
2b0f9bd
Merge branch 'develop' of github.com:matrix-org/synapse into erikj/pa…
erikjohnston Jun 16, 2016
96d6fff
Fix 'A next_batch token can be used in the v1 messages API'
erikjohnston Jun 16, 2016
22dea0c
Merge branch 'develop' of github.com:matrix-org/synapse into erikj/pa…
erikjohnston Jun 20, 2016
6992fb9
Implement error responses
erikjohnston Jun 21, 2016
3b6027d
Always include tags
erikjohnston Jun 21, 2016
cdd379b
Use msgpack for shorter tokens
erikjohnston Jun 21, 2016
6a101e5
Add tag handling
erikjohnston Jun 22, 2016
839088e
Support streaming peek
erikjohnston Jun 22, 2016
baab93b
Implement 'synced' flag
erikjohnston Jun 22, 2016
a901403
Change default tag handling
erikjohnston Jun 23, 2016
8c3fca8
Correctly handle tags changing in paginated sync
erikjohnston Jun 23, 2016
7b3324e
Get rid of per room full_state flag
erikjohnston Jun 23, 2016
6c8c061
Move stuff into separate function
erikjohnston Jun 23, 2016
a7e6ad9
Use SyncExtras
erikjohnston Jun 23, 2016
9df5f81
Make get_room_tags_changed take a now position. Comments
erikjohnston Jun 23, 2016
bf0edf7
Make jenkins-unittests.sh install deps
erikjohnston Jun 24, 2016
62050d2
Comments
erikjohnston Jun 24, 2016
a72919b
Add get_last_event_id_ts_for_room to slave DataStore
erikjohnston Jun 24, 2016
434c51d
Merge branch 'develop' of github.com:matrix-org/synapse into erikj/pa…
erikjohnston Jun 24, 2016
3ace9bd
Empty commit
erikjohnston Jun 24, 2016
c0b2f33
Logging
erikjohnston Jun 27, 2016
3263e12
Try serializing as json rather than msgpack
erikjohnston Jun 27, 2016
92c5893
More logging
erikjohnston Jun 27, 2016
4c67e06
Use JSON instead of msgpack
erikjohnston Jun 27, 2016
f07f993
Use cbor
erikjohnston Jun 27, 2016
4b7abed
Comments
erikjohnston Jun 27, 2016
6c137b3
Encode batch tokens better
erikjohnston Jun 27, 2016
d2b59f2
Implement top-level unread_notifications
erikjohnston Jun 28, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions jenkins-unittests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ export DUMP_COVERAGE_COMMAND="coverage help"
# UNSTABLE or FAILURE this build.
export PEP8SUFFIX="--output-file=violations.flake8.log || echo flake8 finished with status code \$?"

TOX_BIN=$WORKSPACE/.tox/py27/bin
python synapse/python_dependencies.py | xargs -n1 $TOX_BIN/pip install
$TOX_BIN/pip install lxml

rm .coverage* || echo "No coverage files to remove"

tox -e py27
1 change: 1 addition & 0 deletions synapse/api/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class Codes(object):
THREEPID_AUTH_FAILED = "M_THREEPID_AUTH_FAILED"
THREEPID_IN_USE = "THREEPID_IN_USE"
INVALID_USERNAME = "M_INVALID_USERNAME"
CANNOT_PEEK = "M_CANNOT_PEEK"


class CodeMessageException(RuntimeError):
Expand Down
Loading