summary refs log tree commit diff
path: root/synapse/rest/client/v2_alpha/sync.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move SyncHandler out of the Handlers objectMark Haines2016-05-161-2/+1
|
* Move the presence handler out of the Handlers objectMark Haines2016-05-161-1/+1
|
* Use google style doc strings.Mark Haines2016-04-011-36/+43
| | | | | | | pycharm supports them so there is no need to use the other format. Might as well convert the existing strings to reduce the risk of people accidentally cargo culting the wrong doc string format.
* Deduplicate identical /sync requestsMark Haines2016-03-241-0/+3
|
* Initial cutErik Johnston2016-02-171-6/+10
|
* Add some paranoia loggingErik Johnston2016-02-111-0/+10
|
* Move state calculations from rest to handlerErik Johnston2016-02-011-75/+0
|
* Move logic from rest/ to handlers/Erik Johnston2016-01-251-34/+23
|
* Sanitize filtersErik Johnston2016-01-221-12/+12
|
* Whine if we give a from param to /syncErik Johnston2016-01-201-0/+7
|
* Only compute unread notifications for rooms we send down streamErik Johnston2016-01-191-2/+1
|
* Return highlight_count in /syncErik Johnston2016-01-191-0/+1
|
* Merge pull request #478 from matrix-org/daniel/userobjectDaniel Wagner-Hall2016-01-111-5/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce a User object I'm sick of passing around more and more things as tuple items around the whole world, and needing to edit every call site every time there is more information about a user. So pass them around together as an object. This object has incredibly poorly named fields because we have a convention that `user` indicates a UserID object, and `user_id` indicates a string. I tried to clean up the whole repo to fix this, but gave up. So instead, I introduce a second convention. A user_object is a User, and a user_id_object is a UserId. I may have cried a little bit.
| * Introduce a Requester objectDaniel Wagner-Hall2016-01-111-5/+6
| | | | | | | | | | | | | | | | | | This tracks data about the entity which made the request. This is instead of passing around a tuple, which requires call-site modifications every time a new piece of optional context is passed around. I tried to introduce a User object. I gave up.
* | Merge pull request #456 from matrix-org/store_event_actionsDavid Baker2016-01-081-0/+1
|\ \ | |/ |/| Send unread notification counts
| * Merge remote-tracking branch 'origin/develop' into store_event_actionsDavid Baker2016-01-061-6/+1
| |\
| * | Only joined rooms have unread_notif_countDavid Baker2016-01-041-1/+1
| | |
| * | Merge remote-tracking branch 'origin/develop' into store_event_actionsDavid Baker2015-12-221-1/+9
| |\ \
| * \ \ Merge remote-tracking branch 'origin/develop' into store_event_actionsDavid Baker2015-12-211-6/+21
| |\ \ \
| * | | | still very WIP, but now sends unread_notifications_count in the room object ↵David Baker2015-12-161-0/+1
| | | | | | | | | | | | | | | | | | | | on sync (only actually corrrect in a full sync: hardcoded to 0 in incremental syncs).
* | | | | copyrightsMatthew Hodgson2016-01-071-1/+1
| |_|_|/ |/| | |
* | | | Guest users must be joined to a room to see it in /syncMark Haines2016-01-061-6/+1
| |_|/ |/| |
* | | Allow guest access if the user provides a list of rooms in the filterMark Haines2015-12-221-1/+9
| |/ |/|
* | Remove accidentally committed debug loggingMark Haines2015-12-211-1/+0
| |
* | Fix spacingMark Haines2015-12-141-1/+1
| |
* | Fix logging to lie lessMark Haines2015-12-141-2/+9
| |
* | Add commentary for fix in PR#442Mark Haines2015-12-141-0/+6
| |
* | Combine the prev content testsMark Haines2015-12-141-14/+12
| |
* | Check whether prev_content or prev_sender is set before trying to rollback stateMark Haines2015-12-141-8/+13
|/
* Allow filter JSON object in the filter query parameter in /syncMark Haines2015-12-091-9/+21
| | | | Documented by matrix-org/matrix-doc#224
* Add API for setting account_data globaly or on a per room basisMark Haines2015-12-011-0/+6
|
* Host /unstable and /r0 versions of r0 APIsDaniel Wagner-Hall2015-12-011-2/+2
|
* Merge branch 'develop' into rav/flatten_sync_responsePaul "LeoNerd" Evans2015-11-191-3/+3
|\
| * s/private_user_data/account_data/Mark Haines2015-11-181-3/+3
| |
* | Put back the 'state.events' subobjectRichard van der Hoff2015-11-191-1/+1
| | | | | | | | We're keeping 'events', in case we decide to add more keys later.
* | v2 /sync: Rename the keys of the 'rooms' object to match member statesRichard van der Hoff2015-11-191-3/+3
| | | | | | | | | | | | joined->join invited->invite archived->leave
* | Flatten the /sync response to remove the event_mapRichard van der Hoff2015-11-191-22/+13
|/
* Implementation of state rollback in /syncRichard van der Hoff2015-11-131-2/+65
| | | | | | | Implementation of SPEC-254: roll back the state dictionary to how it looked at the start of the timeline. Merged PR https://github.com/matrix-org/synapse/pull/373
* Make handlers.sync return a state dictionary, instead of an event list.Richard van der Hoff2015-11-131-1/+1
| | | | | | | | | 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. Merged from PR #371
* Update some commentsRichard van der Hoff2015-11-131-0/+56
| | | | | | | Add a couple of type annotations, docstrings, and other comments, in the interest of keeping track of what types I have. Merged from pull request #370.
* Allow guests to register and call /events?room_id=Daniel Wagner-Hall2015-11-041-1/+1
| | | | | | | This follows the same flows-based flow as regular registration, but as the only implemented flow has no requirements, it auto-succeeds. In the future, other flows (e.g. captcha) may be required, so clients should treat this like the regular registration flow choices.
* Include room tags in v2 /syncMark Haines2015-11-021-0/+5
|
* Implement full_state incremental syncRichard van der Hoff2015-10-261-2/+4
| | | | | | | | A hopefully-complete implementation of the full_state incremental sync, as specced at https://github.com/matrix-org/matrix-doc/pull/133. This actually turns out to be a relatively simple modification to the initial sync implementation.
* Merge pull request #319 from matrix-org/erikj/filter_refactorErik Johnston2015-10-221-2/+2
|\ | | | | Refactor api.filtering to have a Filter API
| * Refactor api.filtering to have a Filter APIErik Johnston2015-10-201-2/+2
| |
* | Add rooms that the user has left under archived in v2 sync.Mark Haines2015-10-191-6/+23
|/
* Include invites in incremental syncMark Haines2015-10-131-1/+1
|
* Include invited rooms in the initial syncMark Haines2015-10-131-1/+20
|
* Start spliting out the rooms into joined and invited in v2 syncMark Haines2015-10-131-9/+9
|
* Update the filters to match the latest spec.Mark Haines2015-10-121-15/+11
| | | | | Apply the filter the 'timeline' and 'ephemeral' keys of rooms. Apply the filter to the 'presence' key of a sync response.
* Set the user as online if they start polling the v2 syncMark Haines2015-10-091-3/+11
|
* Format the presence events correctly for v2Mark Haines2015-10-091-3/+9
|
* Update the v2 room sync format to match the current v2 specMark Haines2015-10-081-7/+7
|
* Update the sync response to match the latest specMark Haines2015-10-071-24/+22
|
* Move the rooms out into a room_map mapping from room_id to room.Mark Haines2015-10-051-13/+31
|
* Start updating the sync API to match the specificationMark Haines2015-10-011-53/+22
|
* Fix up one more referenceDaniel Wagner-Hall2015-08-251-3/+2
|
* Remove completely unused concepts from codebaseDaniel Wagner-Hall2015-08-251-1/+1
| | | | | | | | | | Removes device_id and ClientInfo device_id is never actually written, and the matrix.org DB has no non-null entries for it. Right now, it's just cluttering up code. This doesn't remove the columns from the database, because that's fiddly.
* Combine the request wrappers in rest/media/v1 and http/server into a single ↵Mark Haines2015-04-211-9/+11
| | | | wrapper decorator
* Fix code-styleMark Haines2015-02-101-1/+1
|
* Pass client info to the sync_configMark Haines2015-01-301-1/+1
|
* Filter the recent events before applying the limit when doing an incremental ↵Mark Haines2015-01-301-1/+1
| | | | sync with a gap
* Add basic filtering supportMark Haines2015-01-291-5/+14
|
* Move typing notifs to an "emphermal" event list on the room objectMark Haines2015-01-291-2/+2
|
* Add typing notifications to syncMark Haines2015-01-291-10/+8
|
* Include transaction ids in unsigned section of events in the sync results ↵Mark Haines2015-01-291-7/+16
| | | | for the clients that made those requests
* Add ports back to demo/start.shMark Haines2015-01-281-1/+1
|
* Fix FormattingMark Haines2015-01-271-3/+2
|
* Start implementing the non-incremental sync portion of the v2 /sync APIMark Haines2015-01-261-28/+77
|
* Start implementing the v2_alpha sync APIMark Haines2015-01-231-0/+143