Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Simplify query and handle finishing correctly | Erik Johnston | 2016-04-22 | 2 | -17/+16 |
| | |||||
* | Order NULLs first | Erik Johnston | 2016-04-21 | 2 | -5/+16 |
| | |||||
* | Fix query | Erik Johnston | 2016-04-21 | 1 | -2/+2 |
| | |||||
* | Use special UPDATE syntax | Erik Johnston | 2016-04-21 | 2 | -22/+14 |
| | |||||
* | Typo | Erik Johnston | 2016-04-21 | 1 | -1/+1 |
| | |||||
* | Need to do _background_update_progress_txn in actual transaction | Erik Johnston | 2016-04-21 | 1 | -6/+8 |
| | |||||
* | Update progress when creating index | Erik Johnston | 2016-04-21 | 1 | -0/+7 |
| | |||||
* | Fix SQL statement | Erik Johnston | 2016-04-21 | 1 | -3/+3 |
| | |||||
* | Create index must be on a conn | Erik Johnston | 2016-04-21 | 1 | -6/+13 |
| | |||||
* | Create index concurrently | Erik Johnston | 2016-04-21 | 2 | -6/+14 |
| | |||||
* | Add missing run_upgrade | Erik Johnston | 2016-04-21 | 1 | -0/+4 |
| | |||||
* | Optimise event_search in postgres | Erik Johnston | 2016-04-21 | 3 | -5/+137 |
| | |||||
* | Add cache to _get_state_groups_from_groups | Erik Johnston | 2016-04-19 | 1 | -3/+16 |
| | |||||
* | Add desc arg | Erik Johnston | 2016-04-14 | 1 | -1/+5 |
| | |||||
* | Add index | Erik Johnston | 2016-04-14 | 1 | -0/+18 |
| | |||||
* | Fix query for get_unread_push_actions_for_user_in_range | Erik Johnston | 2016-04-14 | 1 | -1/+2 |
| | |||||
* | pep8 | David Baker | 2016-04-13 | 1 | -1/+1 |
| | |||||
* | Only return unread notifications | David Baker | 2016-04-13 | 1 | -9/+50 |
| | | | | Make get_unread_push_actions_for_user_in_range only return unread event actions, being more true to its name. Done in two separate sql queries to get actions after a read receipt and those in a room wiht no receipt at all. SQL queries by Erik. | ||||
* | Merge pull request #716 from matrix-org/dbkr/get_pushers | David Baker | 2016-04-12 | 1 | -14/+30 |
|\ | | | | | Add get endpoint for pushers | ||||
| * | Unneccessarywhitespaceisunnecessary | David Baker | 2016-04-12 | 1 | -1/+0 |
| | | |||||
| * | Oops, forgot the desc. | David Baker | 2016-04-12 | 1 | -1/+1 |
| | | |||||
| * | Tidy up get_pusher functions | David Baker | 2016-04-12 | 1 | -32/+30 |
| | | | | | | | | Decodes pushers rows on the main thread rather than the db thread and uses _simple_select_list. Also do the same to the function I copied and factor out the duplication into a helper function. | ||||
| * | Mis-named function | David Baker | 2016-04-12 | 1 | -1/+1 |
| | | |||||
| * | Add get endpoint for pushers | David Baker | 2016-04-11 | 1 | -0/+19 |
| | | | | | | | | As per https://github.com/matrix-org/matrix-doc/pull/308 | ||||
* | | Add back backfilled parameter that was removed | Erik Johnston | 2016-04-12 | 1 | -3/+4 |
| | | |||||
* | | Check if we've already backfilled events | Erik Johnston | 2016-04-12 | 1 | -0/+16 |
|/ | |||||
* | Merge pull request #705 from matrix-org/dbkr/pushers_use_event_actions | David Baker | 2016-04-11 | 7 | -52/+209 |
|\ | | | | | Change pushers to use the event_actions table | ||||
| * | Fix invite pushes | David Baker | 2016-04-08 | 1 | -0/+7 |
| | | | | | | | | | | | | * If the event is an invite event, add the invitee to list of user we run push rules for (if they have a pusher etc) * Move invite_for_me to be higher prio than member events otherwise member events matches them * Spell override right | ||||
| * | Literally a dictionary | David Baker | 2016-04-07 | 1 | -17/+17 |
| | | |||||
| * | generate id in the main thread | David Baker | 2016-04-07 | 1 | -3/+3 |
| | | |||||
| * | Oops, inequality fail | David Baker | 2016-04-07 | 1 | -1/+1 |
| | | |||||
| * | pep8 | David Baker | 2016-04-07 | 1 | -0/+1 |
| | | |||||
| * | Fix port script for changes merged from develop | David Baker | 2016-04-07 | 1 | -1/+4 |
| | | |||||
| * | Merge remote-tracking branch 'origin/develop' into ↵ | David Baker | 2016-04-07 | 14 | -107/+91 |
| |\ | | | | | | | | | | dbkr/pushers_use_event_actions | ||||
| * | | Send badge count pushes. | David Baker | 2016-04-07 | 1 | -3/+6 |
| | | | | | | | | | | | | Also fix bugs with retrying. | ||||
| * | | pep8 | David Baker | 2016-04-06 | 4 | -4/+8 |
| | | | |||||
| * | | Make pushers use the event_push_actions table instead of listening on an ↵ | David Baker | 2016-04-06 | 6 | -49/+188 |
| | | | | | | | | | | | | | | | | | | | | | event stream & running the rules again. Sytest passes, but remaining to do: * Make badges work again * Remove old, unused code | ||||
* | | | Merge pull request #688 from matrix-org/matthew/preview_urls | Matthew Hodgson | 2016-04-11 | 2 | -1/+83 |
|\ \ \ | | | | | | | | | URL previewing support | ||||
| * | | | move local_media_repository_url_cache.sql to schema v31 | Matthew Hodgson | 2016-04-08 | 1 | -0/+0 |
| | | | | |||||
| * | | | fix error checking for new SQL | Matthew Hodgson | 2016-04-08 | 1 | -2/+2 |
| | | | | |||||
| * | | | fix SQL based on PR feedback | Matthew Hodgson | 2016-04-08 | 1 | -2/+4 |
| | | | | |||||
| * | | | Merge branch 'develop' into matthew/preview_urls | Matthew Hodgson | 2016-04-07 | 18 | -140/+280 |
| |\ \ \ | | | |/ | | |/| | |||||
| * | | | Merge branch 'develop' into matthew/preview_urls | Matthew Hodgson | 2016-04-04 | 14 | -162/+346 |
| |\ \ \ | |||||
| * | | | | pep8 | Matthew Hodgson | 2016-04-03 | 1 | -1/+2 |
| | | | | | |||||
| * | | | | add a persistent cache of URL lookups, and fix up the in-memory one to work | Matthew Hodgson | 2016-04-03 | 2 | -1/+80 |
| | | | | | |||||
* | | | | | Remove some unused functions (#711) | Mark Haines | 2016-04-08 | 5 | -151/+0 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove some unused functions * get_room_events_stream is only used in tests * is_exclusive_room might actually be something we want | ||||
* | | | | | Add tests for redactions | Mark Haines | 2016-04-07 | 1 | -1/+1 |
| |_|/ / |/| | | | |||||
* | | | | Merge pull request #697 from matrix-org/markjh/slaveI | Mark Haines | 2016-04-06 | 1 | -2/+2 |
|\ \ \ \ | | | | | | | | | | | Add a slaved events store class | ||||
| * | | | | Add a slaved events store class | Mark Haines | 2016-04-06 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | Add a test to check that get_room_names_and_aliases does the same thing on both the master and on the slave data store. | ||||
* | | | | | Merge pull request #698 from matrix-org/erikj/port_script_fix | Erik Johnston | 2016-04-06 | 9 | -68/+51 |
|\ \ \ \ \ | |/ / / / |/| | | | | Don't require config to create database | ||||
| * | | | | Don't require config to create database | Erik Johnston | 2016-04-06 | 9 | -68/+51 |
| | |_|/ | |/| | | |||||
* | | | | Merge pull request #694 from matrix-org/markjh/caches | Mark Haines | 2016-04-06 | 2 | -33/+34 |
|\ \ \ \ | | | | | | | | | | | Move _get_cache_dict into the SQLBaseStore | ||||
| * | | | | Move _get_cache_dict into the SQLBaseStore | Mark Haines | 2016-04-06 | 2 | -33/+34 |
| |/ / / | |||||
* / / / | Make the cache objects be per instance rather than being global | Mark Haines | 2016-04-06 | 3 | -5/+5 |
|/ / / | |||||
* | | | Merge pull request #691 from matrix-org/erikj/member | Erik Johnston | 2016-04-05 | 2 | -1/+21 |
|\ \ \ | | | | | | | | | Fix stuck invites | ||||
| * | | | Fix stuck invites | Erik Johnston | 2016-04-05 | 2 | -1/+21 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | | | | Merge pull request #690 from matrix-org/erikj/member | Erik Johnston | 2016-04-05 | 4 | -31/+151 |
|\| | | | | | | | | | | | Store invites in a separate table. | ||||
| * | | | Docs and indents | Erik Johnston | 2016-04-04 | 2 | -13/+27 |
| | | | | |||||
| * | | | Add upgrade path, rename table | Erik Johnston | 2016-04-04 | 2 | -6/+20 |
| | | | | |||||
| * | | | Store invites in a separate table. | Erik Johnston | 2016-04-04 | 4 | -31/+123 |
| | | | | |||||
* | | | | Merge pull request #689 from matrix-org/erikj/member | Erik Johnston | 2016-04-04 | 1 | -0/+16 |
|\| | | | |_|/ |/| | | Do checks for memberships before creating events | ||||
| * | | Use computed prev event ids | Erik Johnston | 2016-04-01 | 1 | -0/+16 |
| | | | |||||
* | | | Merge pull request #686 from matrix-org/markjh/doc_strings | Mark Haines | 2016-04-01 | 3 | -13/+20 |
|\ \ \ | |/ / |/| | | Use google style doc strings. | ||||
| * | | Use google style doc strings. | Mark Haines | 2016-04-01 | 3 | -13/+20 |
| | | | | | | | | | | | | | | | | | | | | | pycharm supports them so there is no need to use the other format. Might as well convert the existing strings to reduce the risk of people accidentally cargo culting the wrong doc string format. | ||||
* | | | Merge pull request #684 from matrix-org/markjh/backfill_id_gen | Mark Haines | 2016-04-01 | 11 | -61/+71 |
|\ \ \ | | | | | | | | | Use a stream id generator for backfilled ids | ||||
| * | | | Assert that the step != 0 | Mark Haines | 2016-04-01 | 1 | -0/+1 |
| | | | | |||||
| * | | | use google style doc strings | Mark Haines | 2016-04-01 | 1 | -11/+12 |
| | | | | |||||
| * | | | Rename direction to step, apply checks consistently | Mark Haines | 2016-04-01 | 2 | -16/+16 |
| | | | | |||||
| * | | | Use a stream id generator for backfilled ids | Mark Haines | 2016-04-01 | 11 | -61/+69 |
| |/ / | |||||
* / / | Fix the invalidation of the names and aliases cache | Mark Haines | 2016-04-01 | 1 | -1/+1 |
|/ / | |||||
* | | Move the check for backfilled outside the for loop | Mark Haines | 2016-03-31 | 1 | -5/+5 |
| | | |||||
* | | Remove the is_new_state argument to persist event. | Mark Haines | 2016-03-31 | 1 | -40/+50 |
| | | | | | | | | | | | | | | | | | | Move the checks for whether an event is new state inside persist event itself. This was harder than expected because there wasn't enough information passed to persist event to correctly handle invites from remote servers for new rooms. | ||||
* | | Merge pull request #676 from matrix-org/markjh/replicate_stateIII | Mark Haines | 2016-03-31 | 2 | -2/+114 |
|\ \ | | | | | | | Add replication streams for ex outliers and current state resets | ||||
| * | | Use a namedtuple rather than tuple unpacking | Mark Haines | 2016-03-31 | 1 | -2/+9 |
| | | | |||||
| * | | Add replication streams for ex outliers and current state resets | Mark Haines | 2016-03-30 | 2 | -1/+97 |
| | | | |||||
| * | | Add a entry to current_state_resets table when the current state is reset | Mark Haines | 2016-03-30 | 1 | -0/+9 |
| | | | |||||
* | | | return the state_group for backfill | Mark Haines | 2016-03-30 | 1 | -1/+2 |
|/ / | |||||
* | | Add a replication stream for state groups | Mark Haines | 2016-03-30 | 2 | -1/+35 |
| | | |||||
* | | Use a stream id generator to assign state group ids | Mark Haines | 2016-03-30 | 3 | -49/+59 |
|/ | |||||
* | Don't bother interning keys that are already interned | Erik Johnston | 2016-03-23 | 1 | -3/+1 |
| | |||||
* | Intern all the things | Erik Johnston | 2016-03-23 | 3 | -17/+17 |
| | |||||
* | String intern | Erik Johnston | 2016-03-23 | 1 | -3/+9 |
| | |||||
* | Merge pull request #664 from matrix-org/erikj/public_room_list | Erik Johnston | 2016-03-23 | 1 | -0/+23 |
|\ | | | | | Don't require alias in public room list. | ||||
| * | Comment about weird SQL | Erik Johnston | 2016-03-23 | 1 | -1/+3 |
| | | |||||
| * | SQLite and postgres doesn't share a true literal | Erik Johnston | 2016-03-23 | 1 | -1/+1 |
| | | |||||
| * | Ensure all old public rooms have aliases | Erik Johnston | 2016-03-23 | 1 | -0/+21 |
| | | |||||
* | | Merge pull request #663 from matrix-org/erikj/invite_for_user | Erik Johnston | 2016-03-23 | 1 | -6/+4 |
|\ \ | | | | | | | Make get_invites return RoomsForUser | ||||
| * | | Make get_invites return RoomsForUser | Erik Johnston | 2016-03-23 | 1 | -6/+4 |
| |/ | |||||
* | | Merge pull request #665 from matrix-org/erikj/dont_cache_events | Erik Johnston | 2016-03-23 | 3 | -23/+30 |
|\ \ | | | | | | | Only cache events in the event cache | ||||
| * | | Don't cache events in get_recent_events_for_room | Erik Johnston | 2016-03-23 | 1 | -14/+19 |
| | | | |||||
| * | | Don't cache events in get_current_state_for_key | Erik Johnston | 2016-03-23 | 2 | -9/+11 |
| |/ | |||||
* / | Make StateHandler._state_cache only store event_ids. | Erik Johnston | 2016-03-22 | 1 | -0/+25 |
|/ | |||||
* | Bump get_unread_event_push_actions_by_room_for_user cache | Erik Johnston | 2016-03-22 | 1 | -1/+1 |
| | |||||
* | Bump get_aliases_for_room cache | Erik Johnston | 2016-03-22 | 1 | -1/+1 |
| | |||||
* | Merge pull request #660 from matrix-org/erikj/state_cache | Erik Johnston | 2016-03-22 | 1 | -60/+48 |
|\ | | | | | Don't cache events in _state_group_cache | ||||
| * | Don't cache events in _state_group_cache | Erik Johnston | 2016-03-22 | 1 | -60/+48 |
| | | | | | | | | | | | | | | | | | | Instead, simply cache the event ids, relying on the event cache to cache the actual events. The problem was that while the state groups cache was limited in the number of groups it could hold, each individual group could consist of thousands of events. | ||||
* | | Merge pull request #659 from matrix-org/erikj/state_cache_factor | Erik Johnston | 2016-03-22 | 1 | -1/+7 |
|\ \ | | | | | | | Make stateGroupCache honour CACHE_SIZE_FACTOR | ||||
| * | | Make stateGroupCache honour CACHE_SIZE_FACTOR | Erik Johnston | 2016-03-22 | 1 | -1/+7 |
| |/ | |||||
* | | Merge pull request #657 from matrix-org/erikj/roomlist | Erik Johnston | 2016-03-22 | 1 | -0/+8 |
|\ \ | |/ |/| | Add published room list edit API | ||||
| * | Add published room list edit API | Erik Johnston | 2016-03-21 | 1 | -0/+8 |
| | | |||||
* | | Remove unused backfilled parameter from persist_event | Mark Haines | 2016-03-21 | 1 | -18/+4 |
|/ | |||||
* | Dedupe requested event list in _get_events | Erik Johnston | 2016-03-18 | 1 | -14/+12 |
| | |||||
* | Remove dead code left over from presence changes | Mark Haines | 2016-03-17 | 1 | -24/+0 |
| | |||||
* | Add a comment to offer a hint to an explanation for why we have a unique ↵ | Mark Haines | 2016-03-16 | 1 | -0/+1 |
| | | | | constraint on (app_id, pushkey, user_id) | ||||
* | Fix a couple of errors when deleting pushers | Mark Haines | 2016-03-15 | 1 | -2/+2 |
| | |||||
* | Add replication stream for pushers | Mark Haines | 2016-03-15 | 4 | -17/+82 |
| | |||||
* | Thats not how transactions work. | Erik Johnston | 2016-03-11 | 1 | -13/+16 |
| | |||||
* | Implement logout | Erik Johnston | 2016-03-11 | 1 | -14/+35 |
| | |||||
* | Fix SQL statement | Erik Johnston | 2016-03-11 | 1 | -1/+1 |
| | |||||
* | Merge pull request #641 from matrix-org/dbkr/fix_change_password | Erik Johnston | 2016-03-11 | 1 | -21/+18 |
|\ | | | | | Fix logout on password change | ||||
| * | more pep8 | David Baker | 2016-03-11 | 1 | -1/+1 |
| | | |||||
| * | Make select more sensible when dseleting access tokens, rename pusher ↵ | David Baker | 2016-03-11 | 1 | -5/+3 |
| | | | | | | | | deletion to match access token deletion and make exception arg optional. | ||||
| * | Delete old, unused methods and rename new one to just be ↵ | David Baker | 2016-03-11 | 1 | -15/+2 |
| | | | | | | | | `user_delete_access_tokens` with an `except_token_ids` argument doing what it says on the tin. | ||||
| * | Dear PyCharm, please indent sensibly for me. Thx. | David Baker | 2016-03-11 | 1 | -1/+1 |
| | | |||||
| * | Fix cache invalidation so deleting access tokens (which we did when changing ↵ | David Baker | 2016-03-11 | 1 | -8/+20 |
| | | | | | | | | password) actually takes effect without HS restart. Reinstate the code to avoid logging out the session that changed the password, removed in 415c2f05491ce65a4fc34326519754cd1edd9c54 | ||||
* | | Merge pull request #635 from matrix-org/erikj/sync_order | Erik Johnston | 2016-03-11 | 1 | -3/+6 |
|\ \ | |/ |/| | Use topological orders for initial sync timeline | ||||
| * | Add comment | Erik Johnston | 2016-03-09 | 1 | -0/+3 |
| | | |||||
| * | Return the correct token form | Erik Johnston | 2016-03-09 | 1 | -1/+1 |
| | | |||||
| * | Use topological orders for initial sync timeline | Erik Johnston | 2016-03-09 | 1 | -2/+2 |
| | | |||||
* | | Store appservice ID on register | Daniel Wagner-Hall | 2016-03-10 | 1 | -6/+34 |
| | | |||||
* | | Update users table in a batched manner | Erik Johnston | 2016-03-10 | 1 | -9/+14 |
|/ | |||||
* | Ensure integer is an integer | Erik Johnston | 2016-03-09 | 1 | -1/+1 |
| | |||||
* | Merge pull request #632 from matrix-org/markjh/py3v2 | Mark Haines | 2016-03-08 | 6 | -6/+6 |
|\ | | | | | Fix relative imports so they work in both py3 and py27 | ||||
| * | Fix relative imports so they work in both py3 and py27 | Mark Haines | 2016-03-08 | 6 | -6/+6 |
| | | |||||
* | | Merge branch 'develop' into daniel/ick | Daniel Wagner-Hall | 2016-03-08 | 7 | -86/+302 |
|\| | |||||
| * | Prefill from the correct stream | Mark Haines | 2016-03-04 | 1 | -1/+1 |
| | | |||||
| * | prefill the push rules stream change cache | Mark Haines | 2016-03-04 | 1 | -2/+9 |
| | | |||||
| * | s/stream_ordering/event_stream_ordering/ in push | Mark Haines | 2016-03-04 | 2 | -26/+30 |
| | | |||||
| * | /FNARG/d | Mark Haines | 2016-03-04 | 1 | -1/+0 |
| | | |||||
| * | Merge branch 'develop' into markjh/pushrule_stream | Mark Haines | 2016-03-04 | 8 | -26/+126 |
| |\ | |||||
| | * | Merge pull request #614 from matrix-org/erikj/alias_delete | Erik Johnston | 2016-03-04 | 2 | -1/+30 |
| | |\ | | | | | | | | | Allow alias creators to delete aliases | ||||
| | | * | Allow alias creators to delete aliases | Erik Johnston | 2016-03-01 | 2 | -1/+30 |
| | | | | |||||
| * | | | Hook up the push rules stream to account_data in /sync | Mark Haines | 2016-03-04 | 2 | -68/+62 |
| | | | | |||||
| * | | | Hook push rules up to the replication API | Mark Haines | 2016-03-02 | 1 | -0/+6 |
| | | | | |||||
| * | | | Add a stream for push rule updates | Mark Haines | 2016-03-01 | 5 | -74/+251 |
| | | | | |||||
* | | | | Idempotent-ise schema update script | Daniel Wagner-Hall | 2016-03-08 | 1 | -1/+5 |
| |/ / |/| | | | | | | | | | | | If any ASes don't have an ID, the schema will fail, and then it will error when trying to add the column again. | ||||
* | | | Merge pull request #571 from matrix-org/daniel/asids | Daniel Wagner-Hall | 2016-03-03 | 6 | -25/+96 |
|\ \ \ | |/ / |/| | | Mark AS users with their AS's ID | ||||
| * | | Mark AS users with their AS's ID | Daniel Wagner-Hall | 2016-02-11 | 6 | -26/+97 |
| | | | |||||
* | | | Merge pull request #489 from matrix-org/markjh/replication | Mark Haines | 2016-03-01 | 5 | -2/+164 |
|\ \ \ | | | | | | | | | Add a /replication API for extracting the updates that happened on synapse. | ||||
| * | | | Add a /replication API for extracting the updates that happened on | Mark Haines | 2016-03-01 | 5 | -2/+164 |
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | synapse This is necessary for replicating the data in synapse to be visible to a separate service because presence and typing notifications aren't stored in a database so won't be visible to another process. This API can be used to either get the raw data by requesting the tables themselves or to just receive notifications for updates by following the streams meta-stream. Returns updates for each table requested a JSON array of arrays with a row for each row in the table. Each table is prefixed by a header row with the: name of the table, current stream_id position for the table, number of rows, number of columns and the names of the columns. This is followed by the rows that have been added to the server since the requester last asked. The API has a timeout and is hooked up to the notifier so that a slave can long poll for updates. | ||||
* / | | Load the current id in the IdGenerator constructor | Mark Haines | 2016-03-01 | 12 | -77/+52 |
|/ / | | | | | | | | | | | | | | | | | 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. | ||||
* | | Add support for changing the actions for default rules | Mark Haines | 2016-02-26 | 1 | -0/+25 |
| | | | | | | | | | | | | See matrix-org/matrix-doc#283 Works by adding dummy rules to the push rules table with a negative priority class and then using those rules to clobber the default rule actions when adding the default rules in ``list_with_base_rules`` | ||||
* | | Generate guest access token on 3pid invites | Daniel Wagner-Hall | 2016-02-24 | 2 | -0/+68 |
| | | | | | | | | | | | | | | | | | | This means that following the same link across multiple sessions or devices can re-use the same guest account. Note that this is somewhat of an abuse vector; we can't throw up captchas on this flow, so this is a way of registering ephemeral accounts for spam, whose sign-up we don't rate limit. | ||||
* | | Create a new stream_id per presence update | Erik Johnston | 2016-02-23 | 1 | -6/+9 |
| | | |||||
* | | Merge pull request #582 from matrix-org/erikj/presence | Erik Johnston | 2016-02-19 | 10 | -65/+211 |
|\ \ | | | | | | | Rewrite presence for performance. | ||||
| * | | Close cursor | Erik Johnston | 2016-02-18 | 1 | -0/+1 |
| | | | |||||
| * | | Remove unused param from get_max_token | Erik Johnston | 2016-02-18 | 6 | -13/+11 |
| | | | |||||
| * | | Prefix TS fields with _ts | Erik Johnston | 2016-02-18 | 3 | -16/+17 |
| | | | |||||
| * | | Initial cut | Erik Johnston | 2016-02-17 | 5 | -55/+201 |
| | | | |||||
* | | | Remove dead code for setting device specific rules. | Mark Haines | 2016-02-18 | 2 | -7/+6 |
| | | | | | | | | | | | | | | | | | | It wasn't possible to hit the code from the API because of a typo in parsing the request path. Since no-one was using the feature we might as well remove the dead code. | ||||
* | | | Merge branch 'develop' into daniel/roomcleanupincremental | Daniel Wagner-Hall | 2016-02-17 | 1 | -82/+86 |
|\| | | | | | | | | | | | | | | Conflicts: synapse/rest/client/v1/room.py | ||||
| * | | Make adding push rules idempotent | Mark Haines | 2016-02-16 | 1 | -82/+86 |
| | | | | | | | | | | | | | | | | | | Also remove the **kwargs from the add_push_rule method. Fixes https://matrix.org/jira/browse/SYN-391 | ||||
* | | | Respond to federated invite with non-empty context | Daniel Wagner-Hall | 2016-02-17 | 1 | -4/+4 |
|/ / | | | | | | | | | | | | | Currently, we magically perform an extra database hit to find the inviter, and use this to guess where we should send the event. Instead, fill in a valid context, so that other callers relying on the context actually have one. | ||||
* | | Fix SYN-627, events are in incorrect room in /sync | Erik Johnston | 2016-02-11 | 1 | -1/+1 |
| | | |||||
* | | Return events in correct order for /events | Erik Johnston | 2016-02-11 | 1 | -8/+11 |
|/ | |||||
* | Batch fetch _get_state_groups_from_groups | Erik Johnston | 2016-02-10 | 1 | -32/+34 |
| | |||||
* | Use _simple_select_many for _get_state_group_for_events | Erik Johnston | 2016-02-10 | 1 | -16/+10 |
| | |||||
* | Merge pull request #568 from matrix-org/erikj/unread_notif | Erik Johnston | 2016-02-10 | 2 | -39/+32 |
|\ | | | | | Atomically persit push actions when we persist the event | ||||
| * | Rename functions | Erik Johnston | 2016-02-10 | 2 | -4/+4 |
| | | |||||
| * | Atomically persit push actions when we persist the event | Erik Johnston | 2016-02-09 | 2 | -39/+32 |
| | | |||||
* | | Change a log from debug to info | Erik Johnston | 2016-02-09 | 1 | -1/+1 |
|/ | |||||
* | Invalidate get_last_receipt_event_id_for_user cache | Erik Johnston | 2016-02-09 | 1 | -0/+5 |
| | |||||
* | Don't load all ephemeral state for a room on every sync | Erik Johnston | 2016-02-09 | 1 | -0/+14 |
| | |||||
* | Fix up logcontexts | Erik Johnston | 2016-02-08 | 4 | -29/+37 |
| | |||||
* | Allocate guest user IDs numericcally | Daniel Wagner-Hall | 2016-02-05 | 1 | -0/+36 |
| | | | | | | | | | The current random IDs are ugly and confusing when presented in UIs. This makes them prettier and easier to read. Also, disable non-automated registration of numeric IDs so that we don't need to worry so much about people carving out our automated address space and us needing to keep retrying ID registration. | ||||
* | Actually return something sensible | Erik Johnston | 2016-02-03 | 1 | -1/+1 |
| | |||||
* | We return dicts now. | Erik Johnston | 2016-02-03 | 1 | -1/+1 |
| | |||||
* | Add descriptions | Erik Johnston | 2016-02-03 | 4 | -1/+5 |
| | |||||
* | Merge pull request #554 from matrix-org/erikj/event_push | Erik Johnston | 2016-02-03 | 3 | -16/+64 |
|\ | | | | | Change event_push_actions_rm_tokens schema | ||||
| * | Change event_push_actions_rm_tokens schema | Erik Johnston | 2016-02-03 | 3 | -16/+64 |
| | | |||||
* | | Simplify get_rooms | Erik Johnston | 2016-02-03 | 1 | -77/+7 |
| | | |||||
* | | Merge branch 'develop' of github.com:matrix-org/synapse into ↵ | Erik Johnston | 2016-02-03 | 6 | -36/+42 |
|\| | | | | | | | erikj/public_room_fix | ||||
| * | Fix flake8 warnings for new flake8 | Daniel Wagner-Hall | 2016-02-02 | 6 | -9/+12 |
| | | |||||
| * | s/get_room_changes_for_user/get_membership_changes_for_user/ | Erik Johnston | 2016-02-02 | 1 | -2/+2 |
| | | |||||
| * | Fetch events in a separate transaction. | Erik Johnston | 2016-02-02 | 1 | -26/+29 |
| | | | | | | | | | | | | | | | | | | This has a couple of benefits: - It reduces the time of transactions, allowing other database requests to run. - Fetching events is given a dedicated database thread, and so can't starve other database requests. | ||||
* | | Unused import | Erik Johnston | 2016-02-03 | 1 | -1/+1 |
| | | |||||
* | | Change the way we do public room list fetching | Erik Johnston | 2016-02-02 | 2 | -1/+17 |
|/ | |||||
* | Order things correctly | Erik Johnston | 2016-02-01 | 1 | -0/+4 |
| | |||||
* | Switch over /events to use per room caches | Erik Johnston | 2016-02-01 | 1 | -2/+2 |
| | |||||
* | Merge pull request #543 from matrix-org/erikj/sync | Erik Johnston | 2016-02-01 | 3 | -0/+15 |
|\ | | | | | Cache get_room_changes_for_user | ||||
| * | Cache get_room_changes_for_user | Erik Johnston | 2016-01-29 | 3 | -0/+15 |
| | | |||||
* | | Only use room_ids if in get_room_events_stream if is_guest | Erik Johnston | 2016-02-01 | 1 | -5/+0 |
|/ | |||||
* | Invalidate _account_data_stream_cache correctly | Erik Johnston | 2016-01-29 | 1 | -0/+4 |
| | |||||
* | Comment. Remove superfluous order by | Erik Johnston | 2016-01-29 | 1 | -1/+3 |
| | |||||
* | Don't prefill account data | Erik Johnston | 2016-01-29 | 1 | -8/+1 |
| | |||||
* | Actually use cache | Erik Johnston | 2016-01-29 | 1 | -7/+13 |
| | |||||
* | Max is not a function | Erik Johnston | 2016-01-29 | 1 | -1/+1 |
| | |||||
* | Convert param style | Erik Johnston | 2016-01-29 | 1 | -0/+3 |
| | |||||
* | Prefill stream change caches | Erik Johnston | 2016-01-29 | 3 | -18/+48 |
| | |||||
* | Bump AccountDataAndTagsChangeCache size | Erik Johnston | 2016-01-29 | 1 | -1/+1 |
| | |||||
* | Merge pull request #536 from matrix-org/erikj/sync | Erik Johnston | 2016-01-29 | 6 | -74/+218 |
|\ | | | | | Make /sync "better". | ||||
| * | Amalgamate tags and account data stream caches | Erik Johnston | 2016-01-28 | 2 | -12/+9 |
| | | |||||
| * | Don't use defer.returnValue | Erik Johnston | 2016-01-28 | 1 | -1/+1 |
| | | |||||
| * | Add events index | Erik Johnston | 2016-01-28 | 1 | -0/+16 |
| | | |||||
| * | Change name and doc has_entity_changed | Erik Johnston | 2016-01-28 | 3 | -3/+3 |
| | | |||||
| * | Cache tags and account data | Erik Johnston | 2016-01-28 | 5 | -10/+42 |
| | | |||||
| * | Ensure keys to RoomStreamChangeCache are ints | Erik Johnston | 2016-01-28 | 1 | -5/+6 |
| | | |||||
| * | Invalidate caches properly. Remove unused arg | Erik Johnston | 2016-01-28 | 3 | -8/+13 |
| | | |||||
| * | Merge branch 'develop' of github.com:matrix-org/synapse into erikj/sync | Erik Johnston | 2016-01-28 | 1 | -18/+9 |
| |\ | |||||
| * | | Allow paginating backwards from stream token | Erik Johnston | 2016-01-28 | 1 | -2/+14 |
| | | | |||||
| * | | Return correct type of token | Erik Johnston | 2016-01-28 | 1 | -3/+6 |
| | | | |||||
| * | | Merge branch 'develop' of github.com:matrix-org/synapse into erikj/sync | Erik Johnston | 2016-01-28 | 1 | -1/+1 |
| |\ \ | |||||
| * | | | PEP8 | Erik Johnston | 2016-01-27 | 3 | -6/+9 |
| | | | | |||||
| * | | | Use the same path for incremental with gap or without gap | Erik Johnston | 2016-01-27 | 2 | -4/+3 |
| | | | | |||||
| * | | | Add cache to room stream | Erik Johnston | 2016-01-27 | 3 | -62/+138 |
| | | | | |||||
* | | | | Cache filters | Erik Johnston | 2016-01-28 | 1 | -1/+2 |
| |_|/ |/| | | |||||
* | | | Merge pull request #534 from matrix-org/erikj/setup | Erik Johnston | 2016-01-28 | 7 | -89/+74 |
|\ \ \ | |_|/ |/| | | Add a Homeserver.setup method | ||||
| * | | Clean up a bit. Add comment | Erik Johnston | 2016-01-28 | 1 | -18/+9 |
| |/ | |||||
| * | Merge branch 'develop' of github.com:matrix-org/synapse into erikj/setup | Erik Johnston | 2016-01-27 | 1 | -1/+2 |
| |\ | |||||
| * | | Add a Homeserver.setup method. | Erik Johnston | 2016-01-26 | 7 | -89/+83 |
| | | | | | | | | | | | | | | | | | | 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. | ||||
* | | | Up get_rooms_for_user cache size | Erik Johnston | 2016-01-28 | 1 | -1/+1 |
| |/ |/| | |||||
* | | Fix adding push rules relative to other rules | Mark Haines | 2016-01-27 | 1 | -1/+2 |
|/ | |||||
* | Merge pull request #525 from matrix-org/erikj/select_many | Erik Johnston | 2016-01-25 | 3 | -60/+110 |
|\ | | | | | Implement a `_simple_select_many_batch` | ||||
| * | Guard against empty iterables | Erik Johnston | 2016-01-25 | 1 | -0/+6 |
| | | |||||
| * | Correct docstring | Erik Johnston | 2016-01-25 | 1 | -1/+0 |
| | | |||||
| * | Implement a _simple_select_many_batch | Erik Johnston | 2016-01-25 | 3 | -60/+105 |
| | | |||||
* | | Merge pull request #527 from matrix-org/erikj/push_cache | Erik Johnston | 2016-01-25 | 1 | -0/+1 |
|\ \ | | | | | | | Push: Use storage apis that are cached | ||||
| * | | Push: Use storage apis that are cached | Erik Johnston | 2016-01-25 | 1 | -0/+1 |
| |/ | |||||
* / | Add index to event_push_actions | Erik Johnston | 2016-01-25 | 1 | -0/+1 |
|/ | |||||
* | Overlay the push_rules_enabled map for users, otherwise they won't be able ↵ | David Baker | 2016-01-22 | 1 | -0/+29 |
| | | | | to disable server default rules. | ||||
* | Make LRU cache not default to treecache & add options to use it | David Baker | 2016-01-22 | 1 | -1/+1 |
| | |||||
* | Use new invalidate_many cache invalidation to invalidate the ↵ | David Baker | 2016-01-22 | 1 | -4/+15 |
| | | | | event_push_actions cache appropriately. | ||||
* | Cache get_unread_event_push_actions_by_room_for_user | Erik Johnston | 2016-01-21 | 1 | -1/+2 |
| | |||||
* | peppate | David Baker | 2016-01-20 | 1 | -3/+2 |
| | |||||
* | Add index by user id on receipts_linearized | David Baker | 2016-01-20 | 1 | -0/+18 |
| | |||||
* | Add storage function to get all receipts for a user. Also add some cache ↵ | David Baker | 2016-01-20 | 1 | -21/+34 |
| | | | | invalidation to the receipts storage because there wasn't any, and remove a method that was unused. | ||||
* | Add regex cache. Only caculate push actions for users that have sent read ↵ | Erik Johnston | 2016-01-19 | 1 | -1/+13 |
| | | | | receipts, and are on that server | ||||
* | Return highlight_count in /sync | Erik Johnston | 2016-01-19 | 1 | -2/+3 |
| | |||||
* | Remove dead code | Erik Johnston | 2016-01-18 | 1 | -22/+1 |
| | |||||
* | Make unit tests work | Erik Johnston | 2016-01-18 | 1 | -1/+1 |
| | |||||
* | Make notifications go quicker | Erik Johnston | 2016-01-18 | 2 | -4/+45 |
| | |||||
* | Allow filtering events for multiple users at once | Erik Johnston | 2016-01-18 | 1 | -0/+13 |
| | |||||
* | Require ID and as_token be unique for ASs | Daniel Wagner-Hall | 2016-01-14 | 1 | -1/+25 |
| | | | | | Defaults ID to as_token if not specified. This will change when IDs are fully supported. | ||||
* | Merge pull request #494 from matrix-org/daniel/2 | Daniel Wagner-Hall | 2016-01-14 | 1 | -0/+1 |
|\ | | | | | Don't start server if ASes are invalidly configured | ||||
| * | Don't start server if ASes are invalidly configured | Daniel Wagner-Hall | 2016-01-13 | 1 | -0/+1 |
| | | |||||
* | | Merge pull request #493 from matrix-org/daniel/1 | Daniel Wagner-Hall | 2016-01-14 | 1 | -59/+0 |
|\ \ | | | | | | | Delete unused code | ||||
| * | | Delete unused code | Daniel Wagner-Hall | 2016-01-13 | 1 | -59/+0 |
| |/ | |||||
* / | Rename 'user_name' to 'user_id' in push to make it consistent with the rest ↵ | Mark Haines | 2016-01-13 | 2 | -38/+38 |
|/ | | | | of the code | ||||
* | Merge remote-tracking branch 'origin/erikj/bulk_get_push_rules' into ↵ | Mark Haines | 2016-01-13 | 1 | -18/+8 |
|\ | | | | | | | | | | | | | markjh/table_name Conflicts: synapse/storage/push_rule.py | ||||
| * | bulk_get_push_rules should handle empty lists | Erik Johnston | 2016-01-13 | 1 | -21/+13 |
| | | |||||
* | | Delete the table objects from TransactionStore | Mark Haines | 2016-01-13 | 1 | -58/+10 |
| | | |||||
* | | Remove the RoomsTable object | Mark Haines | 2016-01-13 | 1 | -13/+3 |
| | | |||||
* | | Remove the PushersTable and EventPushActionsTable objects | Mark Haines | 2016-01-12 | 2 | -14/+6 |
| | | |||||
* | | Remove the PushRuleTable and PushRuleEnableTable objects | Mark Haines | 2016-01-12 | 1 | -50/+33 |
|/ | |||||
* | Postgres doesn't like booleans | David Baker | 2016-01-11 | 1 | -2/+2 |
| | |||||
* | Remove rogue 'admin' | David Baker | 2016-01-11 | 1 | -1/+1 |
| | |||||
* | Merge pull request #456 from matrix-org/store_event_actions | David Baker | 2016-01-08 | 6 | -11/+230 |
|\ | | | | | Send unread notification counts | ||||
| * | This comma is actually important | David Baker | 2016-01-07 | 1 | -1/+1 |
| | | |||||
| * | Merge remote-tracking branch 'origin/develop' into store_event_actions | David Baker | 2016-01-06 | 1 | -1/+10 |
| |\ | |||||
| * | | Adding is_guest here won't work because it just constructs a dict of uid -> ↵ | David Baker | 2016-01-06 | 1 | -1/+1 |
| | | | | | | | | | | | | password hash |