summary refs log tree commit diff
path: root/synapse/storage/__init__.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge changes from developMark Haines2015-01-291-0/+40
|\
| * Move pushers delta to v12 and bump schema versionDavid Baker2015-01-281-1/+1
| |
| * Add brackets to make get room name / alias workDavid Baker2015-01-261-2/+2
| |
| * oops, this is not its own schema fileDavid Baker2015-01-221-1/+0
| |
| * Oops: second part of commit dc938606David Baker2015-01-221-0/+3
| |
| * Send room name and first alias in notification poke.David Baker2015-01-151-0/+35
| |
| * Merge branch 'develop' into pushersDavid Baker2015-01-131-5/+3
| |\
| * \ Merge branch 'develop' into pushersDavid Baker2014-12-181-129/+70
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: synapse/api/errors.py synapse/server.py synapse/storage/__init__.py
| * | | schema version is now 10David Baker2014-12-181-1/+1
| | | |
| * | | ...and bump SCHEMA_VERSIONDavid Baker2014-12-181-1/+1
| | | |
| * | | Merge branch 'develop' into pushersDavid Baker2014-12-021-16/+43
| |\ \ \
| * \ \ \ Merge branch 'develop' into pushersDavid Baker2014-11-201-1/+1
| |\ \ \ \
| * | | | | Start creating a module to do generic notifications (just prints them to ↵David Baker2014-11-191-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | stdout currently!)
* | | | | | Created schema deltaPaul "LeoNerd" Evans2015-01-271-1/+1
| | | | | |
* | | | | | Initial stab at real SQL storage implementation of user filter definitionsPaul "LeoNerd" Evans2015-01-271-0/+1
| | | | | |
* | | | | | Move storage of user filters into real datastore layer; now have to mock it ↵Paul "LeoNerd" Evans2015-01-271-1/+2
| |_|_|_|/ |/| | | | | | | | | | | | | | out in the REST-level tests
* | | | | Add delta and bump DB versionErik Johnston2015-01-061-1/+1
| | | | |
* | | | | Update copyright noticesMark Haines2015-01-061-1/+1
| | | | |
* | | | | Merge branch 'develop' of github.com:matrix-org/synapse into release-v0.6.0Erik Johnston2014-12-161-80/+0
|\ \ \ \ \ | | |_|_|/ | |/| | | | | | | | | | | | | Conflicts: synapse/state.py
| * | | | Merge branch 'release-v0.6.0' into developMark Haines2014-12-161-1/+13
| |\ \ \ \
| * | | | | Remove send_message since nothing was calling it. Remove Snapshot because ↵Mark Haines2014-12-161-80/+0
| | | | | | | | | | | | | | | | | | | | | | | | only send_message was using it
* | | | | | Use is_outlier() so that we don't get AttributeErrorErik Johnston2014-12-161-3/+1
| |/ / / / |/| | | |
* | | | | Do run all deltas up to missing delta 10Erik Johnston2014-12-161-4/+4
| | | | |
* | | | | Make failure to run appropraite upgrade scripts more helpful.Erik Johnston2014-12-161-0/+12
| | | | |
* | | | | Bump database versionErik Johnston2014-12-161-1/+1
|/ / / /
* | | | Update upgrade scriptErik Johnston2014-12-161-1/+1
| | | |
* | | | Persist internal_metadataErik Johnston2014-12-161-0/+5
| | | |
* | | | Kill off synapse.api.events.*Erik Johnston2014-12-161-10/+6
| | | |
* | | | Use frozenutilsErik Johnston2014-12-151-2/+1
| | | |
* | | | Fix bug where we ignored event_edge_hashes tableErik Johnston2014-12-151-1/+0
| | | |
* | | | Store json as UTF-8 and not bytesErik Johnston2014-12-121-1/+1
| | | |
* | | | Merge branch 'develop' of github.com:matrix-org/synapse into events_refactorErik Johnston2014-12-111-1/+5
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: setup.py
| * \ \ \ Merge branch 'develop' into media_repositoryMark Haines2014-12-101-1/+1
| |\ \ \ \
| * \ \ \ \ Merge branch 'develop' into media_repositoryMark Haines2014-12-101-16/+43
| |\ \ \ \ \ | | | |_|_|/ | | |/| | |
| * | | | | Get uploads working with new media repoMark Haines2014-12-021-1/+5
| | |_|_|/ | |/| | |
* | | | | Fix bug where we clobbered old state group valuesErik Johnston2014-12-101-1/+2
| | | | |
* | | | | Fix bug when uploading state with empty state_keyErik Johnston2014-12-101-1/+3
| | | | |
* | | | | Merge branch 'develop' of github.com:matrix-org/synapse into events_refactorErik Johnston2014-12-101-1/+1
|\ \ \ \ \ | | |_|/ / | |/| | |
| * | | | track replication destination health, and perform exponential back-off when ↵Matthew Hodgson2014-12-071-1/+1
| | |/ / | |/| | | | | | | | | | sending transactions. does *not* yet retry transactions, but drops them on the floor if waiting for a server to recover.
* | | | Try and figure out how and why signatures are being changed.Erik Johnston2014-12-101-10/+0
| | | |
* | | | Change the way we implement get_events to be less suckyErik Johnston2014-12-091-17/+7
| | | |
* | | | Start making more things use EventContext rather than event.*Erik Johnston2014-12-051-10/+13
| | | |
* | | | Store full JSON of events in dbErik Johnston2014-12-011-0/+19
|/ / /
* | | Don't delete the entire current_state_events tableErik Johnston2014-11-261-1/+4
| | |
* | | Add update delta for schema changeErik Johnston2014-11-261-1/+1
| | |
* | | Correctly handle the case where we get an event for an unknown room, which ↵Erik Johnston2014-11-261-15/+39
|/ / | | | | | | turns out we are actually in
* | Use module loggers rather than the root logger. Exceptions caused by bad ↵Mark Haines2014-11-201-1/+1
| | | | | | | | clients shouldn't cause ERROR level logging. Fix sql logging to use 'repr' rather than 'str'
* | Bump version, changelog and upgrade.rstErik Johnston2014-11-191-1/+1
|/
* Fix PDU and event signaturesMark Haines2014-11-141-2/+2
|
* Store all signatures on events rather than just dropping themErik Johnston2014-11-121-7/+8
|
* Fix bugs with invites/joins across federatiom.Erik Johnston2014-11-121-3/+11
| | | | | Both in terms of auth and not trying to fetch missing PDUs for invites, joins etc.
* PEP8Erik Johnston2014-11-101-3/+4
|
* Tidy up some of the unused sql tablesErik Johnston2014-11-101-18/+3
|
* Fix joining over federationErik Johnston2014-11-071-0/+1
|
* Start implementing auth chainsErik Johnston2014-11-071-1/+11
|
* Amalgamate all power levels.Erik Johnston2014-11-061-12/+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-061-23/+69
| | | | | `prev_state` is now a list of previous state ids, similiar to prev_events. `replace_state` now points to what we think was replaced.
* FormattingErik Johnston2014-11-031-1/+4
|
* Sign evnetsErik Johnston2014-10-311-0/+6
|
* Make prev_event signing work again.Erik Johnston2014-10-311-6/+5
|
* Remove more references to dead PDU tablesErik Johnston2014-10-311-9/+0
|
* Remove PDU tables.Erik Johnston2014-10-311-59/+1
|
* Start filling out and using new events tablesErik Johnston2014-10-291-19/+26
|
* Don't reference PDU when persisting eventErik Johnston2014-10-281-2/+3
|
* Begin implementing all the PDU storage stuff in Events landErik Johnston2014-10-281-17/+55
|
* Add transaction level logging and timing information. Add a _simple_delete ↵Erik Johnston2014-10-281-1/+2
| | | | method
* Merge branch 'event_signing' of github.com:matrix-org/synapse into ↵Erik Johnston2014-10-271-7/+44
|\ | | | | | | | | | | | | federation_authorization Conflicts: synapse/storage/__init__.py
| * Merge branch 'develop' into event_signingMark Haines2014-10-271-4/+5
| |\
| * \ Merge branch 'develop' into event_signingMark Haines2014-10-171-0/+2
| |\ \ | | | | | | | | | | | | | | | | Conflicts: synapse/federation/replication.py
| * | | Hash the same content covered by the signature when referencing previous ↵Mark Haines2014-10-171-1/+8
| | | | | | | | | | | | | | | | PDUs rather than reusing the PDU content hashes
| * | | Include hashes of previous pdus when referencing themMark Haines2014-10-161-6/+14
| | | |
| * | | Sign outgoing PDUs.Mark Haines2014-10-161-3/+4
| | | |
| * | | persist hashes and origin signatures for PDUsMark Haines2014-10-151-1/+20
| | | |
* | | | Merge branch 'develop' of github.com:matrix-org/synapse into ↵Erik Johnston2014-10-271-4/+7
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | 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-171-1/+1
| | |/ | |/|
| * | keep 'origin_server_ts' as 'ts' in the database to avoid needlessly updating ↵Mark Haines2014-10-171-0/+2
| |/ | | | | | | schema
* / Begin implementing state groups.Erik Johnston2014-10-141-1/+5
|/
* Merge branch 'develop' into server2server_signingMark Haines2014-09-301-6/+47
|\ | | | | | | | | | | Conflicts: synapse/storage/__init__.py tests/rest/test_presence.py
| * pyflakes cleanupErik Johnston2014-09-301-1/+1
| |
| * SYN-48: Delete dead codeErik Johnston2014-09-291-26/+0
| |
| * SYN-48: Implement WHOIS rest servletErik Johnston2014-09-291-2/+38
| |
| * SYN-48: Track User-Agents as well as IPs for client devices.Erik Johnston2014-09-291-2/+4
| |
| * Track the IP users connect with. Add an admin column to users table.Erik Johnston2014-09-261-1/+11
| |
| * Merge branch 'deletions' of github.com:matrix-org/synapse into developErik Johnston2014-09-251-4/+22
| |\
| | * Add LIMIT to scalar subqueryErik Johnston2014-09-251-1/+2
| | |
| | * Rename deletions to redactionsErik Johnston2014-09-241-11/+12
| | |
| | * 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-241-1/+5
| | |
| | * Add v4 deltas to current sql.Erik Johnston2014-09-241-0/+1
| | |
| | * Rename 'pruned' to 'pruned_because'Erik Johnston2014-09-231-1/+1
| | |
| | * 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-231-4/+25
| | | | | | | | | | | | 'pruned', i.e. all client specified keys will be removed.
| * | 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-301-0/+1
|/
* 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-151-1/+7
|\|
| * Fix bug where we no longer stored user_id on PdusErik Johnston2014-09-121-1/+7
| |
* | Revert recent changes to RoomMemberStorePaul "LeoNerd" Evans2014-09-121-1/+1
| |
* | Add a .runInteraction() method on SQLBaseStore itself to wrap the .db_poolPaul "LeoNerd" Evans2014-09-121-2/+2
| |
* | Rename _store_room_member_txn to _store_room_member_from_event_txn so we can ↵Paul "LeoNerd" Evans2014-09-111-1/+1
| | | | | | | | 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
|
* 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-061-2/+7
|
* fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org ↵Matthew Hodgson2014-09-031-1/+1
| | | | hasn't been incorporated in time for launch.
* Fix bug where we didn't correctly store the ops power levels event.Erik Johnston2014-09-021-0/+3
|
* Merge branch 'develop' of github.com:matrix-org/synapse into room_configErik Johnston2014-09-011-1/+2
|\
| * Add store for server certificates and keysMark Haines2014-08-281-1/+2
| |
* | Add beginnings of ban support.Erik Johnston2014-09-011-2/+0
| |
* | Implement power level lists, default power levels and ↵Erik Johnston2014-09-011-5/+7
| | | | | | | | send_evnet_level/add_state_level events.
* | Start adding storage for new events.Erik Johnston2014-08-291-0/+9
|/
* Return the store_id from persist_eventMark Haines2014-08-271-1/+3
|
* add _get_room_member, fix datastore methodsMark Haines2014-08-271-6/+6
|
* Fill out prev_events before calling persist_eventMark Haines2014-08-271-6/+15
|
* Merge branch 'develop' into storage_transactionsMark Haines2014-08-271-1/+0
|\
| * Added support for GET /events/$eventid with auth checks.Kegan Dougal2014-08-271-1/+0
| |
* | Fold federation/handler into handlers/federationMark Haines2014-08-261-1/+3
| |
* | Move pdu and event persistence into a single persist_event functionMark Haines2014-08-261-2/+30
| |
* | Merge branch 'develop' into storage_transactionsMark Haines2014-08-261-2/+8
|\| | | | | | | | | | | | | Conflicts: synapse/api/auth.py synapse/handlers/room.py synapse/storage/__init__.py
| * Fix pyflakes errorsMark Haines2014-08-261-2/+3
| |
| * Don't return state event outlier's when paginating.Erik Johnston2014-08-221-1/+6
| |
* | fix a few pyflakes errorsMark Haines2014-08-261-3/+3
| |
* | Move the event storage into a single transactionMark Haines2014-08-261-27/+32
| |
* | Take a snapshot of the state of the room before performing updatesMark Haines2014-08-221-0/+64
|/
* Give the event_id of the failed eventErik Johnston2014-08-201-1/+4
|
* Fix bug where we sometimes set min_token to None.Erik Johnston2014-08-191-1/+2
|
* Add a 'backfill room' buttonErik Johnston2014-08-191-4/+18
|
* SQL doesn't allow AUTOINCREMENT on non PRIMARY KEY columns.Erik Johnston2014-08-181-2/+19
|
* Add two different columns for ordering the events table, one which can be ↵Erik Johnston2014-08-181-4/+14
| | | | 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
* We no longer need to special case room config events.Erik Johnston2014-08-151-2/+2
|
* PEP8 cleanupsErik Johnston2014-08-151-1/+5
|
* Correctly return new token when returning events. Serialize events correctly.Erik Johnston2014-08-151-1/+5
|
* Start chagning the events stream to work with the new DB schemaErik Johnston2014-08-151-1/+9
|
* Reimplement the get public rooms api to work with new DB schemaErik Johnston2014-08-151-1/+5
|
* Fix up typos and correct sql queriesErik Johnston2014-08-141-10/+10
|
* Start fixing places that use the data store.Erik Johnston2014-08-141-5/+3
|
* Fix typoErik Johnston2014-08-141-1/+1
|
* Rename _execute_queryErik Johnston2014-08-141-1/+1
|
* Actually encode dicts as json in the DBErik Johnston2014-08-141-2/+2
|
* Merge branch 'master' of github.com:matrix-org/synapse into sql_refactorErik Johnston2014-08-141-1/+0
|\ | | | | | | | | Conflicts: synapse/storage/_base.py
| * Set datastore's .hs field in SQLBaseStore rather than in the toplevel ↵Paul "LeoNerd" Evans2014-08-131-1/+0
| | | | | | | | DataStore mixed-in result class
* | Initial stab at refactoring the SQL tables, including rejigging some of the ↵Erik Johnston2014-08-131-40/+73
|/ | | | storage layer.
* add in whitespace after copyright statements to improve legibilityMatthew Hodgson2014-08-131-0/+1
|
* Reference Matrix Home Servermatrix.org2014-08-121-0/+117