Commit Graph

59 Commits (92478e96d6f6992146102599ca96b8dcacbf3895)

Author SHA1 Message Date
Kegan Dougal 978ce87c86 Comment unused variables. 10 years ago
Kegan Dougal 2d20466f9a Add stub functions and work out execution flow to implement AS event stream polling. 10 years ago
Mark Haines 8498d348d8 Fix token formatting 10 years ago
Mark Haines 22dd1cde2d Filter the recent events before applying the limit when doing an incremental sync with a gap 10 years ago
Mark Haines e016f4043b Use get_room_events_stream to get changes to the rooms if the number of changes is small 10 years ago
Mark Haines b0b80074e0 SYN-252: Supply the stream and topological parts in the correct order to the constructor 10 years ago
Mark Haines e020574d65 Fix Formatting 10 years ago
Mark Haines a56008842b Start implementing incremental initial sync 10 years ago
Mark Haines fda63064fc get_room_events isn't called anywhere 10 years ago
Mark Haines 895fcb377e Fix stream token ordering 10 years ago
Kegan Dougal c43d898119 SYN-178: Fix off by one. 10 years ago
Erik Johnston fd9a8db7ea Only fetch the columns we need. 10 years ago
Mark Haines adb04b1e57 Update copyright notices 10 years ago
Erik Johnston af1c7c7808 PEP8 10 years ago
Erik Johnston 98933e3db6 Only fetch prev_content when a client is streaming/paginating. Use transactions for event streams. 10 years ago
Erik Johnston 1505055334 Don't return outliers when we get recent events for rooms. 10 years ago
Mark Haines db9ce032a4 Fix pep8 codestyle warnings 10 years ago
Mark Haines 1731af3f29 SYN-104: When going backwards the end token should be before the last event 10 years ago
Erik Johnston 65f846ade0 Notify users about invites. 10 years ago
Erik Johnston da1dda3e1d Add transaction level logging and timing information. Add a _simple_delete method 10 years ago
Erik Johnston c818aa13eb Add LIMIT to scalar subquery 10 years ago
Erik Johnston 70899d3ab2 Rename deletions to redactions 10 years ago
Erik Johnston 78af6bbb98 Add m.room.deletion. If an event is deleted it will be returned to clients 'pruned', i.e. all client specified keys will be removed. 10 years ago
Erik Johnston 28bcd01e8d SYN-47: Fix bug where we still returned events for rooms we had left. 10 years ago
Paul "LeoNerd" Evans e53d77b501 Add a .runInteraction() method on SQLBaseStore itself to wrap the .db_pool 10 years ago
Erik Johnston 781ff713ba When getting a state event also include the previous content 10 years ago
Matthew Hodgson 8a7c1d6a00 fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org hasn't been incorporated in time for launch. 10 years ago
Erik Johnston ee06023573 Get the equalities right. 10 years ago
Paul "LeoNerd" Evans 2c7c12bc6e Initial room event stream token must be s0, not s1, or everyone will miss the very first room event 10 years ago
Erik Johnston 3a2a5b959c WIP: Completely change how event streaming and pagination work. This reflects the change in the underlying storage model. 10 years ago
Mark Haines ac21dfff6d Fix pyflakes errors 10 years ago
Mark Haines 4b2ad549d5 Move the event storage into a single transaction 10 years ago
Erik Johnston be6abdff19 Order 'get_recent_events_for_room' correctly. 10 years ago
Erik Johnston 808f663ed1 Don't return state event outlier's when paginating. 10 years ago
Erik Johnston e7ee0b9fc1 Change IM sync api to also return the current presence list. 10 years ago
Erik Johnston ebd3c41ede Make event stream storage return all membership events about the user, regardless of if they were in the room or not. 10 years ago
Erik Johnston d4fb1c8a92 Only hit get_room_events_stream if we have a valid user_id 10 years ago
Erik Johnston ae493c9418 Fix token to correct format 10 years ago
Erik Johnston eea2dc7dde Remove debug logging from token parsing funcs. 10 years ago
Erik Johnston d94765999d Add comment about what strorage.stream does 10 years ago
Erik Johnston 598a1d8ff9 Change the way pagination works to support out of order events. 10 years ago
Erik Johnston 1422a22970 Fix typos in SQL and where we still had rowid's (which no longer exist) 10 years ago
Erik Johnston 4eb8f84aa8 Make snapshot_all_rooms return results in the correct form, including start and end tokens. 10 years ago
Erik Johnston fc26275bb3 Add two different columns for ordering the events table, one which can be used for pagination and one which can be as tokens for notifying clients. Also add a 'processed' field which is currently always set to True 10 years ago
Erik Johnston d260a42ca2 PEP8 cleanups 10 years ago
Erik Johnston 8fa3cc37f9 Comment. 10 years ago
Erik Johnston cd2967d271 Fix bug when generating a key when get_room_events_stream returned zero rows 10 years ago
Erik Johnston 86be66c34e Actually use MAX_STREAM_SIZE constant. 10 years ago
Erik Johnston 8d1f763209 Fix pagination to work with new db schema 10 years ago
Erik Johnston 01f089d9fb Correctly return new token when returning events. Serialize events correctly. 10 years ago