summary refs log tree commit diff
path: root/synapse/storage (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add an EventValidator. Fix bugs in auth ++ storageErik Johnston2014-11-103-20/+26
|
* Fix regression where we did not return redacted events.Erik Johnston2014-11-101-1/+2
|
* PEP8Erik Johnston2014-11-102-9/+7
|
* Fix backfill to work. Add auth to backfill requestErik Johnston2014-11-102-2/+14
|
* Notify users about invites.Erik Johnston2014-11-101-2/+1
|
* Tidy up some of the unused sql tablesErik Johnston2014-11-103-107/+9
|
* Finish redaction algorithm.Erik Johnston2014-11-101-1/+1
|
* Add '/event_auth/' federation apiErik Johnston2014-11-071-7/+19
|
* Fix bug in _get_auth_chain_txnErik Johnston2014-11-071-14/+11
|
* Fix joining over federationErik Johnston2014-11-071-0/+1
|
* Implement method to get auth_chain from a given event_idErik Johnston2014-11-071-0/+35
|
* Start implementing auth chainsErik Johnston2014-11-075-1/+56
|
* Amalgamate all power levels.Erik Johnston2014-11-062-169/+0
| | | | | Remove concept of reqired power levels, something similiar can be done using the new power level event.
* Implement new replace_state and changed prev_stateErik Johnston2014-11-064-59/+203
| | | | | `prev_state` is now a list of previous state ids, similiar to prev_events. `replace_state` now points to what we think was replaced.
* Get correct prev_eventsErik Johnston2014-11-052-15/+26
|
* Remove unused importsErik Johnston2014-11-041-2/+0
|
* For now, don't store txn -> pdu mappings.Erik Johnston2014-11-031-4/+3
|
* FormattingErik Johnston2014-11-031-1/+4
|
* Sign evnetsErik Johnston2014-10-311-0/+6
|
* Remove unused signature storage methodsErik Johnston2014-10-311-138/+1
|
* Remove unused sql file.Erik Johnston2014-10-311-31/+0
|
* Make prev_event signing work again.Erik Johnston2014-10-312-7/+6
|
* Remove more references to dead PDU tablesErik Johnston2014-10-312-75/+0
|
* Remove PDU tables.Erik Johnston2014-10-314-1159/+1
|
* Actually don't store any PDUsErik Johnston2014-10-311-0/+7
|
* Don't store any PDUsErik Johnston2014-10-311-9/+9
|
* Move the impl of backfill to use events.Erik Johnston2014-10-311-1/+85
|
* Merge branch 'develop' of github.com:matrix-org/synapse into ↵Erik Johnston2014-10-302-4/+7
|\ | | | | | | federation_authorization
| * Fix pep8 warningsMark Haines2014-10-302-4/+7
| |
* | Fix SQL so that accepts we may want to persist events twice.Erik Johnston2014-10-302-25/+47
| |
* | Start filling out and using new events tablesErik Johnston2014-10-294-46/+89
| |
* | Don't reference PDU when persisting eventErik Johnston2014-10-282-4/+5
| |
* | Begin implementing all the PDU storage stuff in Events landErik Johnston2014-10-287-37/+475
| |
* | Add transaction level logging and timing information. Add a _simple_delete ↵Erik Johnston2014-10-289-21/+91
| | | | | | | | method
* | Clean up LoggingTransactionErik Johnston2014-10-281-10/+4
| |
* | Add timer to LoggingTransactionErik Johnston2014-10-281-3/+10
| |
* | Merge branch 'event_signing' of github.com:matrix-org/synapse into ↵Erik Johnston2014-10-275-14/+288
|\ \ | | | | | | | | | | | | | | | | | | federation_authorization Conflicts: synapse/storage/__init__.py
| * | fix pyflakes warningsMark Haines2014-10-271-2/+0
| | |
| * | Merge branch 'develop' into event_signingMark Haines2014-10-273-5/+36
| |\|
| | * Fix pyflakes warningsMark Haines2014-10-271-1/+0
| | |
| * | Merge branch 'develop' into event_signingMark Haines2014-10-173-7/+11
| |\ \ | | | | | | | | | | | | | | | | Conflicts: synapse/federation/replication.py
| * | | Hash the same content covered by the signature when referencing previous ↵Mark Haines2014-10-174-9/+66
| | | | | | | | | | | | | | | | PDUs rather than reusing the PDU content hashes
| * | | Include hashes of previous pdus when referencing themMark Haines2014-10-164-12/+77
| | | |
| * | | Sign outgoing PDUs.Mark Haines2014-10-162-6/+7
| | | |
| * | | persist hashes and origin signatures for PDUsMark Haines2014-10-153-5/+31
| | | |
| * | | Storage for pdu signaturesMark Haines2014-10-142-0/+126
| | | |
* | | | Merge branch 'develop' of github.com:matrix-org/synapse into ↵Erik Johnston2014-10-274-11/+47
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | federation_authorization Conflicts: synapse/federation/transport.py synapse/handlers/message.py
| * | | Wrap preparing the database in a transaction. Otherwise it will take many ↵Mark Haines2014-10-241-3/+4
| | | | | | | | | | | | | | | | seconds to complete because sqlite will create a transaction per statement
| * | | Bump database version number.Erik Johnston2014-10-172-1/+32
| | |/ | |/|
| * | keep 'origin_server_ts' as 'ts' in the database to avoid needlessly updating ↵Mark Haines2014-10-176-11/+15
| | | | | | | | | | | | schema
| * | SPEC-7: Rename 'ts' to 'origin_server_ts'Mark Haines2014-10-175-12/+12
| |/
* | Use state groups to get current state. Make join dance actually work.Erik Johnston2014-10-172-0/+9
| |
* | Begin making auth use event.old_state_eventsErik Johnston2014-10-152-2/+2
| |
* | Add missing package storate.stateErik Johnston2014-10-151-0/+97
| |
* | Begin implementing state groups.Erik Johnston2014-10-142-1/+38
|/
* Respond with more helpful error messages for unsigned requestsMark Haines2014-10-132-4/+9
|
* Merge branch 'develop' into server2server_signingMark Haines2014-09-3012-33/+227
|\ | | | | | | | | | | Conflicts: synapse/storage/__init__.py tests/rest/test_presence.py
| * pyflakes cleanupErik Johnston2014-09-302-2/+1
| |
| * SYN-2: Allow server admins to delete room aliasesErik Johnston2014-09-301-0/+30
| |
| * Update docstringErik Johnston2014-09-291-1/+2
| |
| * SYN-48: Delete dead codeErik Johnston2014-09-291-26/+0
| |
| * SYN-48: Implement WHOIS rest servletErik Johnston2014-09-294-15/+57
| |
| * Add auth check to test if a user is an admin or not.Erik Johnston2014-09-291-0/+8
| |
| * SYN-48: Track User-Agents as well as IPs for client devices.Erik Johnston2014-09-293-4/+10
| |
| * Track the IP users connect with. Add an admin column to users table.Erik Johnston2014-09-263-1/+35
| |
| * Merge branch 'deletions' of github.com:matrix-org/synapse into developErik Johnston2014-09-258-19/+118
| |\
| | * Add LIMIT to scalar subqueryErik Johnston2014-09-253-5/+10
| | |
| | * Rename deletions to redactionsErik Johnston2014-09-249-49/+52
| | |
| | * Make deleting deletes not undeleteErik Johnston2014-09-241-14/+4
| | |
| | * Fix bug where we didn't correctly pull out the event_id of the deletionErik Johnston2014-09-242-3/+8
| | |
| | * Add v4 deltas to current sql.Erik Johnston2014-09-243-1/+10
| | |
| | * Rename 'pruned' to 'pruned_because'Erik Johnston2014-09-232-2/+2
| | |
| | * SYN-12: Implement auth for deletion by adding a 'delete_level' on the ops ↵Erik Johnston2014-09-232-3/+11
| | | | | | | | | | | | | | | | | | levels event SYN-12 # comment Auth has been added.
| | * Make sure we don't persist the 'pruned' keyErik Johnston2014-09-231-1/+1
| | |
| | * Add m.room.deletion. If an event is deleted it will be returned to clients ↵Erik Johnston2014-09-235-17/+91
| | | | | | | | | | | | 'pruned', i.e. all client specified keys will be removed.
| | * Add a deletions tableErik Johnston2014-09-221-0/+5
| | |
| * | Fix bug where we tried to insert state events with null state keyErik Johnston2014-09-251-1/+2
| |/
* / SYN-75 Verify signatures on server to server transactionsMark Haines2014-09-303-37/+52
|/
* SYN-47: Fix bug where we still returned events for rooms we had left.Erik Johnston2014-09-191-1/+1
| | | | SYN-47 #resolve
* Merge branch 'develop' into test-sqlite-memoryPaul "LeoNerd" Evans2014-09-171-5/+10
|\
| * Correctly handle receiving 'missing' Pdus from federation, rather than just ↵Erik Johnston2014-09-151-5/+10
| | | | | | | | discarding them.
* | Merge remote-tracking branch 'origin/develop' into test-sqlite-memoryPaul "LeoNerd" Evans2014-09-153-3/+13
|\|
| * Correctly handle the 'age' key in events and pdusErik Johnston2014-09-151-0/+4
| |
| * Fix bug where we relied on the current_state_events being updated when we ↵Erik Johnston2014-09-121-2/+2
| | | | | | | | are handling type specific persistence
| * Fix bug where we no longer stored user_id on PdusErik Johnston2014-09-121-1/+7
| |
* | Merge remote-tracking branch 'origin/develop' into test-sqlite-memoryPaul "LeoNerd" Evans2014-09-123-84/+64
|\| | | | | | | | | Conflicts: synapse/storage/pdu.py
| * Make the state resolution use actual power levels rather than taking them ↵Erik Johnston2014-09-122-71/+18
| | | | | | | | from a Pdu key.
| * Fix bug where we incorrectly removed a remote host from the list of hosts in ↵Erik Johnston2014-09-121-12/+45
| | | | | | | | a room when any user from that host left that room even if they weren't the last user from that host in that room
| * Fix bug where we didn't return a tuple when expected.Erik Johnston2014-09-121-1/+1
| |
* | More accurate docs / clearer paramter names in RoomMemberStorePaul "LeoNerd" Evans2014-09-121-6/+7
| |
* | Revert recent changes to RoomMemberStorePaul "LeoNerd" Evans2014-09-122-28/+10
| |
* | Now don't need the other logger.debug() call in _executePaul "LeoNerd" Evans2014-09-121-5/+0
| |
* | Logging of all SQL queries via the 'synapse.storage.SQL' loggerPaul "LeoNerd" Evans2014-09-121-2/+43
| |
* | Add a .runInteraction() method on SQLBaseStore itself to wrap the .db_poolPaul "LeoNerd" Evans2014-09-128-33/+42
| |
* | Add a better _store_room_member_txn() method that takes separated fields ↵Paul "LeoNerd" Evans2014-09-111-8/+21
| | | | | | | | instead of an event object; also add FIXME comment about a big bug in the logic
* | Rename _store_room_member_txn to _store_room_member_from_event_txn so we can ↵Paul "LeoNerd" Evans2014-09-112-2/+2
| | | | | | | | create another, more sensible function of that name
* | prepare_database() on db_conn, not plain name, so we can pass in the ↵Paul "LeoNerd" Evans2014-09-101-31/+26
| | | | | | | | connection from outside
* | Move database preparing code out of homserver.py into storage where it belongsPaul "LeoNerd" Evans2014-09-101-0/+61
|/
* Fix bug where we used an unbound local variable if we ended up rolling back ↵Erik Johnston2014-09-091-4/+1
| | | | the persist_event transaction
* Apparently we can't do txn.rollback(), so raise and catch an exception instead.Erik Johnston2014-09-081-11/+19
|
* Fix bug in state handling where we incorrectly identified a missing pdu. ↵Erik Johnston2014-09-081-3/+6
| | | | Update tests to catch this case.
* Rollback if we try and insert duplicate eventsErik Johnston2014-09-081-0/+1
|
* When getting a state event also include the previous contentErik Johnston2014-09-064-12/+37
|
* Generate m.room.aliases event when the HS creates a room aliasErik Johnston2014-09-052-0/+34
|
* Add support to _simple_insert() to do INSERT OR REPLACEPaul "LeoNerd" Evans2014-09-031-4/+6
|
* fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org ↵Matthew Hodgson2014-09-0323-23/+23
| | | | hasn't been incorporated in time for launch.
* Store SQL DDL deltas as well; attempt to upgrade the database on startup if ↵Paul "LeoNerd" Evans2014-09-031-0/+168
| | | | it's too old
* Rename the 'do_users_share_a_room' to something slightly less verb-soundingPaul "LeoNerd" Evans2014-09-031-1/+1
|
* Add copyright notices and fix pyflakes errorsMark Haines2014-09-031-0/+15
|
* Fix bug where we didn't correctly store the ops power levels event.Erik Johnston2014-09-022-1/+4
|
* Merge branch 'develop' of github.com:matrix-org/synapse into room_configErik Johnston2014-09-013-1/+135
|\
| * Fix homeserver config parsingMark Haines2014-09-011-1/+1
| |
| * Merge branch 'develop' into server2server_tlsMark Haines2014-08-311-3/+6
| |\
| * | Add store for server certificates and keysMark Haines2014-08-283-1/+135
| | |
* | | Add all the necessary checks to make banning work.Erik Johnston2014-09-012-3/+2
| | |
* | | Add beginnings of ban support.Erik Johnston2014-09-013-7/+63
| | |
* | | Implement power level lists, default power levels and ↵Erik Johnston2014-09-013-22/+99
| | | | | | | | | | | | send_evnet_level/add_state_level events.
* | | Start adding storage for new events.Erik Johnston2014-08-293-0/+121
| |/ |/|
* | Get the equalities right.Erik Johnston2014-08-291-2/+5
| |
* | Initial room event stream token must be s0, not s1, or everyone will miss ↵Paul "LeoNerd" Evans2014-08-281-1/+1
|/ | | | the very first room event
* Merge branch 'develop' into storage_transactionsMark Haines2014-08-271-2/+2
|\ | | | | | | | | | | Conflicts: synapse/handlers/room.py synapse/storage/stream.py
| * Merge branch 'develop' of github.com:matrix-org/synapse into stream_refactorErik Johnston2014-08-271-1/+0
| |\ | | | | | | | | | | | | | | | | | | Conflicts: synapse/handlers/events.py synapse/rest/events.py synapse/rest/room.py
| * \ Merge branch 'develop' of github.com:matrix-org/synapse into stream_refactorErik Johnston2014-08-261-2/+2
| |\ \
| * | | WIP: Completely change how event streaming and pagination work. This ↵Erik Johnston2014-08-261-2/+2
| | | | | | | | | | | | | | | | reflects the change in the underlying storage model.
* | | | Return the store_id from persist_eventMark Haines2014-08-271-1/+3
| | | |
* | | | add _get_room_member, fix datastore methodsMark Haines2014-08-272-8/+26
| | | |
* | | | Fill out prev_events before calling persist_eventMark Haines2014-08-271-6/+15
| | | |
* | | | Remove unused populate_previous_pdusMark Haines2014-08-271-6/+1
| | | |
* | | | Merge branch 'develop' into storage_transactionsMark Haines2014-08-272-3/+2
|\ \ \ \ | | |_|/ | |/| |
| * | | Added support for GET /events/$eventid with auth checks.Kegan Dougal2014-08-271-1/+0
| | |/ | |/|
| * | Feedback: Removed FeedbackRestServlet. Modified keys on FeedbackEvent. ↵Kegan Dougal2014-08-261-2/+2
| |/ | | | | | | Expanded the feedback constants to fully explain what type of feedback they are.
* | Fold federation/handler into handlers/federationMark Haines2014-08-261-1/+3
| |
* | Move pdu and event persistence into a single persist_event functionMark Haines2014-08-262-21/+33
| |
* | Merge branch 'develop' into storage_transactionsMark Haines2014-08-267-27/+69
|\| | | | | | | | | | | | | Conflicts: synapse/api/auth.py synapse/handlers/room.py synapse/storage/__init__.py
| * Fix pyflakes errorsMark Haines2014-08-265-18/+6
| |
| * Add a do_users_share_a_room method and use that in the presence handler.Erik Johnston2014-08-261-0/+21
| |
| * Merge branch 'develop' of github.com:matrix-org/synapse into ↵Kegan Dougal2014-08-265-8/+40
| |\ | | | | | | | | | client_server_url_rename
| | * Order 'get_recent_events_for_room' correctly.Erik Johnston2014-08-261-1/+1
| | |
| | * Add a unique constraint on the room hosts tableErik Johnston2014-08-241-1/+2
| | |
| | * Turn off spammy loggingErik Johnston2014-08-221-1/+1
| | |
| | * Add indices to schemaErik Johnston2014-08-221-0/+20
| | |
| | * Don't return state event outlier's when paginating.Erik Johnston2014-08-223-2/+9
| | |
| | * Change IM sync api to also return the current presence list.Erik Johnston2014-08-211-3/+2
| | |
| | * Stop internal keys from getting into SynapseEventsErik Johnston2014-08-211-0/+5
| | |
| * | Removed member list servlet: now using generic state paths.Kegan Dougal2014-08-261-2/+3
| |/
* | fix a few pyflakes errorsMark Haines2014-08-261-3/+3
| |
* | Move the event storage into a single transactionMark Haines2014-08-266-48/+60
| |
* | Take a snapshot of the state of the room before performing updatesMark Haines2014-08-221-0/+64
|/
* Make event stream storage return all membership events about the user, ↵Erik Johnston2014-08-201-4/+6
| | | | regardless of if they were in the room or not.
* Give the event_id of the failed eventErik Johnston2014-08-201-1/+4
|
* Only hit get_room_events_stream if we have a valid user_idErik Johnston2014-08-191-0/+3
|
* Fix token to correct formatErik Johnston2014-08-191-1/+1
|
* Remove debug logging from token parsing funcs.Erik Johnston2014-08-191-2/+0
|
* Add comment about what strorage.stream doesErik Johnston2014-08-191-0/+20
|
* Fix bug where we sometimes set min_token to None.Erik Johnston2014-08-191-1/+2
|
* Add a 'backfill room' buttonErik Johnston2014-08-192-12/+26
|
* Change the way pagination works to support out of order events.Erik Johnston2014-08-192-30/+158
|
* Fix typos in SQL and where we still had rowid's (which no longer exist)Erik Johnston2014-08-181-6/+6
|
* Make snapshot_all_rooms return results in the correct form, including start ↵Erik Johnston2014-08-181-4/+21
| | | | and end tokens.
* SQL doesn't allow AUTOINCREMENT on non PRIMARY KEY columns.Erik Johnston2014-08-182-3/+20
|
* Add two different columns for ordering the events table, one which can be ↵Erik Johnston2014-08-183-17/+31
| | | | 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
* Merge branch 'master' of github.com:matrix-org/synapse into sql_refactorErik Johnston2014-08-181-0/+1
|\
| * retcols is mandatory. i have no idea how this could ever have worked?Matthew Hodgson2014-08-161-0/+1
| |
| * Fix imsync's SELECT query to only find the rooms I'm actually joined in, not ↵Paul "LeoNerd" Evans2014-08-151-2/+5
| | | | | | | | every room I have ever joined
* | Rename method name to not clash with other ones in storage.Erik Johnston2014-08-151-3/+3
| |
* | We no longer need to special case room config events.Erik Johnston2014-08-151-2/+2
| |
* | PEP8 cleanupsErik Johnston2014-08-155-9/+18
| |
* | Comment.Erik Johnston2014-08-151-0/+1
| |
* | Fix bug when generating a key when get_room_events_stream returned zero rowsErik Johnston2014-08-151-3/+7
| |
* | Actually use MAX_STREAM_SIZE constant.Erik Johnston2014-08-151-1/+1
| |
* | Fix pagination to work with new db schemaErik Johnston2014-08-151-7/+24
| |
* | Correctly return new token when returning events. Serialize events correctly.Erik Johnston2014-08-152-6/+18
| |
* | Start chagning the events stream to work with the new DB schemaErik Johnston2014-08-155-4/+52
| |
* | Merge branch 'master' of github.com:matrix-org/synapse into sql_refactorErik Johnston2014-08-151-2/+2
|\| | | | | | | | | Conflicts: synapse/storage/stream.py
| * We really don't need debug logging of all the SQL statements we execute; ↵Paul "LeoNerd" Evans2014-08-141-4/+0
| | | | | | | | we're quite happy these all work now
| * Be more helpful when failing to register/login, stating why (communication ↵Kegan Dougal2014-08-141-2/+2
| | | | | | | | error, user in user, wrong credentials, etc). Make the HS send M_USER_IN_USE.
* | Reimplement the get public rooms api to work with new DB schemaErik Johnston2014-08-154-35/+75
| |
* | Fix up typos and correct sql queriesErik Johnston2014-08-145-36/+34
| |
* | Update StreamStoreErik Johnston2014-08-141-245/+36
| |
* | Start fixing places that use the data store.Erik Johnston2014-08-144-8/+8
| |
* | Fix typoErik Johnston2014-08-141-1/+1
| |
* | Rename _execute_queryErik Johnston2014-08-144-4/+4
| |
* | Fix up RoomMemberStore to work with the new schema.Erik Johnston2014-08-143-97/+79
| |
* | Actually encode dicts as json in the DBErik Johnston2014-08-142-3/+4
| |
* | Merge branch 'master' of github.com:matrix-org/synapse into sql_refactorErik Johnston2014-08-145-13/+16
|\| | | | | | | | | Conflicts: synapse/storage/_base.py
| * An initial hack at storing presence state-change mtimes in database and ↵Paul "LeoNerd" Evans2014-08-133-2/+5
| | | | | | | | presenting age durations to clients/federation events
| * Set datastore's .hs field in SQLBaseStore rather than in the toplevel ↵Paul "LeoNerd" Evans2014-08-132-1/+1
| | | | | | | | DataStore mixed-in result class
| * when we're talking about backfilling data in federation, call it backfilling ↵Matthew Hodgson2014-08-131-10/+10
| | | | | | | | - not pagination.
* | Make feedback table also store sender.Erik Johnston2014-08-132-1/+3
| |
* | Initial stab at refactoring the SQL tables, including rejigging some of the ↵Erik Johnston2014-08-136-261/+115
| | | | | | | | storage layer.
* | Convert im schema to a 'one' table structureErik Johnston2014-08-131-26/+31
|/
* Return the room_alias when GETing public rooms.Kegan Dougal2014-08-131-2/+5
|
* add in whitespace after copyright statements to improve legibilityMatthew Hodgson2014-08-1314-0/+14
|
* Reference Matrix Home Servermatrix.org2014-08-1222-0/+3334