summary refs log tree commit diff
path: root/synapse/storage/__init__.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-141-1/+0
| | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>`
* Import HomeServer from the proper module. (#9665)Patrick Cloke2021-03-231-1/+1
|
* Update black, and run auto formatting over the codebase (#9381)Eric Eastwood2021-02-161-2/+1
| | | | | | | - Update black version to the latest - Run black auto formatting over the codebase - Run autoformatting according to [`docs/code_style.md `](https://github.com/matrix-org/synapse/blob/80d6dc9783aa80886a133756028984dbf8920168/docs/code_style.md) - Update `code_style.md` docs around installing black to use the correct version
* Add additional type hints to the storage module. (#8980)Patrick Cloke2020-12-301-2/+7
|
* Make `StreamToken.room_key` be a `RoomStreamToken` instance. (#8281)Erik Johnston2020-09-111-1/+4
|
* Stop sub-classing object (#8249)Patrick Cloke2020-09-041-1/+1
|
* Rename database classes to make some sense (#8033)Erik Johnston2020-08-051-7/+8
|
* Move are_all_users_on_domain checks to main data store.Erik Johnston2019-12-061-12/+0
|
* CommentsErik Johnston2019-12-051-4/+4
|
* Merge branch 'develop' of github.com:matrix-org/synapse into ↵Erik Johnston2019-10-311-0/+2
|\ | | | | | | erikj/split_purge_history
| * Add StateGroupStorage interfaceErik Johnston2019-10-301-0/+2
| |
* | Split purge API into events vs stateErik Johnston2019-10-301-0/+2
|/
* Review commentsErik Johnston2019-10-301-2/+2
|
* Add DataStores and Storage classes.Erik Johnston2019-10-231-1/+18
|
* Move README into synapse/storage/__init__.pyErik Johnston2019-10-221-0/+12
|
* Merge branch 'develop' of github.com:matrix-org/synapse into ↵Erik Johnston2019-10-221-1/+2
|\ | | | | | | erikj/refactor_stores
| * use stream ID generator instead of timestampHubert Chathi2019-08-281-0/+3
| |
| * Merge branch 'cross-signing_hidden' into cross-signing_keysHubert Chathi2019-08-011-4/+4
| |\
| * | allow uploading keys for cross-signingHubert Chathi2019-07-251-1/+4
| | |
* | | Move storage classes into a main "data store".Erik Johnston2019-10-211-503/+1
| |/ |/| | | | | | | This is in preparation for having multiple data stores that offer different functionality, e.g. splitting out state or event storage.
* | Replace returnValue with return (#5736)Amber Brown2019-07-231-1/+1
| |
* | Add `user_type` to returned fields in admin API user list endpointsJason Robinson2019-07-221-3/+3
|/ | | | | | | Mostly user type will be empty (normal user) but there is also the "support" user type. Signed-off-by: Jason Robinson <jasonr@matrix.org>
* Run Black. (#5482)Amber Brown2019-06-201-6/+4
|
* add monthly active users to phonehome stats (#5252)Neil Johnson2019-06-101-15/+29
| | | | * add monthly active users to phonehome stats
* Move event background updates to a separate fileErik Johnston2019-05-301-0/+2
|
* Room Statistics (#4338)Amber Brown2019-05-211-0/+2
|
* Add simple send_relation API and track in DBErik Johnston2019-05-151-0/+2
|
* Clean up the database pagination code (#5007)Amber Brown2019-04-051-7/+13
| | | | | | | | * rewrite & simplify * changelog * cleanup potential sql injection
* Run black on the rest of the storage module (#4996)Amber Brown2019-04-031-96/+99
|
* Fix flake8 (#4519)Amber Brown2019-01-301-1/+1
|
* drop undocumented dependency on dateutil (#4266)Richard van der Hoff2018-12-061-7/+6
| | | | It turns out we were relying on dateutil being pulled in transitively by pysaml2. There's no need for that bloat.
* Drop sent_transactionsAaron Raimist2018-12-011-1/+0
| | | | Signed-off-by: Aaron Raimist <aaron@raim.ist>
* Merge branch 'develop' into e2e_backupsHubert Chathi2018-08-241-26/+2
|\
| * remove unused count_monthly_usersNeil Johnson2018-08-021-25/+0
| |
| * insertion into monthly_active_usersNeil Johnson2018-08-021-0/+2
| |
| * self.db_conn unusedNeil Johnson2018-08-011-1/+0
| |
* | make it work and fix pep8Matthew Hodgson2018-08-121-0/+2
|/
* improve clarityNeil Johnson2018-08-011-4/+5
|
* Merge branch 'develop' of github.com:matrix-org/synapse into ↵Neil Johnson2018-08-011-1/+1
|\ | | | | | | neilj/mau_sign_in_log_in_limits
| * Make EventStore inherit from EventFederationStoreRichard van der Hoff2018-07-261-1/+1
| | | | | | | | | | | | | | | | (since it uses methods therein) Turns out that we had a bunch of things which were incorrectly importing EventWorkerStore from events.py rather than events_worker.py, which broke once I removed the import into events.py.
* | remove errant printNeil Johnson2018-08-011-1/+0
| |
* | make count_monthly_users async synapse/handlers/auth.pyNeil Johnson2018-08-011-13/+13
| |
* | coding styleNeil Johnson2018-07-311-2/+1
| |
* | actually close connNeil Johnson2018-07-301-4/+8
| |
* | factor out metrics from __init__ to app/homeserverNeil Johnson2018-07-301-24/+13
| |
* | limit register and sign in on number of monthly usersNeil Johnson2018-07-301-0/+34
|/
* run isortAmber Brown2018-07-091-31/+28
|
* Revert "Revert "Merge pull request #3431 from ↵Erik Johnston2018-06-251-0/+2
| | | | | | matrix-org/rav/erasure_visibility"" This reverts commit 1d009013b3c3e814177afc59f066e02a202b21cd.
* Revert "Merge pull request #3431 from matrix-org/rav/erasure_visibility"Richard van der Hoff2018-06-221-2/+0
| | | | | This reverts commit ce0d911156b355c5bf452120bfb08653dad96497, reversing changes made to b4a5d767a94f1680d07edfd583aae54ce422573e.
* UserErasureStoreRichard van der Hoff2018-06-121-0/+2
| | | | to store which users have been erased
* Tighter filtering for user_daily_visitsNeil Johnson2018-05-181-1/+5
|
* fix psql compatability bugNeil Johnson2018-05-181-1/+1
|
* remove empty lineNeil Johnson2018-05-161-1/+0
|
* style and further contraining queryNeil Johnson2018-05-161-8/+12
|
* Limit query load of generate_user_daily_visitsNeil Johnson2018-05-151-13/+47
| | | | The aim is to keep track of when it was last called and only query from that point in time
* instead of inserting user daily visit data at the end of the day, instead ↵Neil Johnson2018-05-141-40/+14
| | | | insert incrementally through the day
* remove user agent from data model, will just join on user_ipsNeil Johnson2018-05-011-12/+11
|
* pep8Neil Johnson2018-04-251-3/+4
|
* Generate user daily statsNeil Johnson2018-04-251-4/+56
|
* fix typoNeil Johnson2018-04-101-2/+2
|
* remove errant print v0.27.3-rc2Neil Johnson2018-04-091-1/+1
|
* Fix msec to sec, againNeil Johnson2018-04-091-3/+3
|
* Fix msec to secNeil Johnson2018-04-091-1/+1
|
* Fix psycopg2 interpolationNeil Johnson2018-04-091-5/+5
|
* Review commentsNeil Johnson2018-04-051-4/+5
| | | | | Use iteritems over item to loop over dict formatting
* pep8Neil Johnson2018-03-291-2/+4
|
* Remove need for sqlite specific queryNeil Johnson2018-03-291-30/+57
|
* fix pep8 errorsNeil Johnson2018-03-281-3/+0
|
* remove twisted deferral cruftNeil Johnson2018-03-281-6/+3
|
* Support multi client R30 for psqlNeil Johnson2018-03-281-8/+28
|
* No need to cast in count_daily_usersNeil Johnson2018-03-281-2/+2
|
* query and call for r30 statsNeil Johnson2018-03-281-0/+36
|
* count_daily_users failed if db was sqlite due to type failure - presumably ↵Neil Johnson2018-03-281-1/+1
| | | | this prevcented all sqlite homeservers reporting home
* Merge branch 'develop' of github.com:matrix-org/synapse into ↵Erik Johnston2018-03-011-15/+0
|\ | | | | | | erikj/split_stream_store
| * Calculate stream_ordering_month_ago correctly on workersErik Johnston2018-03-011-15/+0
| |
* | Remove unused variablesErik Johnston2018-03-011-8/+1
| |
* | Split out stream storeErik Johnston2018-03-011-8/+0
|/
* Merge pull request #2898 from matrix-org/erikj/split_push_rules_storeErik Johnston2018-02-231-12/+1
|\ | | | | Split PushRulesStore
| * Update copyrightErik Johnston2018-02-231-0/+1
| |
| * Split PushRulesStoreErik Johnston2018-02-211-12/+0
| |
* | Split AccountDataStore and TagStoreErik Johnston2018-02-211-8/+0
|/
* Split ReceiptsStoreErik Johnston2018-02-201-3/+0
|
* Store state groups separately from events (#2784)Erik Johnston2018-02-061-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Split state group persist into seperate storage func * Add per database engine code for state group id gen * Move store_state_group to StateReadStore This allows other workers to use it, and so resolve state. * Hook up store_state_group * Fix tests * Rename _store_mult_state_groups_txn * Rename StateGroupReadStore * Remove redundant _have_persisted_state_group_txn * Update comments * Comment compute_event_context * Set start val for state_group_id_seq ... otherwise we try to recreate old state groups * Update comments * Don't store state for outliers * Update comment * Update docstring as state groups are ints
* Make __init__ consitstent across Store heirarchyRichard van der Hoff2017-11-131-1/+1
| | | | | | Add db_conn parameters to the `__init__` methods of the *Store classes, so that they are all consistent, which makes the multiple inheritance work correctly (and so that we can later extract mixins which can be used in the slavedstores)
* Add groups to sync streamErik Johnston2017-07-201-0/+15
|
* Initial group server implementationErik Johnston2017-07-101-1/+2
|
* Fix up client ips to read from pending dataErik Johnston2017-06-271-10/+0
|
* Merge pull request #2281 from matrix-org/erikj/phone_home_statsErik Johnston2017-06-151-12/+14
|\ | | | | Fix phone home stats
| * Fix phone home statsErik Johnston2017-06-141-12/+14
| |
* | Merge pull request #2259 from matrix-org/erikj/fix_state_woesErik Johnston2017-06-071-1/+2
|\ \ | | | | | | Fix bug where state_group tables got corrupted
| * | Fix bug where state_group tables got corruptedErik Johnston2017-06-071-1/+2
| |/ | | | | | | | | | | | | | | This is due to the fact that we prefilled caches using txn.call_after, which always gets called including on error. We fix this by making txn.call_after only fire when a transaction completes successfully, which is what we want most of the time anyway.
* | Add stream change cacheErik Johnston2017-05-311-0/+12
| |
* | Add user_directory to databaseErik Johnston2017-05-311-0/+2
|/
* admin,storage: added more administrator functionalitiesMorteza Araby2017-02-021-0/+76
| | | | | | | | | | | | | | administrators can now: - Set displayname of users - Update user avatars - Search for users by user_id - Browse all users in a paginated API - Reset user passwords - Deactivate users Helpers for doing paginated queries has also been added to storage Signed-off-by: Morteza Araby <morteza.araby@ericsson.com>
* Add basic implementation of local device list changesErik Johnston2017-01-251-0/+11
|
* Limit number of entries to prefill from cacheErik Johnston2017-01-101-1/+3
| | | | | | | | | Some tables, like device_inbox, take a long time to query at startup for the stream change cache prefills. This is likely because they are slower growing streams and so are more fragmented on disk. For now, lets pull fewer entries out to make startup quicker. In future, we should add a better index to make it even faster.
* Add profile data to the room_membership table for joinsErik Johnston2016-12-081-0/+1
|
* Rip out more refresh_token codeRichard van der Hoff2016-11-301-1/+0
| | | | | | | | We might as well treat all refresh_tokens as invalid. Just return a 403 from /tokenrefresh, so that we don't have a load of dead, untestable code hanging around. Still TODO: removing the table from the schema.
* Handling expiring stream extrems correctly.Erik Johnston2016-09-151-0/+2
|
* Add a room visibility streamErik Johnston2016-09-141-0/+3
|
* Track the max_stream_device_id in a separate table, since we delete from the ↵Mark Haines2016-09-091-1/+1
| | | | inbox table
* Fix the stream change cache to work over replicationMark Haines2016-09-071-1/+1
|
* Add stream change caches for device messagesMark Haines2016-09-071-0/+24
|
* Make _state_groups_id_gen a normal IdGeneratorErik Johnston2016-08-301-1/+1
|
* Add store-and-forward direct-to-device messagingMark Haines2016-08-251-0/+5
|
* Rename table. Add docs.Erik Johnston2016-08-151-1/+1
|
* Implement cache replication streamErik Johnston2016-08-151-3/+8
|
* Add some invalidations to a cache_streamErik Johnston2016-08-151-0/+3
|
* Add device_id support to /loginRichard van der Hoff2016-07-181-0/+3
| | | | | | | | | | | | | Add a 'devices' table to the storage, as well as a 'device_id' column to refresh_tokens. Allow the client to pass a device_id, and initial_device_display_name, to /login. If login is successful, then register the device in the devices table if it wasn't known already. If no device_id was supplied, make one up. Associate the device_id with the access token and refresh token, so that we can get at it again later. Ensure that the device_id is copied from the refresh token to the access_token when the token is refreshed.
* Pull out min stream_ordering from ex_outlier_streamErik Johnston2016-07-151-1/+2
|
* Move insert_client_ip to a separate classMark Haines2016-06-031-45/+3
|
* Add a slaved store for presenceMark Haines2016-06-031-3/+3
|
* Fix to allow start with postgresErik Johnston2016-05-271-2/+7
|
* Make deleting push actions more efficientDavid Baker2016-05-201-0/+9
| | | | There's no index on received_ts, so manually binary search using the stream_ordering index, and only update it once an hour.
* Add an openidish mechanism for proving to third parties that you own a given ↵Mark Haines2016-05-051-1/+3
| | | | user_id
* Add timestamp and auto incrementing IDErik Johnston2016-05-041-0/+1
|
* Move _get_cache_dict into the SQLBaseStoreMark Haines2016-04-061-33/+0
|
* Fix stuck invitesErik Johnston2016-04-051-1/+2
| | | | | | | | If rejecting a remote invite fails with an error response don't fail the entire request; instead mark the invite as locally rejected. This fixes the bug where users can get stuck invites which they can neither accept nor reject.
* Rename direction to step, apply checks consistentlyMark Haines2016-04-011-1/+1
|
* Use a stream id generator for backfilled idsMark Haines2016-04-011-13/+7
|
* Use a stream id generator to assign state group idsMark Haines2016-03-301-1/+1
|
* Add replication stream for pushersMark Haines2016-03-151-1/+4
|
* Fix relative imports so they work in both py3 and py27Mark Haines2016-03-081-1/+1
|
* Prefill from the correct streamMark Haines2016-03-041-1/+1
|
* prefill the push rules stream change cacheMark Haines2016-03-041-2/+9
|
* Hook up the push rules stream to account_data in /syncMark Haines2016-03-041-0/+5
|
* Add a stream for push rule updatesMark Haines2016-03-011-1/+4
|
* Load the current id in the IdGenerator constructorMark Haines2016-03-011-7/+7
| | | | | | | | | Rather than loading them lazily. This allows us to remove all the yield statements and spurious arguments for the get_next methods. It also allows us to replace all instances of get_next_txn with get_next since get_next no longer needs to access the db.
* Close cursorErik Johnston2016-02-181-0/+1
|
* Prefix TS fields with _tsErik Johnston2016-02-181-2/+2
|
* Initial cutErik Johnston2016-02-171-3/+47
|
* Fix flake8 warnings for new flake8Daniel Wagner-Hall2016-02-021-1/+1
|
* Cache get_room_changes_for_userErik Johnston2016-01-291-0/+4
|
* Comment. Remove superfluous order byErik Johnston2016-01-291-1/+3
|
* Don't prefill account dataErik Johnston2016-01-291-8/+1
|
* Actually use cacheErik Johnston2016-01-291-7/+13
|
* Max is not a functionErik Johnston2016-01-291-1/+1
|
* Convert param styleErik Johnston2016-01-291-0/+3
|
* Prefill stream change cachesErik Johnston2016-01-291-1/+48
|
* Clean up a bit. Add commentErik Johnston2016-01-281-18/+9
|
* Add a Homeserver.setup method.Erik Johnston2016-01-261-4/+41
| | | | | | This is for setting up dependencies that require work on startup. This is useful for the DataStore that wants to read a bunch from the database before initiliazing.
* Merge pull request #456 from matrix-org/store_event_actionsDavid Baker2016-01-081-0/+2
|\ | | | | Send unread notification counts
| * Rename event-actions to event_push_actions as per PR requestDavid Baker2016-01-041-2/+2
| |
| * Save event actions to the dbDavid Baker2015-12-101-0/+2
| |
* | copyrightsMatthew Hodgson2016-01-071-1/+1
|/
* Add API for setting account_data globaly or on a per room basisMark Haines2015-12-011-0/+2
|
* Add APIs for adding and removing tags from roomsMark Haines2015-10-281-0/+2
|
* Merge branch 'erikj/store_engine' into erikj/searchErik Johnston2015-10-131-375/+0
|\
| * Expose error more nicelyErik Johnston2015-10-131-3/+0
| |
| * Split out the schema preparation and update logic into its own moduleErik Johnston2015-10-131-375/+3
| |
* | Add basic full text search impl.Erik Johnston2015-10-091-0/+2
|/
* Add some docstringsDaniel Wagner-Hall2015-09-221-0/+3
|
* Implement configurable stats reportingDaniel Wagner-Hall2015-09-221-1/+19
| | | | | | | | | | SYN-287 This requires that HS owners either opt in or out of stats reporting. When --generate-config is passed, --report-stats must be specified If an already-generated config is used, and doesn't have the report_stats key, it is requested to be set.
* Remove completely unused concepts from codebaseDaniel Wagner-Hall2015-08-251-4/+3
| | | | | | | | | | Removes device_id and ClientInfo device_id is never actually written, and the matrix.org DB has no non-null entries for it. Right now, it's just cluttering up code. This doesn't remove the columns from the database, because that's fiddly.
* /tokenrefresh POST endpointDaniel Wagner-Hall2015-08-201-1/+1
| | | | | | | | This allows refresh tokens to be exchanged for (access_token, refresh_token). It also starts issuing them on login, though no clients currently interpret them.
* Add index receipts_linearized_room_streamErik Johnston2015-08-171-1/+1
|
* Merge branch 'develop' of github.com:matrix-org/synapse into ↵Erik Johnston2015-08-071-0/+5
|\ | | | | | | erikj/dictionary_cache
| * Don't complain about extra .pyc files we find while hunting for database schemasPaul "LeoNerd" Evans2015-08-071-0/+5
| |
* | Change Cache to not use *args in its interfaceErik Johnston2015-08-071-2/+2
|/
* Merge branch 'develop' of github.com:matrix-org/synapse into erikj/receiptsErik Johnston2015-07-131-0/+2
|\
| * Add store for client end to end keysMark Haines2015-07-061-1/+3
| |
* | Fix various typosErik Johnston2015-07-071-0/+3
| |
* | Add tables for receiptsErik Johnston2015-06-301-1/+1
|/
* Bump schema versionErik Johnston2015-06-111-1/+1
|
* Add script to (re)convert the pushers table to changing the unique key. Also ↵David Baker2015-06-041-1/+1
| | | | give the python db upgrade scripts the database engine so they can convert parameter strings, and add *args **kwargs to the upgrade function so we can add more args in future and previous scripts will ignore them.
* Add index on eventsErik Johnston2015-05-131-1/+1
|
* Bump schema versionMark Haines2015-05-081-1/+1
|
* Don't lock user_ips table for upsert.Erik Johnston2015-05-011-0/+3
|
* We can't use REPLACE when upgrading databases now we have postgresErik Johnston2015-04-291-1/+2
|
* bump database schema versionMark Haines2015-04-291-1/+1
|
* Merge branch 'develop' of github.com:matrix-org/synapse into postgresErik Johnston2015-04-281-0/+12
|\
| * pep8David Baker2015-04-271-1/+1
| |
| * Run database check before daemonizing, at the cost of database hygiene.David Baker2015-04-271-0/+10
| |
* | Rename user_ips.user -> user_idErik Johnston2015-04-141-2/+2
| |
* | Add support for postgres instead of mysql. Change sql accourdingly. blob + ↵Erik Johnston2015-04-141-9/+6
| | | | | | | | varbinary -> bytea. No support for UNSIGNED or CREATE INDEX IF NOT EXISTS.
* | Bump schema versionErik Johnston2015-04-101-1/+1
| |
* | Merge branch 'develop' of github.com:matrix-org/synapse into mysqlErik Johnston2015-04-071-3/+33
|\|
| * Merge branch 'develop' into application-services-txn-reliabilityKegan Dougal2015-03-261-462/+27
| |\ | | | | | | | | | | | | Conflicts: synapse/storage/__init__.py
| | * Remember the 'last seen' time for a given user/IP/device combination and ↵Paul "LeoNerd" Evans2015-03-201-2/+30
| | | | | | | | | | | | only bother INSERTing another if it's stale
| * | Minor PR comment tweaks.Kegan Dougal2015-03-161-1/+1
| | |
| * | Merge branch 'develop' into application-services-txn-reliabilityKegan Dougal2015-03-161-6/+7
| |\ \ | | | | | | | | | | | | | | | | Conflicts: synapse/storage/appservice.py
| * | | Use seconds; start gluing in the AS scheduler into the AS handler.Kegan Dougal2015-03-091-2/+5
| | | |
| * | | Add appservice txns sql schemaKegan Dougal2015-03-061-1/+1
| | | |
* | | | PEP8Erik Johnston2015-04-071-4/+0
| | | |
* | | | Fix prepare_sqlite3_database's convert_param_styleErik Johnston2015-04-071-7/+2
| | | |
* | | | Bump database versionErik Johnston2015-04-071-1/+1
| | | |
* | | | Make work in both Maria and SQLite. Fix testsErik Johnston2015-04-011-22/+21
| | | |
* | | | Fix unicode database supportErik Johnston2015-03-251-4/+8
| | | |
* | | | Use _simple_upsertErik Johnston2015-03-241-3/+5
| | | |
* | | | Merge branch 'develop' of github.com:matrix-org/synapse into mysqlErik Johnston2015-03-201-1/+2
|\ \ \ \ | | |_|/ | |/| |
| * | | Give sensible names for '_simple_...' transactionsErik Johnston2015-03-201-1/+3
| | | |
| * | | Rearrange storage modulesErik Johnston2015-03-201-468/+4
| | |/ | |/|
* | | Rearrange storage modulesErik Johnston2015-03-201-462/+4
| | |
* | | Convert storage layer to be mysql compatibleErik Johnston2015-03-191-48/+116
|/ /
* | Also give _execute() a descriptionPaul "LeoNerd" Evans2015-03-111-2/+1
| |
* | Add a description to storage layer's _execute_and_decode()Paul "LeoNerd" Evans2015-03-111-2/+2
| |
* | These aren't defined for redacted events so don't crashDavid Baker2015-03-101-2/+4
|/
* Note that we don't specify execution orderErik Johnston2015-03-041-0/+4
|
* s/schema_deltas/applied_schema_deltas/Erik Johnston2015-03-041-7/+9
|
* s/%r/%s/Erik Johnston2015-03-041-1/+1
|
* Add example directory structures in docErik Johnston2015-03-041-1/+36
|
* Don't assume db conn is a Context Manager.Erik Johnston2015-03-041-1/+5
| | | | Twisted adbapi wrapped connections aren't context managers.
* Add unique constraint on schema_version.lock schema. Use conflict clause in sql.Erik Johnston2015-03-041-3/+3
|
* Use context manager with db conn to correctly commit and rollbackErik Johnston2015-03-041-11/+11
|
* More docs. Rename 'schema/current' to 'schema/full_schemas'Erik Johnston2015-03-041-7/+23
|
* Add some docs and remove unused variablesErik Johnston2015-03-041-8/+10
|
* SYN-67: Finish up implementing new database schema managementErik Johnston2015-03-041-66/+131
|
* SYN-67: Begin changing the way we handle schema versioningErik Johnston2015-03-021-38/+106
|
* Add missing commaErik Johnston2015-03-021-1/+1
|
* We purposefully don't have a version 14 delta script.Erik Johnston2015-03-021-1/+1
|
* Run deltas and bump user_version in upgrade scriptKegan Dougal2015-03-021-1/+1
|
* Use absolute path when loading delta sql filesErik Johnston2015-02-171-1/+2
|
* Bump schema versionErik Johnston2015-02-171-1/+1
|
* Merge pull request #50 from matrix-org/application-servicesMark Haines2015-02-131-0/+3
|\ | | | | Application Services
| * Merge branch 'develop' into application-servicesKegan Dougal2015-02-111-0/+5
| |\
| * \ Merge branch 'develop' into application-servicesKegan Dougal2015-02-051-75/+136
| |\ \
| * | | Implement txns for AS (un)registration.Kegan Dougal2015-02-021-1/+1
| | | |
| * | | Actually merge into develop.Kegan Dougal2015-02-021-8/+1
| | | |
| * | | Merge branch 'develop' into application-servicesKegan Dougal2015-02-021-4/+93
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: synapse/handlers/__init__.py synapse/storage/__init__.py
| * | | | Add basic application_services SQL, and hook up parts of the appservice ↵Kegan Dougal2015-01-281-0/+1
| | | | | | | | | | | | | | | | | | | | store to read from it.
| * | | | Add appservice handler and store. Glue together rest > handler > store.Kegan Dougal2015-01-271-2/+3
| | | | |
* | | | | Prepare the database whenever a connection is opened from the db_pool so ↵Mark Haines2015-02-131-0/+3
| | | | | | | | | | | | | | | | | | | | that in-memory databases will work
* | | | | Merge branch 'develop' of github.com:matrix-org/synapse into use-simplejsonErik Johnston2015-02-111-0/+5
|\ \ \ \ \ | | |_|_|/ | |/| | |
| * | | | Invalidate the cache for an event if it is redactedMark Haines2015-02-111-0/+2
| | | | |
| * | | | Add a cache for get_eventMark Haines2015-02-111-0/+3
| | |_|/ | |/| |
* | | | pyflakesErik Johnston2015-02-111-1/+0
| | | |
* | | | Don't unfreeze when using FreezeEvent.get_dict, as we are using a ↵Erik Johnston2015-02-111-2/+9
| | | | | | | | | | | | | | | | JSONEncoder that understands FrozenDict
* | | | Blunty replace json with simplejsonErik Johnston2015-02-111-1/+1
|/ / /
* | | Brief comment on why we do some things on every call to persist_event and ↵Erik Johnston2015-02-041-0/+6
| | | | | | | | | | | | not others
* | | Rearrange persist_event so that do all the queries that need to be done ↵Erik Johnston2015-02-041-71/+74
| | | | | | | | | | | | before returning early if we have already persisted that event.
* | | Add doc to get_eventErik Johnston2015-02-031-0/+15
| | |
* | | Try to ensure we don't persist an event we have already persisted. In ↵Erik Johnston2015-02-031-4/+36
| | | | | | | | | | | | persist_event check if we already have the event, if so then update instead of replacing so that we don't cause a bump of the stream_ordering.
* | | Don't fail an entire request if one of the returned events fails a signature ↵Erik Johnston2015-02-021-8/+13
| |/ |/| | | | | check. If an event does fail a signature check, look in the local database and request it from the originator.
* | Merge pull request #42 from matrix-org/replication_splitMark Haines2015-01-301-0/+29
|\ \ | | | | | | Replication split
| * \ Merge branch 'rejections_storage' of github.com:matrix-org/synapse into ↵Erik Johnston2015-01-301-0/+40
| |\ \ | | | | | | | | | | | | replication_split
| * | | Split up replication_layer module into client, server and transaction queueErik Johnston2015-01-261-1/+1
| | | |
| * | | Add storage method have_eventsErik Johnston2015-01-231-0/+29
| | | |
* | | | Remove merge conflictErik Johnston2015-01-301-3/+0
| | | |
* | | | Remember to add schema file to listErik Johnston2015-01-301-0/+1
| | | |
* | | | Merge branch 'develop' of github.com:matrix-org/synapse into rejections_storageErik Johnston2015-01-301-1/+10
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | Conflicts: synapse/storage/__init__.py
| * | | Merge pull request #37 from matrix-org/client_v2_filterErik Johnston2015-01-301-1/+3
| |\ \ \ | | | | | | | | | | Client v2 filter
| | * \ \ Merge changes from developMark Haines2015-01-291-0/+40
| | |\ \ \
| | * | | | 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 room member count condition and default rule to make a noise on rooms of ↵David Baker2015-01-301-1/+4
| | |/ / | |/| | | | | | | | | | only 2 people.
* | | | Merge branch 'develop' of github.com:matrix-org/synapse into rejections_storageErik Johnston2015-01-301-0/+40
|\| | | | |_|/ |/| | | | | | | | | | | Conflicts: synapse/storage/__init__.py synapse/storage/schema/delta/v12.sql
| * | 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
| | |