summary refs log tree commit diff
path: root/synapse/storage (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add postgres database engineErik Johnston2015-04-141-0/+44
|
* Rename user_ips.user -> user_idErik Johnston2015-04-143-8/+8
|
* Add support for postgres instead of mysql. Change sql accourdingly. blob + ↵Erik Johnston2015-04-1420-140/+151
| | | | varbinary -> bytea. No support for UNSIGNED or CREATE INDEX IF NOT EXISTS.
* Correctly increment the _next_id initiallyErik Johnston2015-04-141-2/+4
|
* For backwards compat, make state_groups.id have a type of int, not varcharErik Johnston2015-04-132-2/+2
|
* Remove duplicate rowsErik Johnston2015-04-101-0/+9
|
* Use case sensitive collationsErik Johnston2015-04-101-1/+1
|
* DROP indexes before recreating themErik Johnston2015-04-102-1/+9
|
* Use LONGBLOB and TEXT for arbitary length rowsErik Johnston2015-04-1012-34/+34
|
* Handle the fact that in sqlite binary data might be stored as unicode or bytesErik Johnston2015-04-105-5/+20
|
* Bump schema versionErik Johnston2015-04-101-1/+1
|
* Use unsigned bigintErik Johnston2015-04-1019-50/+50
|
* SQLite wants INTEGER and not BIGINT for primary keysErik Johnston2015-04-106-9/+9
|
* Update full_schemas/16 to match delta files. Add delta/16 scriptsErik Johnston2015-04-106-0/+245
|
* Revert non-trivial changes to upgrade scriptsErik Johnston2015-04-103-5/+5
|
* Fix schema againErik Johnston2015-04-102-3/+3
|
* Revert non-trivial schema changes and move them to a new schema version.Erik Johnston2015-04-1019-27/+636
|
* Remove unused importErik Johnston2015-04-091-1/+1
|
* Remove spurious spacesErik Johnston2015-04-0915-50/+50
|
* Merge branch 'develop' of github.com:matrix-org/synapse into mysqlErik Johnston2015-04-092-21/+30
|\
| * Merge pull request #114 from matrix-org/improve_get_event_cacheMark Haines2015-04-082-21/+30
| |\ | | | | | | Improve get event cache
| | * Appease pep8Paul "LeoNerd" Evans2015-03-261-1/+2
| | |
| | * Implement the main getEvent cache using Cache() instead of a custom ↵Paul "LeoNerd" Evans2015-03-251-12/+7
| | | | | | | | | | | | application of LruCache; also unify its two-level structure into just one
| | * Use FrozenEvent's reject_reason to decide whether to return it; don't ↵Paul "LeoNerd" Evans2015-03-251-10/+14
| | | | | | | | | | | | include allow_rejected in the main getEvents cache key
| | * Store the rejected reason in (Frozen)Event structsPaul "LeoNerd" Evans2015-03-251-2/+8
| | |
| | * Indirect invalidations of _get_event_cache via a helper method to keep all ↵Paul "LeoNerd" Evans2015-03-252-2/+5
| | | | | | | | | | | | uses of the cache lexically within one .py file
* | | Stream ordering and out of order insertions.Erik Johnston2015-04-095-65/+153
| | | | | | | | | | | | | | | | | | | | | Handle the fact that events can be persisted out of order, and so to get the "current max" stream token becomes non trivial - as we need to make sure that *all* stream tokens less than the current max have also successfully been persisted.
* | | Use generic db exceptions rather than sqlite3 specific onesErik Johnston2015-04-082-6/+2
| | |
* | | Merge branch 'develop' of github.com:matrix-org/synapse into mysqlErik Johnston2015-04-081-1/+2
|\| |
| * | Move database timer logging to seperate loggerErik Johnston2015-04-081-1/+2
| | |
* | | Retry transaction, not SQL queryErik Johnston2015-04-081-21/+25
| | |
* | | Fix maria engine to correctly recognize deadlocksErik Johnston2015-04-081-2/+2
| | |
* | | Merge branch 'develop' of github.com:matrix-org/synapse into mysqlErik Johnston2015-04-075-207/+429
|\| |
| * | Add same user_id char checks as registration.Kegan Dougal2015-03-311-1/+7
| | |
| * | Use a sender localpart instead of a user ID.Kegan Dougal2015-03-311-2/+9
| | | | | | | | | | | | | | | Form the user ID at runtime instead, This gives less room for error in AS config files since they cannot specify the domain of another HS.
| * | Edit SQL schema to use string IDs not ints. Use token as ID. Update tests.Kegan Dougal2015-03-312-13/+17
| | |
| * | Fix tests and missing returns on deferreds.Kegan Dougal2015-03-311-7/+11
| | |
| * | Remove more reg/unreg methods. Read config not database for cache.Kegan Dougal2015-03-311-160/+59
| | |
| * | Revert "Add another @cached wrapper, this time on get_presence_state()"Paul "LeoNerd" Evans2015-03-271-8/+2
| | | | | | | | | | | | This reverts commit ff1fa0fbf80cbb636e4cce59846bb5dcc91ccd03.
| * | Add another @cached wrapper, this time on get_presence_state()Paul "LeoNerd" Evans2015-03-271-2/+8
| | |
| * | Fixes from PR commentsKegan Dougal2015-03-261-2/+2
| | |
| * | Merge branch 'develop' into application-services-txn-reliabilityKegan Dougal2015-03-2619-644/+795
| |\| | | | | | | | | | | | | Conflicts: synapse/storage/__init__.py
| | * Allow a choice of LRU behaviour for Cache() by using LruCache() or OrderedDict()Paul "LeoNerd" Evans2015-03-251-8/+12
| | |
| | * Put a cache on get_aliases_for_roomPaul "LeoNerd" Evans2015-03-201-2/+8
| | |
| | * 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
| | * Pull out the cache logic from the @cached wrapper into its own class we can ↵Paul "LeoNerd" Evans2015-03-201-35/+54
| | | | | | | | | | | | reuse
| | * func(*EXPR) is valid Python syntax, really...Paul "LeoNerd" Evans2015-03-201-2/+1
| | |
| * | Set the service ID as soon as it is known.Kegan Dougal2015-03-161-3/+4
| | |
| * | Minor PR comment tweaks.Kegan Dougal2015-03-162-4/+4
| | |
| * | Merge branch 'develop' into application-services-txn-reliabilityKegan Dougal2015-03-169-54/+83
| |\ \ | | | | | | | | | | | | | | | | Conflicts: synapse/storage/appservice.py
| * | | Fix remaining scheduler bugs. Add more informative logging.Kegan Dougal2015-03-101-2/+3
| | | |
| * | | Remove unused importKegan Dougal2015-03-091-1/+0
| | | |
| * | | Bug fixes whilst putting it all togetherKegan Dougal2015-03-091-5/+4
| | | |
| * | | Use event IDs instead of dumping event content in the txns table.Kegan Dougal2015-03-092-7/+9
| | | |
| * | | Use seconds; start gluing in the AS scheduler into the AS handler.Kegan Dougal2015-03-091-2/+5
| | | |
| * | | Finish appservice txn storage impl and tests.Kegan Dougal2015-03-092-16/+71
| | | |
| * | | Implement create_appservice_txn with tests.Kegan Dougal2015-03-091-4/+42
| | | |
| * | | Partially implement txn store methods with tests.Kegan Dougal2015-03-091-17/+44
| | | |
| * | | Start implementing ApplicationServiceTransactionStoreKegan Dougal2015-03-061-1/+5
| | | |
| * | | Merge branch 'develop' into application-services-txn-reliabilityKegan Dougal2015-03-062-1/+56
| |\ \ \
| * | | | Assign the AS ID from the database; replace old placeholder txn id.Kegan Dougal2015-03-061-2/+3
| | | | |
| * | | | Add appservice txns sql schemaKegan Dougal2015-03-063-1/+38
| | | | |
| * | | | Apply clarity and docstringsKegan Dougal2015-03-061-1/+13
| | | | |
| * | | | Finish synapse.appservice.scheduler implementation.Kegan Dougal2015-03-061-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | With tests to assert behaviour. Not hooked up yet. Stub datastore methods not implemented yet.
| * | | | Flesh out more stub functions.Kegan Dougal2015-03-061-2/+15
| | | | |
| * | | | Add stub ApplicationServiceTransactionStore. Bootstrap Recoverers. Fill in ↵Kegan Dougal2015-03-061-0/+28
| | | | | | | | | | | | | | | | | | | | stub Transaction functions.
* | | | | Retry on deadlockErik Johnston2015-04-073-3/+21
| | | | |
* | | | | PEP8Erik Johnston2015-04-075-8/+0
| | | | |
* | | | | Fix prepare_sqlite3_database's convert_param_styleErik Johnston2015-04-071-7/+2
| | | | |
* | | | | Bump database versionErik Johnston2015-04-071-1/+1
| | | | |
* | | | | Add index to presence tableErik Johnston2015-04-071-0/+2
| | | | |
* | | | | Don't use multiple UNIQUE constraints; it will cause deadlocksErik Johnston2015-04-074-15/+17
| | | | |
* | | | | Implement or_ignore flag on insertsErik Johnston2015-04-072-4/+10
| | | | |
* | | | | Don't use AUTOINCREMENT, use an in memory versionErik Johnston2015-04-075-19/+68
| | | | |
* | | | | Fix unicode supportErik Johnston2015-04-0221-160/+189
| | | | |
* | | | | Make work in both Maria and SQLite. Fix testsErik Johnston2015-04-0124-100/+199
| | | | |
* | | | | Fix unicode database supportErik Johnston2015-03-2512-24/+52
| | | | |
* | | | | Escape non printing ascii characterErik Johnston2015-03-241-3/+3
| | | | |
* | | | | Don't reinsert into event_edgesErik Johnston2015-03-241-8/+8
| | | | |
* | | | | Fix bugs in transactions storageErik Johnston2015-03-241-2/+3
| | | | |
* | | | | Don't use room hosts tableErik Johnston2015-03-241-25/+4
| | | | |
* | | | | Don't order by rowidErik Johnston2015-03-241-1/+1
| | | | |
* | | | | Use _simple_upsertErik Johnston2015-03-242-5/+7
| | | | |
* | | | | Remove uses of REPLACE and ON CONFLICT IGNORE to make the SQL more portable.Erik Johnston2015-03-234-16/+4
| | | | |
* | | | | Sanitize RoomMemberStoreErik Johnston2015-03-231-63/+61
| | | | |
* | | | | Use 'update or insert' rather than on 'conflict replace'Erik Johnston2015-03-231-10/+17
| | | | |
* | | | | Sanitize TransactionStoreErik Johnston2015-03-231-87/+104
| | | | |
* | | | | Merge branch 'develop' of github.com:matrix-org/synapse into mysqlErik Johnston2015-03-2018-115/+227
|\ \ \ \ \ | | |_|_|/ | |/| | |
| * | | | PEP8Erik Johnston2015-03-201-1/+1
| | | | |
| * | | | Merge branch 'develop' of github.com:matrix-org/synapse into store_rearrangementErik Johnston2015-03-203-14/+30
| |\ \ \ \
| | * | | | Add the tiniest of tiny one-element caches to get_room_events_max_id() as ↵Paul "LeoNerd" Evans2015-03-202-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | it's read every time someone hits eventstream
| | * | | | Allow @cached-wrapped functions to have more or fewer than 1 argument; ↵Paul "LeoNerd" Evans2015-03-201-13/+27
| | | | | | | | | | | | | | | | | | | | | | | | assert on the total count of them though
| * | | | | Give sensible names for '_simple_...' transactionsErik Johnston2015-03-2013-38/+93
| | | | | |
| * | | | | Start removing TablesErik Johnston2015-03-202-26/+29
| | | | | |
| * | | | | Tidy up _simple_... methodsErik Johnston2015-03-202-40/+60
| | | | | |
| * | | | | Rearrange storage modulesErik Johnston2015-03-207-515/+493
| |/ / / /
| * | | | Clean out event_forward_extremities table when the server rejoins the roomErik Johnston2015-03-181-0/+12
| | | | |
| * | | | @cached() annotate get_user_by_token() - achieves a minor DB performance ↵Paul "LeoNerd" Evans2015-03-171-1/+6
| | | | | | | | | | | | | | | | | | | | improvement
| * | | | Be polite and ensure we use @functools.wraps() when creating a function ↵Paul "LeoNerd" Evans2015-03-171-0/+2
| | | | | | | | | | | | | | | | | | | | decorator
* | | | | Rearrange storage modulesErik Johnston2015-03-207-509/+486
| | | | |
* | | | | Generate transaction id in codeErik Johnston2015-03-201-1/+1
| | | | |
* | | | | decode_result takes an iterableErik Johnston2015-03-202-2/+5
| | | | |
* | | | | Fix up schemas some moreErik Johnston2015-03-203-3/+3
| | | | |
* | | | | Convert storage layer to be mysql compatibleErik Johnston2015-03-1913-101/+171
| | | | |
* | | | | Remove redundant keyErik Johnston2015-03-191-1/+0
| | | | |
* | | | | Fix up schemas to work with mariadbErik Johnston2015-03-1915-84/+82
| | | | |
* | | | | Update schema to work with mariadbErik Johnston2015-03-1816-256/+224
|/ / / /
* | | | Add a metric for the scheduling latency of SQL queriesPaul "LeoNerd" Evans2015-03-161-0/+5
| | | |
* | | | Merge pull request #110 from matrix-org/fix_banErik Johnston2015-03-161-1/+1
|\ \ \ \ | |_|_|/ |/| | | Fix ban
| * | | Copy dict of context.current_state before changing it.Erik Johnston2015-03-161-1/+1
| | |/ | |/|
* | | Bugfix to sql_txn_timer increment - add only the per-TXN duration, not the ↵Paul "LeoNerd" Evans2015-03-121-7/+5
| | | | | | | | | | | | total time ever spent since boot
* | | Rename the timer metrics exported by synapse.storage to append _time, so the ↵Paul "LeoNerd" Evans2015-03-121-3/+3
| | | | | | | | | | | | meaning of ':total' is clearer
* | | Rename TimerMetric to DistributionMetric; as it could count more than just timePaul "LeoNerd" Evans2015-03-121-7/+7
| | |
* | | Pretend the 'getEvent' cache is just another cache in the set of all the ↵Paul "LeoNerd" Evans2015-03-121-6/+5
| | | | | | | | | | | | others for metric
* | | Use _ instead of . as a metric namespacing separator, for PrometheusPaul "LeoNerd" Evans2015-03-121-5/+13
| | |
* | | Rename Metrics' "keys" to "labels"Paul "LeoNerd" Evans2015-03-121-3/+3
| | |
* | | Add TimerMetrics to shadow the PerformanceCounters in synapse.storage; with ↵Paul "LeoNerd" Evans2015-03-121-3/+20
| | | | | | | | | | | | the view to eventually replacing them entirely
* | | Collect per-SQL-verb timer stats on query execution timePaul "LeoNerd" Evans2015-03-121-5/+11
| | |
* | | Delete a couple of TODO markers of monitoring stats now donePaul "LeoNerd" Evans2015-03-121-1/+0
| | |
* | | Rename CacheCounterMetric to just CacheMetric; add a CallbackMetric ↵Paul "LeoNerd" Evans2015-03-121-3/+3
| | | | | | | | | | | | component to give the size of the cache
* | | Sprinkle some CacheCounterMetrics around the synapse.storage layerPaul "LeoNerd" Evans2015-03-121-1/+15
| | |
* | | Appease pep8Paul "LeoNerd" Evans2015-03-111-2/+2
| | |
* | | Also give _execute() a descriptionPaul "LeoNerd" Evans2015-03-116-12/+10
| | |
* | | Add a description to storage layer's _execute_and_decode()Paul "LeoNerd" Evans2015-03-115-6/+9
| | |
* | | Add the master push rule for the break-my-push button. Allow server default ↵David Baker2015-03-101-22/+5
| | | | | | | | | | | | rules to be disabled by default.
* | | These aren't defined for redacted events so don't crashDavid Baker2015-03-101-2/+4
|/ /
* | Schema change as delta in v14David Baker2015-03-061-0/+0
| |
* | Merge branch 'develop' into pushrules2David Baker2015-03-0429-606/+325
|\| | | | | | | | | Conflicts: synapse/storage/schema/pusher.sql
| * Note that we don't specify execution orderErik Johnston2015-03-041-0/+4
| |
| * s/schema_deltas/applied_schema_deltas/Erik Johnston2015-03-042-9/+11
| |
| * 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-042-4/+5
| |
| * Change to use logger in db upgrade scriptErik Johnston2015-03-041-1/+4
| |
| * Use context manager with db conn to correctly commit and rollbackErik Johnston2015-03-041-11/+11
| |
| * Actually add full_schemas dirErik Johnston2015-03-0412-0/+645
| |
| * More docs. Rename 'schema/current' to 'schema/full_schemas'Erik Johnston2015-03-0413-652/+23
| |
| * Add some docs and remove unused variablesErik Johnston2015-03-041-8/+10
| |
| * SYN-67: Finish up implementing new database schema managementErik Johnston2015-03-0428-567/+161
| |
| * SYN-67: Begin changing the way we handle schema versioningErik Johnston2015-03-021-38/+106
| |
* | Merge branch 'develop' into pushrules2David Baker2015-03-046-33/+279
|\|
| * Add missing commaErik Johnston2015-03-021-1/+1
| |
| * We purposefully don't have a version 14 delta script.Erik Johnston2015-03-021-1/+1
| |
| * Merge pull request #93 from matrix-org/application-services-exclusiveKegsay2015-03-022-4/+14
| |\ | | | | | | Application services exclusive flag support
| | * Run deltas and bump user_version in upgrade scriptKegan Dougal2015-03-021-1/+1
| | |
| | * Convert expected format for AS regex to include exclusivity.Kegan Dougal2015-02-271-3/+13
| | | | | | | | | | | | | | | Previously you just specified the regex as a string, now it expects a JSON object with a 'regex' key and an 'exclusive' boolean, as per spec.
| * | Merge branch 'develop' of github.com:matrix-org/synapse into batched_get_pduErik Johnston2015-03-025-91/+279
| |\ \
| | * | PEP8Kegan Dougal2015-03-021-1/+1
| | | |
| | * | Wrap all of get_app_service_rooms in a txn.Kegan Dougal2015-03-026-88/+67
| | | |
| | * | JOIN state_events rather than parsing unrecognized_keys to pull out member ↵Kegan Dougal2015-03-022-11/+5
| | | | | | | | | | | | | | | | state_keys
| | * | Modify _simple_select_list to allow an empty WHERE clause. Use it for ↵Kegan Dougal2015-03-024-17/+21
| | | | | | | | | | | | | | | | get_all_rooms and get_all_users.
| | * | PR tweaks: set earlier on and use 'as json' for compatKegan Dougal2015-03-023-16/+12
| | | |
| | * | PEP8Kegan Dougal2015-02-271-1/+0
| | | |
| | * | Check for membership invite events correctly.Kegan Dougal2015-02-261-2/+21
| | | |
| | * | Finish impl to get new events for AS. ASes should now be able to poll /eventsKegan Dougal2015-02-261-7/+55
| | | |
| | * | Finish impl to extract all room IDs an AS may be interested in when polling ↵Kegan Dougal2015-02-262-6/+36
| | | | | | | | | | | | | | | | the event stream.
| | * | PEP8 and pyflakesKegan Dougal2015-02-252-6/+3
| | | |
| | * | Comment unused variables.Kegan Dougal2015-02-251-2/+2
| | | |
| | * | Fix alias query.Kegan Dougal2015-02-251-6/+5
| | | |
| | * | Add support for extracting matching room_ids and room_aliases for a given AS.Kegan Dougal2015-02-253-2/+82
| | | |
| | * | Add stub functions and work out execution flow to implement AS event stream ↵Kegan Dougal2015-02-252-0/+40
| | |/ | | | | | | | | | polling.
| * | Revert get_auth_chain changesErik Johnston2015-02-231-7/+5
| | |
| * | Initial stab at implementing a batched get_missing_pdus requestErik Johnston2015-02-191-5/+58
| | |
* | | Use if not results rather than len, as per feedback.David Baker2015-03-041-1/+1
| | |
* | | s/user_name/user/ as per mjark's commentDavid Baker2015-03-021-3/+3
| | |
* | | Blank linesDavid Baker2015-03-021-0/+1
| | |
* | | Add API for getting/setting enabled-ness of push rules.David Baker2015-02-261-0/+24
| | |
* | | whitespaceDavid Baker2015-02-261-1/+2
| | |
* | | Add enable/disable overlay for push rules (REST API not yet hooked up)David Baker2015-02-253-0/+39
| |/ |/|
* | Use OrderedDict for @cached backing store, so we can evict the oldest key ↵Paul "LeoNerd" Evans2015-02-231-7/+4
| | | | | | | | unbiased
* | Use cache.pop() instead of a separate membership test + del []Paul "LeoNerd" Evans2015-02-231-2/+1
| |
* | Fix code style warningMark Haines2015-02-231-1/+1
| |
* | Remove unused importMark Haines2015-02-231-2/+0
| |
* | Pull the _get_event_cache.setdefault() call out of the try block, as it ↵Paul "LeoNerd" Evans2015-02-231-1/+2
| | | | | | | | doesn't need to be there and is confusing
* | Use the @cached decorator to implement the destination_retry_timings cachePaul "LeoNerd" Evans2015-02-231-9/+5
| |
* | RoomMemberStore no longer needs a _user_rooms_cache memberPaul "LeoNerd" Evans2015-02-231-5/+0
| |
* | Allow @cached-wrapped functions to have a prefill method for setting entriesPaul "LeoNerd" Evans2015-02-231-8/+15
| |
* | Squash out the now-redundant ApplicationServicesCache object classPaul "LeoNerd" Evans2015-02-231-20/+8
| |
* | Remove a TODO notePaul "LeoNerd" Evans2015-02-191-1/+0
| |
* | Take named arguments to @cached() decorator, add a 'max_entries' limitPaul "LeoNerd" Evans2015-02-192-16/+25
| |
* | Move @cached decorator out into synapse.storage._base; add minimal docsPaul "LeoNerd" Evans2015-02-192-27/+36
| |
* | Pull out the 'get_rooms_for_user' cache logic into a reüsable @cached decoratorPaul "LeoNerd" Evans2015-02-191-24/+29
|/
* Use absolute path when loading delta sql filesErik Johnston2015-02-171-1/+2
|
* Bump schema versionErik Johnston2015-02-172-1/+1
|
* Merge branch 'consumeErrors' of github.com:matrix-org/synapse into developErik Johnston2015-02-171-1/+1
|\
| * Use consumeErrors=True on all DeferredLists.Erik Johnston2015-02-171-1/+1
| | | | | | | | | | | | This is so that the DeferredLists actually consume the error instead of propogating down the non-existent errback chain. This should reduce the number of unhandled errors we are seeing.
* | Merge branch 'hotfixes-0.7.0e' into developDavid Baker2015-02-131-6/+6
|\|
| * Update pushers by app id and pushkey, not user id and pushkeyDavid Baker2015-02-131-6/+6
| |
* | Merge pull request #50 from matrix-org/application-servicesMark Haines2015-02-134-0/+315
|\ \ | | | | | | Application Services
| * \ Merge branch 'develop' into application-servicesKegan Dougal2015-02-113-22/+75
| |\ \
| * | | PEP8-ifyKegan Dougal2015-02-111-3/+0
| | | |
| * | | Merge branch 'develop' into application-servicesKegan Dougal2015-02-112-3/+70
| |\ \ \
| * \ \ \ Merge branch 'develop' into application-servicesKegan Dougal2015-02-093-24/+36
| |\ \ \ \
| * | | | | Modify auth.get_user_by_req for authing appservices directly.Kegan Dougal2015-02-091-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add logic to map the appservice token to the autogenned appservice user ID. Add unit tests for all forms of get_user_by_req (user/appservice, valid/bad/missing tokens)
| * | | | | Register a user account for the AS when the AS registers. Add 'sender' ↵Kegan Dougal2015-02-093-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | column to AS table.
| * | | | | Add delta sql file.Kegan Dougal2015-02-051-0/+33
| | | | | |
| * | | | | Merge branch 'develop' into application-servicesKegan Dougal2015-02-051-2/+5
| |\ \ \ \ \
| * \ \ \ \ \ Merge branch 'develop' into application-servicesKegan Dougal2015-02-054-84/+145
| |\ \ \ \ \ \
| * | | | | | | Add hs_token column and generate a different token f.e application service.Kegan Dougal2015-02-052-5/+13
| | | | | | | |
| * | | | | | | Fix bug in store defer. Add more unit tests.Kegan Dougal2015-02-041-4/+14
| | | | | | | |
| * | | | | | | Add stub ApplicationServiceApi and glue it with the handler.Kegan Dougal2015-02-041-0/+1
| | | | | | | |
| * | | | | | | Add appservice package and move ApplicationService into it.Kegan Dougal2015-02-031-104/+1
| | | | | | | |
| * | | | | | | Implement restricted namespace checks. Begin fleshing out the main hook for ↵Kegan Dougal2015-02-031-5/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | notifying application services.
| * | | | | | | Add namespace constants. Add restrict_to option to limit namespace checks.Kegan Dougal2015-02-031-17/+24
| | | | | | | |
| * | | | | | | Everyone loves SQL typosKegan Dougal2015-02-031-1/+1
| | | | | | | |
| * | | | | | | Implement regex checks for app services.Kegan Dougal2015-02-031-27/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Expose handler.get_services_for_event which manages the checks for all services.
| * | | | | | | Add defers in the right places.Kegan Dougal2015-02-021-0/+2
| | | | | | | |
| * | | | | | | Implement txns for AS (un)registration.Kegan Dougal2015-02-022-22/+100
| | | | | | | |
| * | | | | | | Actually merge into develop.Kegan Dougal2015-02-021-8/+1
| | | | | | | |
| * | | | | | | Merge branch 'develop' into application-servicesKegan Dougal2015-02-0213-29/+867
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: synapse/handlers/__init__.py synapse/storage/__init__.py
| * | | | | | | | Add basic application_services SQL, and hook up parts of the appservice ↵Kegan Dougal2015-01-283-11/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | store to read from it.
| * | | | | | | | Remove unused importKegan Dougal2015-01-281-2/+0
| | | | | | | | |
| * | | | | | | | Log when ASes are registered/unregistered.Kegan Dougal2015-01-271-1/+3
| | | | | | | | |
| * | | | | | | | Use ApplicationService when registering.Kegan Dougal2015-01-271-10/+6
| | | | | | | | |
| * | | | | | | | Add stub methods, TODOs and docstrings for application services.Kegan Dougal2015-01-271-2/+50
| | | | | | | | |
| * | | | | | | | Add AS specific classes with docstrings.Kegan Dougal2015-01-271-1/+59
| | | | | | | | |
| * | | | | | | | Add appservice handler and store. Glue together rest > handler > store.Kegan Dougal2015-01-272-2/+48
| | | | | | | | |
* | | | | | | | | 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 'fix' of github.com:matrix-org/synapse into hotfixes-v0.7.0aErik Johnston2015-02-121-7/+6
|\ \ \ \ \ \ \ \
| * | | | | | | | Get an auth query one at a timeErik Johnston2015-02-121-7/+6
| | | | | | | | |
* | | | | | | | | Set database schema version in deltaErik Johnston2015-02-121-0/+2
|/ / / / / / / /
* | | | | | | | Convert get_rooms to use runInteraction so the transacion has a more helpful ↵Erik Johnston2015-02-111-30/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | description
* | | | | | | | Merge branch 'develop' of github.com:matrix-org/synapse into use-simplejsonErik Johnston2015-02-113-22/+75
|\ \ \ \ \ \ \ \ | | |_|_|_|_|_|/ | |/| | | | | |
| * | | | | | | Merge branch 'bugs/SYN-264' into developPaul "LeoNerd" Evans2015-02-111-18/+50
| |\ \ \ \ \ \ \
| | * | | | | | | Added another TODO notePaul "LeoNerd" Evans2015-02-111-0/+3
| | | | | | | | |
| | * | | | | | | Cache the result of a get_rooms_for_user query, to make ↵Paul "LeoNerd" Evans2015-02-111-7/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | user_rooms_intersect() much lighter in the read-common case
| | * | | | | | | First step of making user_rooms_intersect() faster - implement in ↵Paul "LeoNerd" Evans2015-02-111-18/+20
| | | |_|_|_|_|/ | | |/| | | | | | | | | | | | | | | | | | | | | intersection logic in Python code terms of a DB query that is cacheable per user
| * | | | | | | Invalidate the cache for an event if it is redactedMark Haines2015-02-111-0/+2
| | | | | | | |
| * | | | | | | Fix formattingMark Haines2015-02-111-2/+0
| | | | | | | |
| * | | | | | | Add a cache for get_eventMark Haines2015-02-112-3/+24
| |/ / / / / /
* | | | | | | 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-114-4/+4
|/ / / / / /
* | | | | | Code-style fixesMark Haines2015-02-102-4/+6
| | | | | |
* | | | | | Fix pyflakesMark Haines2015-02-101-3/+3
| | | | | |
* | | | | | Add performance counters for different stages of loading eventsMark Haines2015-02-101-24/+60
| | | | | |
* | | | | | Use the transaction 'desc' rather than 'name', increment the txn_ids inMark Haines2015-02-091-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | txn names
* | | | | | FormattingMark Haines2015-02-091-1/+0
| | | | | |
* | | | | | Performance counters for database transaction namesMark Haines2015-02-091-1/+31
| |_|_|_|/ |/| | | |
* | | | | Fix typoErik Johnston2015-02-091-1/+1
| | | | |
* | | | | Log database time every 10s and log as percentageErik Johnston2015-02-091-2/+2
| | | | |
* | | | | Time how long we're spending on the database threadErik Johnston2015-02-091-0/+25
| | | | |
* | | | | Move delta/v13.sql to delta/v12.sqlErik Johnston2015-02-062-24/+11
| |_|_|/ |/| | |
* | | | Give server default rules the 'default' attribute and fix various brokenness.David Baker2015-02-051-2/+5
| |_|/ |/| |
* | | Merge pull request #47 from matrix-org/signature_failuresErik Johnston2015-02-051-75/+136
|\ \ \ | | | | | | | | Federation fixes.
| * | | 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.