Commit Graph

88 Commits (2f39dc19a26cca25305d10654916d7413a56a23a)

Author SHA1 Message Date
Erik Johnston 2f39dc19a2 Remove more references to dead PDU tables 10 years ago
Erik Johnston bfa36a72b9 Remove PDU tables. 10 years ago
Erik Johnston e7858b6d7e Start filling out and using new events tables 10 years ago
Erik Johnston a10c2ec88d Don't reference PDU when persisting event 10 years ago
Erik Johnston 2d1dfb3b34 Begin implementing all the PDU storage stuff in Events land 10 years ago
Erik Johnston da1dda3e1d Add transaction level logging and timing information. Add a _simple_delete method 10 years ago
Mark Haines db2e350e29 Wrap preparing the database in a transaction. Otherwise it will take many seconds to complete because sqlite will create a transaction per statement 10 years ago
Erik Johnston 5662be894e Bump database version number. 10 years ago
Mark Haines 82c5820767 keep 'origin_server_ts' as 'ts' in the database to avoid needlessly updating schema 10 years ago
Mark Haines c8f996e29f Hash the same content covered by the signature when referencing previous PDUs rather than reusing the PDU content hashes 10 years ago
Mark Haines bb04447c44 Include hashes of previous pdus when referencing them 10 years ago
Mark Haines 66104da10c Sign outgoing PDUs. 10 years ago
Mark Haines 1c445f88f6 persist hashes and origin signatures for PDUs 10 years ago
Erik Johnston 5fefc12d1e Begin implementing state groups. 10 years ago
Mark Haines b95a178584 SYN-75 Verify signatures on server to server transactions 10 years ago
Erik Johnston fbf6320614 pyflakes cleanup 10 years ago
Erik Johnston 1550ab9e2f SYN-48: Delete dead code 10 years ago
Erik Johnston 3ccb17ce59 SYN-48: Implement WHOIS rest servlet 10 years ago
Erik Johnston f7d80930f2 SYN-48: Track User-Agents as well as IPs for client devices. 10 years ago
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