1
0

Commit Graph

  • 4edcbcee3b Merge branch 'develop' into application-services-txn-reliability Kegan Dougal 2015-03-26 10:07:59 +00:00
  • 953e40f9dc Implement the main getEvent cache using Cache() instead of a custom application of LruCache; also unify its two-level structure into just one Paul "LeoNerd" Evans 2015-03-25 19:12:16 +00:00
  • df4c12c762 pep8 blank lines David Baker 2015-03-25 19:08:17 +00:00
  • c1a256cc4c Allow multiple pushers for a single app ID & pushkey, honouring the 'append' flag in the API. David Baker 2015-03-25 19:06:22 +00:00
  • f173d40a32 Use FrozenEvent's reject_reason to decide whether to return it; don't include allow_rejected in the main getEvents cache key Paul "LeoNerd" Evans 2015-03-25 17:33:26 +00:00
  • 1b988b051b Store the rejected reason in (Frozen)Event structs Paul "LeoNerd" Evans 2015-03-25 17:26:32 +00:00
  • 033a517feb Indirect invalidations of _get_event_cache via a helper method to keep all uses of the cache lexically within one .py file Paul "LeoNerd" Evans 2015-03-25 16:59:27 +00:00
  • 9ba6487b3f Allow a choice of LRU behaviour for Cache() by using LruCache() or OrderedDict() Paul "LeoNerd" Evans 2015-03-25 19:05:34 +00:00
  • d6b3ea75d4 Implement the 'key in dict' test for LruCache() Paul "LeoNerd" Evans 2015-03-25 19:04:59 +00:00
  • 7ab9f91a60 Unit-test that Cache() key eviction is ordered Paul "LeoNerd" Evans 2015-03-25 18:50:43 +00:00
  • 0e8f5095c7 Fix unicode database support Erik Johnston 2015-03-25 17:15:20 +00:00
  • ce2766d19c Fix tests David Baker 2015-03-24 18:56:51 +00:00
  • 438a21c87b Don't test exact equality of the list: as long as it has the fields we expect, that's just fine. I added the user_id (as in database pkey) and it broke: no point testing what that comes out as: it's determined by the db. David Baker 2015-03-24 18:21:54 +00:00
  • 9aa0224cdf unused import David Baker 2015-03-24 17:25:59 +00:00
  • c7023f2155 1) Pushers are now associated with an access token 2) Change places where we mean unauthenticated to 401, not 403, in C/S v2: hack so it stays as 403 in v1 because web client relies on it. David Baker 2015-03-24 17:24:15 +00:00
  • 0ba393924a Escape non printing ascii character Erik Johnston 2015-03-24 16:31:52 +00:00
  • f488293d96 Don't reinsert into event_edges Erik Johnston 2015-03-24 16:20:26 +00:00
  • 1aa44939fc Fix bugs in transactions storage Erik Johnston 2015-03-24 16:20:05 +00:00
  • 5a447098dd Don't use room hosts table Erik Johnston 2015-03-24 16:19:24 +00:00
  • 9e98f1022a Don't order by rowid Erik Johnston 2015-03-24 16:19:01 +00:00
  • 9115421ace Use _simple_upsert Erik Johnston 2015-03-24 16:17:39 +00:00
  • d19e79ecc9 Make deleting other access tokens when you change your password actually work David Baker 2015-03-24 15:33:48 +00:00
  • ed008e85a8 Reduce activity timer granularity to avoid too many quick updates (SYN-247) Paul "LeoNerd" Evans 2015-03-23 17:25:44 +00:00
  • 6e7131f02f Remove uses of REPLACE and ON CONFLICT IGNORE to make the SQL more portable. Erik Johnston 2015-03-23 15:38:56 +00:00
  • 9a7f496298 Sanitize RoomMemberStore Erik Johnston 2015-03-23 15:29:04 +00:00
  • 78adccfaf4 pep8 / pyflakes David Baker 2015-03-23 14:23:51 +00:00
  • d98660a60d Implement password changing (finally) along with a start on making client/server auth more general. David Baker 2015-03-23 14:20:28 +00:00
  • d5272b1d2c Use 'update or insert' rather than on 'conflict replace' Erik Johnston 2015-03-23 14:02:34 +00:00
  • 278149f533 Sanitize TransactionStore Erik Johnston 2015-03-23 13:43:21 +00:00
  • 72d8406409 Put a cache on get_aliases_for_room Paul "LeoNerd" Evans 2015-03-20 19:21:13 +00:00
  • a63b4f7101 Remember the 'last seen' time for a given user/IP/device combination and only bother INSERTing another if it's stale Paul "LeoNerd" Evans 2015-03-20 17:08:15 +00:00
  • 0f86312c4c Pull out the cache logic from the @cached wrapper into its own class we can reuse Paul "LeoNerd" Evans 2015-03-20 18:13:49 +00:00
  • b1022ed8b5 func(*EXPR) is valid Python syntax, really... Paul "LeoNerd" Evans 2015-03-20 17:28:33 +00:00
  • f6583796fe Merge branch 'develop' of github.com:matrix-org/synapse into mysql Erik Johnston 2015-03-20 16:31:48 +00:00
  • 4848fdbf59 Merge pull request #113 from matrix-org/store_rearrangement Erik Johnston 2015-03-20 16:23:01 +00:00
  • 80cd08c190 PEP8 Erik Johnston 2015-03-20 16:03:25 +00:00
  • 9517f4da4d Merge branch 'develop' of github.com:matrix-org/synapse into store_rearrangement Erik Johnston 2015-03-20 16:02:47 +00:00
  • dc0c989ef4 Give sensible names for '_simple_...' transactions Erik Johnston 2015-03-20 15:59:18 +00:00
  • ceb61daa70 Add the tiniest of tiny one-element caches to get_room_events_max_id() as it's read every time someone hits eventstream Paul "LeoNerd" Evans 2015-03-20 15:44:06 +00:00
  • fce0114005 Start removing Tables Erik Johnston 2015-03-20 15:05:44 +00:00
  • 7e282a53a5 Tidy up _simple_... methods Erik Johnston 2015-03-20 14:59:48 +00:00
  • 91cb46191d Allow @cached-wrapped functions to have more or fewer than 1 argument; assert on the total count of them though Paul "LeoNerd" Evans 2015-03-17 18:38:55 +00:00
  • 87db64b839 Rearrange storage modules Erik Johnston 2015-03-20 13:52:56 +00:00
  • cb8162d3d1 Rearrange storage modules Erik Johnston 2015-03-20 13:52:56 +00:00
  • d288d273e1 Generate transaction id in code Erik Johnston 2015-03-20 10:57:44 +00:00
  • d4f50f3ae5 decode_result takes an iterable Erik Johnston 2015-03-20 10:57:08 +00:00
  • 455579ca90 Make database selection configurable Erik Johnston 2015-03-20 10:55:55 +00:00
  • 0d0610870d Fix up schemas some more Erik Johnston 2015-03-20 10:55:31 +00:00
  • 532ebc4a82 Merge pull request #112 from matrix-org/hotfixes-v0.8.1-r2 v0.8.1-r2 Erik Johnston 2015-03-19 17:51:37 +00:00
  • 56f2d31676 Bump version Erik Johnston 2015-03-19 17:48:33 +00:00
  • c178e4e6ca Add missing servlet to list Erik Johnston 2015-03-19 17:48:21 +00:00
  • d7a0496f3e Convert storage layer to be mysql compatible Erik Johnston 2015-03-19 15:59:48 +00:00
  • 58ed393235 Remove redundant key Erik Johnston 2015-03-19 15:12:05 +00:00
  • fae059cc18 Fix up schemas to work with mariadb Erik Johnston 2015-03-19 13:42:39 +00:00
  • b26d85c30f Merge branch 'hotfixes-0.8.1a' of github.com:matrix-org/synapse v0.8.1-r1 Erik Johnston 2015-03-19 11:26:29 +00:00
  • 0dcb145c7e Bump version Erik Johnston 2015-03-19 11:26:03 +00:00
  • 64cf1483e5 D'oh - setup.py used the dict directly: make it use the wrapper function. David Baker 2015-03-19 11:21:34 +00:00
  • d028207a6e Merge branch 'release-v0.8.1' of github.com:matrix-org/synapse v0.8.1 Erik Johnston 2015-03-19 10:43:31 +00:00
  • 0a55a2b692 Update CHANGES Erik Johnston 2015-03-18 11:48:47 +00:00
  • 6cc046302f Bump version Erik Johnston 2015-03-18 11:41:00 +00:00
  • ed4d44d833 Merge pull request #109 from matrix-org/default_registration Erik Johnston 2015-03-18 11:38:52 +00:00
  • f88db7ac0b Factor out user id validation checks Erik Johnston 2015-03-18 11:33:46 +00:00
  • 57976f646f Do more validation of incoming request Erik Johnston 2015-03-18 11:30:04 +00:00
  • bb24609158 Clean out event_forward_extremities table when the server rejoins the room Erik Johnston 2015-03-18 11:19:47 +00:00
  • 89036579ed Update schema to work with mariadb Erik Johnston 2015-03-18 11:18:49 +00:00
  • 93978c5e2b @cached() annotate get_user_by_token() - achieves a minor DB performance improvement Paul "LeoNerd" Evans 2015-03-17 17:24:51 +00:00
  • 1489521ee5 Be polite and ensure we use @functools.wraps() when creating a function decorator Paul "LeoNerd" Evans 2015-03-17 17:19:22 +00:00
  • 6d33f97703 pep8 David Baker 2015-03-17 11:53:55 +00:00
  • 7564dac8cb Wire up the webclient option David Baker 2015-03-17 12:45:37 +01:00
  • 3f7a31d366 Add a DistributionMetric to HTTP request/response processing time in the server Paul "LeoNerd" Evans 2015-03-16 18:31:29 +00:00
  • be170b1426 Add a metric for the scheduling latency of SQL queries Paul "LeoNerd" Evans 2015-03-16 17:21:59 +00:00
  • cd2539ab2a Merge pull request #110 from matrix-org/fix_ban Erik Johnston 2015-03-16 15:36:52 +00:00
  • f0d6f724a2 Set the service ID as soon as it is known. Kegan Dougal 2015-03-16 15:24:32 +00:00
  • 6df319b6f0 Fix tests Erik Johnston 2015-03-16 15:15:14 +00:00
  • f1d2b94e0b Copy dict of context.current_state before changing it. Erik Johnston 2015-03-16 15:13:05 +00:00
  • 857810d2dd Revert incorrect changes to where we send events Erik Johnston 2015-03-16 15:12:47 +00:00
  • ac8eb0f319 Merge pull request #111 from matrix-org/send_event_dont_wait_on_notifier Erik Johnston 2015-03-16 14:13:34 +00:00
  • d04fa1f712 Implement ServiceQueuer with tests. Kegan Dougal 2015-03-16 14:03:16 +00:00
  • c2c9471cba Don't block waiting on waking up all the listeners when sending an event. Erik Johnston 2015-03-16 13:16:37 +00:00
  • 6279285b2a Replace EventGrouper for ServiceQueuer to move to push-based txns. Fix tests and add stub tests for ServiceQueuer. Kegan Dougal 2015-03-16 13:15:40 +00:00
  • 8bad40701b Comment. Erik Johnston 2015-03-16 13:13:07 +00:00
  • 250e143084 Use 403 instead of 400 Erik Johnston 2015-03-16 13:11:42 +00:00
  • b2e6ee5b43 Remove concept of context.auth_events, instead use context.current_state Erik Johnston 2015-03-16 13:06:23 +00:00
  • c9c444f562 Wrap polling/retry blocks in try/excepts to avoid sending to other ASes breaking permanently should an error occur. Kegan Dougal 2015-03-16 10:38:02 +00:00
  • 835e01fc70 Minor PR comment tweaks. Kegan Dougal 2015-03-16 10:16:59 +00:00
  • f9232c7917 Merge branch 'develop' into application-services-txn-reliability Kegan Dougal 2015-03-16 10:09:15 +00:00
  • e7ce5d8b06 Fix test Erik Johnston 2015-03-16 00:30:59 +00:00
  • 758d114cbc Send all membership events to the remote homeserver Erik Johnston 2015-03-16 00:27:59 +00:00
  • ea8590cf66 Make context.auth_events grap auth events from current state. Otherwise auth is wrong. Erik Johnston 2015-03-16 00:18:08 +00:00
  • ab8229479b Respect ban membership Erik Johnston 2015-03-16 00:17:25 +00:00
  • b677ff6692 add ToC and fix typoe Matthew Hodgson 2015-03-14 00:22:41 +00:00
  • c8032aec17 actually uphold the bind_host parameter. in theory should make ipv6 binds work like bind_host: 'fe80::1%lo0' Matthew Hodgson 2015-03-14 00:12:20 +00:00
  • 256fe08963 uncommited WIP from MWC Matthew Hodgson 2015-03-14 00:09:21 +00:00
  • e731d30d90 Merge pull request #108 from matrix-org/metrics Paul Evans 2015-03-13 17:31:10 +00:00
  • a1abee013c Add note about disabling registration by default Erik Johnston 2015-03-13 17:06:21 +00:00
  • 98a3825614 Allow enabling of registration with --disable-registration false Erik Johnston 2015-03-13 16:49:18 +00:00
  • 7393c5ce4c Rename register script to 'register_new_matrix_user' Erik Johnston 2015-03-13 15:33:21 +00:00
  • 598c47a108 Change default server url to match default ports Erik Johnston 2015-03-13 15:29:38 +00:00
  • 9266cb0a22 PEP8 Erik Johnston 2015-03-13 15:26:00 +00:00
  • bcfce93ccd Add 'register_new_user' script Erik Johnston 2015-03-13 15:25:30 +00:00