Commit Graph

123 Commits (96cc7c87405e87aacc2318f4634e1c6e5e2f46d3)

Author SHA1 Message Date
Erik Johnston 0fdf308874 Track the IP users connect with. Add an admin column to users table. 10 years ago
Erik Johnston c818aa13eb Add LIMIT to scalar subquery 10 years ago
Erik Johnston ba87eb6753 Fix bug where we tried to insert state events with null state key 10 years ago
Erik Johnston 70899d3ab2 Rename deletions to redactions 10 years ago
Erik Johnston 7d9a84a445 Make deleting deletes not undelete 10 years ago
Erik Johnston 1e6c5b205c Fix bug where we didn't correctly pull out the event_id of the deletion 10 years ago
Erik Johnston 4354590a69 Add v4 deltas to current sql. 10 years ago
Erik Johnston efea61dc50 Rename 'pruned' to 'pruned_because' 10 years ago
Erik Johnston b99f6eb904 Make sure we don't persist the 'pruned' key 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 59516a8bb1 Correctly handle receiving 'missing' Pdus from federation, rather than just discarding them. 10 years ago
Erik Johnston 667e747ed1 Fix bug where we no longer stored user_id on Pdus 10 years ago
Paul "LeoNerd" Evans a87eac4308 Revert recent changes to RoomMemberStore 10 years ago
Paul "LeoNerd" Evans e53d77b501 Add a .runInteraction() method on SQLBaseStore itself to wrap the .db_pool 10 years ago
Paul "LeoNerd" Evans aaf9ab68c6 Rename _store_room_member_txn to _store_room_member_from_event_txn so we can create another, more sensible function of that name 10 years ago
Paul "LeoNerd" Evans 55397f6347 prepare_database() on db_conn, not plain name, so we can pass in the connection from outside 10 years ago
Paul "LeoNerd" Evans ce55a8cc4b Move database preparing code out of homserver.py into storage where it belongs 10 years ago
Erik Johnston a75f8686ba Fix bug where we used an unbound local variable if we ended up rolling back the persist_event transaction 10 years ago
Erik Johnston e062f2dfa8 Apparently we can't do txn.rollback(), so raise and catch an exception instead. 10 years ago
Erik Johnston c0577ea87a Rollback if we try and insert duplicate events 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 4b8244fbf8 Fix bug where we didn't correctly store the ops power levels event. 10 years ago
Erik Johnston db7109c43b Add beginnings of ban support. 10 years ago
Erik Johnston 865469f233 Implement power level lists, default power levels and send_evnet_level/add_state_level events. 10 years ago
Erik Johnston 1118f02689 Start adding storage for new events. 10 years ago
Mark Haines d7ae9b90a0 Add store for server certificates and keys 10 years ago
Mark Haines f54b70520a Return the store_id from persist_event 10 years ago
Mark Haines b30358f439 add _get_room_member, fix datastore methods 10 years ago
Mark Haines a03c7f27a8 Fill out prev_events before calling persist_event 10 years ago
Kegan Dougal c65885e166 Added support for GET /events/$eventid with auth checks. 10 years ago
Mark Haines d2798de660 Fold federation/handler into handlers/federation 10 years ago
Mark Haines 64e2a5d58e Move pdu and event persistence into a single persist_event function 10 years ago
Mark Haines ac21dfff6d Fix pyflakes errors 10 years ago
Mark Haines 32347bfcc9 fix a few pyflakes errors 10 years ago
Mark Haines 4b2ad549d5 Move the event storage into a single transaction 10 years ago
Mark Haines 1379dcae6f Take a snapshot of the state of the room before performing updates 10 years ago
Erik Johnston 808f663ed1 Don't return state event outlier's when paginating. 10 years ago
Erik Johnston e8244c23ba Give the event_id of the failed event 10 years ago
Erik Johnston 840771190f Fix bug where we sometimes set min_token to None. 10 years ago
Erik Johnston 75b6d982a0 Add a 'backfill room' button 10 years ago
Erik Johnston 709a92cee8 SQL doesn't allow AUTOINCREMENT on non PRIMARY KEY columns. 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 506711749f We no longer need to special case room config events. 10 years ago
Erik Johnston d260a42ca2 PEP8 cleanups 10 years ago
Erik Johnston 01f089d9fb Correctly return new token when returning events. Serialize events correctly. 10 years ago
Erik Johnston 114984a236 Start chagning the events stream to work with the new DB schema 10 years ago
Erik Johnston 5002efa31b Reimplement the get public rooms api to work with new DB schema 10 years ago
Erik Johnston 2c46bb6208 Fix up typos and correct sql queries 10 years ago
Erik Johnston 661c711765 Start fixing places that use the data store. 10 years ago