Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Keep track of last access time for local media | Erik Johnston | 2018-01-17 | 3 | -4/+40 |
| | |||||
* | Fix a logcontext leak in persist_events | Richard van der Hoff | 2018-01-16 | 1 | -1/+8 |
| | | | | | | | | | | | | | ObserveableDeferred expects its callbacks to be called without any logcontexts, whereas it turns out we were calling them with the logcontext of the request which initiated the persistence loop. It seems wrong that we are attributing work done in the persistence loop to the request that happened to initiate it, so let's solve this by dropping the logcontext for it. (I'm not sure this actually causes any real problems other than messages in the debug log, but let's clean it up anyway) | ||||
* | Remove dead code related to default thumbnails | Erik Johnston | 2018-01-09 | 1 | -3/+0 |
| | |||||
* | fix StoreError syntax | Matthew Hodgson | 2017-12-05 | 1 | -1/+1 |
| | |||||
* | fix pep8 and tests | Matthew Hodgson | 2017-12-04 | 1 | -4/+3 |
| | |||||
* | switch to a simpler 'search_all_users' button as per review feedback | Matthew Hodgson | 2017-12-04 | 1 | -24/+16 |
| | |||||
* | Merge branch 'develop' into matthew/search-all-local-users | Matthew Hodgson | 2017-11-30 | 7 | -55/+143 |
|\ | |||||
| * | Remove pushers when deleting access tokens | Richard van der Hoff | 2017-11-29 | 1 | -5/+5 |
| | | | | | | | | | | Whenever an access token is invalidated, we should remove the associated pushers. | ||||
| * | Merge pull request #2697 from matrix-org/rav/fix_urlcache_index_error | Richard van der Hoff | 2017-11-27 | 5 | -14/+82 |
| |\ | | | | | | | Fix error on sqlite 3.7 | ||||
| | * | fix sql fails | Richard van der Hoff | 2017-11-22 | 1 | -1/+1 |
| | | | |||||
| | * | Check database in has_completed_background_updates | Richard van der Hoff | 2017-11-22 | 2 | -11/+32 |
| | | | | | | | | | | | | so that the right thing happens on workers. | ||||
| | * | Fix error on sqlite 3.7 | Richard van der Hoff | 2017-11-21 | 4 | -5/+52 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create the url_cache index on local_media_repository as a background update, so that we can detect whether we are on sqlite or not and create a partial or complete index accordingly. To avoid running the cleanup job before we have built the index, add a bailout which will defer the cleanup if the bg updates are still running. Fixes https://github.com/matrix-org/synapse/issues/2572. | ||||
| * | | Avoid retrying forever on IntegrityError | Richard van der Hoff | 2017-11-27 | 1 | -0/+7 |
| | | | |||||
| * | | Merge pull request #2689 from matrix-org/rav/unlock_account_data_upsert | Richard van der Hoff | 2017-11-21 | 1 | -36/+49 |
| |\ \ | | |/ | |/| | Avoid locking account_data tables for upserts | ||||
| | * | Avoid locking account_data tables for upserts | Richard van der Hoff | 2017-11-16 | 1 | -36/+49 |
| | | | |||||
* | | | remove null constraint on user_dir.room_id | Matthew Hodgson | 2017-11-30 | 1 | -0/+35 |
| | | | |||||
* | | | fix alternation operator for FTS4 - how did this ever work!? | Matthew Hodgson | 2017-11-30 | 1 | -1/+1 |
| | | | |||||
* | | | fix thinkos galore | Matthew Hodgson | 2017-11-30 | 2 | -16/+35 |
| | | | |||||
* | | | untested WIP but might actually work | Matthew Hodgson | 2017-11-29 | 3 | -13/+38 |
| | | | |||||
* | | | Add user_directory_include_pattern config param to expand search results to ↵ | Matthew Hodgson | 2017-11-29 | 1 | -4/+12 |
|/ / | | | | | | | | | | | | | | | | | | | additional users Initial commit; this doesn't work yet - the LIKE filtering seems too aggressive. It also needs _do_initial_spam to be aware of prepopulating the whole user_directory_search table with all users... ...and it needs a handle_user_signup() or something to be added so that new signups get incrementally added to the table too. Committing it here as a WIP | ||||
* / | Avoid locking for upsert on pushers tables | Richard van der Hoff | 2017-11-16 | 2 | -5/+51 |
|/ | | | | | * replace the upsert into deleted_pushers with an insert * no need to lock for upsert on pusher_throttle | ||||
* | Fix broken ref to IntegrityError | Richard van der Hoff | 2017-11-16 | 1 | -1/+1 |
| | |||||
* | Avoid locking `pushers` table on upsert | Richard van der Hoff | 2017-11-16 | 1 | -27/+28 |
| | | | | | Now that _simple_upsert will retry on IntegrityError, we don't need to lock the table. | ||||
* | _simple_upsert: retry on IntegrityError | Richard van der Hoff | 2017-11-16 | 1 | -6/+29 |
| | | | | | | wrap the call to _simple_upsert_txn in a loop so that we retry on an integrityerror: this means we can avoid locking the table provided there is an unique index. | ||||
* | Cleanup in _simple_upsert_txn | Richard van der Hoff | 2017-11-16 | 1 | -16/+17 |
| | | | | Bail out early to reduce indentation | ||||
* | Merge pull request #2661 from matrix-org/rav/statereadstore | Richard van der Hoff | 2017-11-15 | 2 | -216/+231 |
|\ | | | | | Pull out bits of StateStore to a mixin | ||||
| * | Pull out bits of StateStore to a mixin | Richard van der Hoff | 2017-11-14 | 1 | -204/+220 |
| | | | | | | | | | | | | | | | | | | ... so that we don't need to secretly gut-wrench it for use in the slaved stores. I haven't done the other stores yet, but we should. I'm tired of the workers breaking every time we tweak the stores because I forgot to gut-wrench the right method. fixes https://github.com/matrix-org/synapse/issues/2655. | ||||
| * | Revert "Revert "move _state_group_cache to statestore"" | Richard van der Hoff | 2017-11-14 | 2 | -13/+12 |
| | | | | | | | | | | | | | | We're going to fix this properly on this branch, so that the _state_group_cache can end up in StateGroupReadStore. This reverts commit ab335edb023d66cd0be439e045b10ca104b73cb5. | ||||
* | | Merge pull request #2675 from matrix-org/rav/remove_broken_logcontext_funcs | Richard van der Hoff | 2017-11-15 | 1 | -2/+2 |
|\ \ | |/ |/| | Remove preserve_context_over_{fn, deferred} | ||||
| * | Remove preserve_context_over_{fn, deferred} | Richard van der Hoff | 2017-11-14 | 1 | -2/+2 |
| | | | | | | | | | | Both of these functions ae known to leak logcontexts. Replace the remaining calls to them and kill them off. | ||||
* | | Make __init__ consitstent across Store heirarchy | Richard van der Hoff | 2017-11-13 | 16 | -32/+32 |
|/ | | | | | | 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) | ||||
* | Revert "move _state_group_cache to statestore" | Erik Johnston | 2017-11-13 | 2 | -12/+13 |
| | | | | This reverts commit f5cf3638e9c6086e1c33ddad8eda9298cf53a58e. | ||||
* | Up cache size of get_global_account_data_by_type_for_user | Erik Johnston | 2017-11-13 | 1 | -1/+1 |
| | |||||
* | Fix typo | Erik Johnston | 2017-11-09 | 1 | -1/+1 |
| | |||||
* | Merge pull request #2656 from matrix-org/rav/fix_deactivate | Richard van der Hoff | 2017-11-09 | 1 | -2/+1 |
|\ | | | | | Fix 'NoneType' not iterable in /deactivate | ||||
| * | Fix 'NoneType' not iterable in /deactivate | Richard van der Hoff | 2017-11-09 | 1 | -2/+1 |
| | | | | | | | | make sure we actually return a value from user_delete_access_tokens | ||||
* | | Have an explicit API to update room config | Erik Johnston | 2017-11-08 | 1 | -0/+13 |
| | | |||||
* | | Revert "Modify group room association API to allow modification of is_public" | Erik Johnston | 2017-11-08 | 1 | -13/+7 |
| | | |||||
* | | Merge pull request #2637 from spantaleev/avoid-noop-media-deletes | Erik Johnston | 2017-11-08 | 1 | -0/+6 |
|\ \ | | | | | | | Avoid no-op media deletes | ||||
| * | | Avoid no-op media deletes | Slavi Pantaleev | 2017-11-04 | 1 | -0/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | If there are no media entries to delete, avoid creating transactions, prepared statements and unnecessary log entries. Signed-off-by: Slavi Pantaleev <slavi@devture.com> | ||||
* | | | Merge pull request #2649 from matrix-org/rav/fix_delta_on_state_res | Richard van der Hoff | 2017-11-08 | 2 | -13/+12 |
|\ \ \ | | | | | | | | | Fix bug in state group storage | ||||
| * | | | move _state_group_cache to statestore | Richard van der Hoff | 2017-11-07 | 2 | -13/+12 |
| | |/ | |/| | | | | | | | this is internal to statestore, so let's keep it there. | ||||
* | | | Merge pull request #2643 from matrix-org/matthew/user_dir_typos | Matthew Hodgson | 2017-11-07 | 4 | -12/+36 |
|\ \ \ | |/ / |/| | | Fix various embarrassing typos around user_directory and add some doc. | ||||
| * | | create new indexes before dropping old ones to keep safetynet in place | Matthew Hodgson | 2017-11-07 | 1 | -2/+4 |
| | | | |||||
| * | | s/users_in_pubic_room/users_in_public_rooms/g | Matthew Hodgson | 2017-11-04 | 1 | -2/+2 |
| | | | |||||
| * | | s/users_in_pubic_room/users_in_public_rooms/g | Matthew Hodgson | 2017-11-04 | 2 | -10/+32 |
| | | | |||||
| * | | fix copyright.... | Matthew Hodgson | 2017-11-04 | 1 | -1/+1 |
| | | | |||||
| * | | s/popualte/populate/ | Matthew Hodgson | 2017-11-04 | 1 | -1/+1 |
| |/ | |||||
* / | Remember to pick is_admin out of the db | Luke Barnard | 2017-11-07 | 1 | -1/+1 |
|/ | |||||
* | Notify auth providers on logout | Richard van der Hoff | 2017-11-01 | 1 | -5/+8 |
| | | | | Provide a hook by which auth providers can be notified of logouts. | ||||
* | Merge pull request #2617 from matrix-org/matthew/auto-displayname | Matthew Hodgson | 2017-11-01 | 1 | -2/+4 |
|\ | | | | | automatically set default displayname on register | ||||
| * | switch to setting default displayname in the storage layer | Matthew Hodgson | 2017-11-01 | 1 | -2/+4 |
| | | | | | | | | to avoid clobbering guest user displaynames on registration | ||||
* | | Merge pull request #2613 from matrix-org/rav/kill_refresh_tokens | David Baker | 2017-11-01 | 4 | -58/+14 |
|\ \ | |/ |/| | Remove the last vestiges of refresh_tokens | ||||
| * | Remove the last vestiges of refresh_tokens | Richard van der Hoff | 2017-10-31 | 4 | -58/+14 |
| | | |||||
* | | Merge pull request #2612 from matrix-org/luke/groups-room-relationship-is-public | Luke Barnard | 2017-11-01 | 1 | -7/+13 |
|\ \ | |/ |/| | Modify group room association API to allow modification of is_public | ||||
| * | Leave `is_public` as required argument of update_room_group_association | Luke Barnard | 2017-11-01 | 1 | -1/+1 |
| | | |||||
| * | Modify group room association API to allow modification of is_public | Luke Barnard | 2017-10-31 | 1 | -7/+13 |
| | | | | | | | | also includes renamings to make things more consistent. | ||||
* | | DB schema interface for password auth providers | Richard van der Hoff | 2017-10-31 | 2 | -0/+77 |
|/ | | | | | Provide an interface by which password auth providers can register db schema files to be run at startup | ||||
* | Merge branch 'erikj/attestation_local_fix' of github.com:matrix-org/synapse ↵ | Erik Johnston | 2017-10-27 | 1 | -0/+18 |
|\ | | | | | | | into develop | ||||
| * | Fixup | Erik Johnston | 2017-10-27 | 1 | -2/+2 |
| | | |||||
| * | Remove incorrect attestations | Erik Johnston | 2017-10-27 | 1 | -0/+18 |
| | | |||||
* | | Request is_public from database | Luke Barnard | 2017-10-27 | 1 | -1/+3 |
| | | |||||
* | | Create groups with is_public = True | Luke Barnard | 2017-10-27 | 1 | -0/+1 |
| | | |||||
* | | Recreate groups table instead of adding column | Luke Barnard | 2017-10-26 | 1 | -2/+16 |
| | | | | | | | | Adding a column with non-constant default not possible in sqlite3 | ||||
* | | Awful hack to get default true | Luke Barnard | 2017-10-26 | 1 | -1/+2 |
| | | |||||
* | | Bump schema version to 46 | Luke Barnard | 2017-10-26 | 1 | -1/+1 |
| | | |||||
* | | Add is_public to groups table to allow for private groups | Luke Barnard | 2017-10-26 | 1 | -0/+17 |
|/ | | | | | | Prevent group API access to non-members for private groups Also make all the group code paths consistent with `requester_user_id` always being the User ID of the requesting user. | ||||
* | replace 'except:' with 'except Exception:' | Richard van der Hoff | 2017-10-23 | 7 | -8/+8 |
| | | | | what could possibly go wrong | ||||
* | Fix logcontext handling for persist_events | Richard van der Hoff | 2017-10-17 | 1 | -7/+17 |
| | | | | | | | | * don't use preserve_context_over_deferred, which is known broken. * remove a redundant preserve_fn. * add/improve some comments | ||||
* | Implement GET /groups/$groupId/invited_users | Luke Barnard | 2017-10-16 | 1 | -0/+12 |
| | |||||
* | peeeeeeeeep8888888888888888888888888888 | Erik Johnston | 2017-10-11 | 1 | -1/+1 |
| | |||||
* | Fix group stream replication | Erik Johnston | 2017-10-11 | 1 | -7/+7 |
| | | | | | The stream update functions expect the storage function to return a list of tuples. | ||||
* | Fix schema delta versions | Erik Johnston | 2017-10-11 | 3 | -1/+1 |
| | |||||
* | Merge pull request #2466 from matrix-org/erikj/groups_merged | Erik Johnston | 2017-10-11 | 6 | -20/+1529 |
|\ | | | | | Initial Group Implementation | ||||
| * | Merge branch 'develop' into erikj/groups_merged | David Baker | 2017-10-02 | 4 | -23/+129 |
| |\ | |||||
| * | | Add remove room API | Erik Johnston | 2017-09-26 | 1 | -0/+23 |
| | | | |||||
| * | | Add unique index to group_rooms table | Erik Johnston | 2017-09-26 | 1 | -1/+1 |
| | | | |||||
| * | | Remove user from group summary when the leave the group | Erik Johnston | 2017-09-21 | 1 | -0/+8 |
| | | | |||||
| * | | Correctly return next token | Erik Johnston | 2017-09-20 | 1 | -1/+2 |
| | | | |||||
| * | | Fix initial sync | Erik Johnston | 2017-09-20 | 1 | -1/+9 |
| | | | |||||
| * | | Add user profiles to summary from group server | Erik Johnston | 2017-08-25 | 1 | -1/+1 |
| | | | |||||
| * | | Add remote profile cache | Erik Johnston | 2017-08-25 | 2 | -0/+126 |
| | | | |||||
| * | | Add _simple_update | Erik Johnston | 2017-08-25 | 1 | -19/+32 |
| | | | |||||
| * | | Merge pull request #2410 from matrix-org/erikj/groups_publicise | Erik Johnston | 2017-08-21 | 2 | -0/+32 |
| |\ \ | | | | | | | | | Add ability to publicise group membership | ||||
| | * | | Use BOOLEAN rather than TEXT type | Erik Johnston | 2017-08-21 | 1 | -1/+1 |
| | | | | |||||
| | * | | Add bulk group publicised lookup API | Erik Johnston | 2017-08-09 | 1 | -0/+14 |
| | | | | |||||
| | * | | Allow update group publicity | Erik Johnston | 2017-08-08 | 1 | -0/+15 |
| | | | | |||||
| | * | | Store whether the user wants to publicise their membership of a group | Erik Johnston | 2017-08-08 | 2 | -0/+3 |
| | | | | |||||
| * | | | Groups: Fix mising json.load in initial sync | Erik Johnston | 2017-08-21 | 1 | -1/+7 |
| |/ / | |||||
| * | | Update comment | Erik Johnston | 2017-07-24 | 1 | -2/+2 |
| | | | |||||
| * | | Use join rather than joined, etc. | Erik Johnston | 2017-07-24 | 1 | -2/+2 |
| | | | |||||
| * | | Fix all the typos | Erik Johnston | 2017-07-24 | 1 | -8/+7 |
| | | | |||||
| * | | Include users membership in group in summary API | Erik Johnston | 2017-07-24 | 1 | -0/+55 |
| | | | |||||
| * | | Check users/rooms are in group before adding to summary | Erik Johnston | 2017-07-24 | 1 | -0/+25 |
| | | | |||||
| * | | Merge pull request #2378 from matrix-org/erikj/group_sync_support | Erik Johnston | 2017-07-21 | 3 | -5/+110 |
| |\ \ | | | | | | | | | Add groups to sync stream | ||||
| | * | | Fix replication. And notify | Erik Johnston | 2017-07-20 | 1 | -0/+23 |
| | | | | |||||
| | * | | Add groups to sync stream | Erik Johnston | 2017-07-20 | 3 | -5/+87 |
| | | | | |||||
| * | | | Merge pull request #2377 from matrix-org/erikj/group_profile_update | Erik Johnston | 2017-07-20 | 1 | -0/+11 |
| |\ \ \ | | |/ / | |/| | | Add update group profile API | ||||
| | * | | Fix a storage desc | Erik Johnston | 2017-07-20 | 1 | -1/+1 |
| | | | | |||||
| | * | | Add update group profile API | Erik Johnston | 2017-07-20 | 1 | -0/+11 |
| | | | | |||||
| * | | | Fix typo | Erik Johnston | 2017-07-20 | 1 | -1/+1 |
| |/ / | |||||
| * | | Fix typos | Erik Johnston | 2017-07-18 | 1 | -8/+17 |
| | | | |||||
| * | | Comment | Erik Johnston | 2017-07-18 | 1 | -0/+14 |
| | | | |||||
| * | | Remove sync stuff | Erik Johnston | 2017-07-18 | 2 | -29/+1 |
| | | | |||||
| * | | Remove unused tables | Erik Johnston | 2017-07-18 | 1 | -7/+0 |
| | | | |||||
| * | | Remove sync stuff | Erik Johnston | 2017-07-18 | 2 | -70/+0 |
| | | | |||||
| * | | Add local group server support | Erik Johnston | 2017-07-17 | 3 | -0/+195 |
| | | | |||||
| * | | Add DEFAULT_ROLE_ID | Erik Johnston | 2017-07-14 | 1 | -4/+5 |
| | | | |||||
| * | | Correctly increment orders | Erik Johnston | 2017-07-14 | 1 | -2/+2 |
| | | | |||||
| * | | Remove unused functions | Erik Johnston | 2017-07-13 | 1 | -152/+0 |
| | | | |||||
| * | | Comments | Erik Johnston | 2017-07-13 | 1 | -12/+24 |
| | | | |||||
| * | | Comments | Erik Johnston | 2017-07-12 | 2 | -5/+41 |
| | | | |||||
| * | | Add group summary APIs | Erik Johnston | 2017-07-12 | 2 | -0/+699 |
| | | | |||||
| * | | Comment | Erik Johnston | 2017-07-12 | 1 | -1/+1 |
| | | | |||||
| * | | Move comment | Erik Johnston | 2017-07-11 | 1 | -2/+2 |
| | | | |||||
| * | | Rename column to attestation_json | Erik Johnston | 2017-07-11 | 2 | -5/+5 |
| | | | |||||
| * | | Comments | Erik Johnston | 2017-07-11 | 1 | -2/+2 |
| | | | |||||
| * | | Comments | Erik Johnston | 2017-07-11 | 2 | -4/+34 |
| | | | |||||
| * | | Initial group server implementation | Erik Johnston | 2017-07-10 | 3 | -1/+359 |
| | | | |||||
* | | | Fix up comment | Erik Johnston | 2017-10-09 | 1 | -1/+2 |
| | | | |||||
* | | | Invalidate cache | Erik Johnston | 2017-10-03 | 1 | -0/+3 |
| | | | |||||
* | | | Update comments | Erik Johnston | 2017-10-03 | 1 | -0/+7 |
| | | | |||||
* | | | Ignore incoming events for rooms that we have left | Erik Johnston | 2017-10-03 | 1 | -0/+32 |
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When synapse receives an event for a room its not in over federation, it double checks with the remote server to see if it is in fact in the room. This is done so that if the server has forgotten about the room (usually as a result of the database being dropped) it can recover from it. However, in the presence of state resets in large rooms, this can cause a lot of work for servers that have legitimately left. As a hacky solution that supports both cases we drop incoming events for rooms that we have explicitly left. This means that we no longer support the case of servers having forgotten that they've rejoined a room, but that is sufficiently rare that we're not going to support it for now. | ||||
* | | Up the limits on number of url cache entries to delete at one time | Erik Johnston | 2017-09-28 | 1 | -2/+2 |
| | | |||||
* | | Add old indices | Erik Johnston | 2017-09-28 | 1 | -0/+2 |
| | | |||||
* | | Only pull out local media that were for url cache | Erik Johnston | 2017-09-28 | 1 | -1/+1 |
| | | |||||
* | | Fix typo | Erik Johnston | 2017-09-28 | 1 | -3/+3 |
| | | |||||
* | | Change expires column to expires_ts | Erik Johnston | 2017-09-28 | 2 | -8/+27 |
| | | |||||
* | | More brackets | Erik Johnston | 2017-09-28 | 1 | -1/+1 |
| | | |||||
* | | Delete expired url cache data | Erik Johnston | 2017-09-28 | 3 | -1/+79 |
| | | |||||
* | | Invalidate signing key cache when we gat an update | Richard van der Hoff | 2017-09-20 | 1 | -17/+24 |
|/ | | | | This might make the cache slightly more efficient. | ||||
* | Perf: Don't filter events for push | Erik Johnston | 2017-07-07 | 1 | -0/+13 |
| | | | | | We know the users are joined and we can explicitly check for if they are ignoring the user, so lets do that. | ||||
* | Merge pull request #2309 from matrix-org/erikj/user_ip_repl | Erik Johnston | 2017-07-06 | 1 | -3/+5 |
|\ | | | | | Fix up user_ip replication commands | ||||
| * | Fix up | Erik Johnston | 2017-06-27 | 1 | -3/+5 |
| | | |||||
* | | Define CACHE_SIZE_FACTOR once | Erik Johnston | 2017-07-04 | 2 | -8/+3 |
| | | |||||
* | | Make into list | Erik Johnston | 2017-06-29 | 1 | -1/+1 |
| | | |||||
* | | Prefill forward extrems and event to state groups | Erik Johnston | 2017-06-29 | 2 | -2/+13 |
|/ | |||||
* | Fix up client ips to read from pending data | Erik Johnston | 2017-06-27 | 2 | -21/+59 |
| | |||||
* | Batch upsert user ips | Erik Johnston | 2017-06-27 | 1 | -19/+38 |
| | |||||
* | Fix up indices for users_who_share_rooms | Erik Johnston | 2017-06-26 | 1 | -1/+2 |
| | |||||
* | Store URL cache preview downloads seperately | Erik Johnston | 2017-06-23 | 2 | -2/+22 |
| | | | | This makes it easier to clear old media out at a later date | ||||
* | Add desc | Erik Johnston | 2017-06-22 | 1 | -0/+1 |
| | |||||
* | Merge pull request #2296 from matrix-org/erikj/dont_appserver_shar | Erik Johnston | 2017-06-21 | 1 | -15/+20 |
|\ | | | | | Don't work out users who share room with appservice users | ||||
| * | Initialise exclusive_user_regex | Erik Johnston | 2017-06-21 | 1 | -15/+20 |
| | | |||||
* | | Merge branch 'develop' into avoid_duplicate_filters | Krombel | 2017-06-21 | 25 | -223/+1652 |
|\| | |||||
| * | Handle thumbnail urls | Erik Johnston | 2017-06-19 | 1 | -12/+14 |
| | | |||||
| * | Add API to quarantine media | Erik Johnston | 2017-06-19 | 3 | -2/+89 |
| | | |||||
| * | Add shutdown room API | Erik Johnston | 2017-06-19 | 3 | -0/+59 |
| | | |||||
| * | Merge pull request #2286 from matrix-org/erikj/split_out_user_dir | Erik Johnston | 2017-06-16 | 1 | -0/+18 |
| |\ | | | | | | | Split out user directory to a separate process | ||||
| | * | Initial worker impl | Erik Johnston | 2017-06-16 | 1 | -0/+18 |
| | | | |||||
| * | | Merge pull request #2280 from matrix-org/erikj/share_room_user_dir | Erik Johnston | 2017-06-16 | 3 | -31/+299 |
| |\| | | | | | | | Include users who you share a room with in user directory | ||||
| | * | Include users who share room with requester in user directory | Erik Johnston | 2017-06-15 | 1 | -22/+39 |
| | | | |||||
| | * | Implement updating users who share rooms on the fly | Erik Johnston | 2017-06-15 | 1 | -1/+110 |
| | | | |||||
| | * | Implement initial population of users who share rooms table | Erik Johnston | 2017-06-15 | 1 | -7/+117 |
| | | | |||||
| | * | Add DB schema for tracking users who share rooms | Erik Johnston | 2017-06-15 | 2 | -1/+33 |
| | | | |||||
| * | | Merge pull request #2281 from matrix-org/erikj/phone_home_stats | Erik Johnston | 2017-06-15 | 3 | -70/+70 |
| |\ \ | | |/ | |/| | Fix phone home stats | ||||
| | * | Add some more stats | Erik Johnston | 2017-06-15 | 2 | -0/+28 |
| | | | |||||
| | * | Fix phone home stats | Erik Johnston | 2017-06-14 | 2 | -71/+43 |
| | | | |||||
| * | | Fix user directory insertion due to missing room_id | Erik Johnston | 2017-06-13 | 1 | -1/+2 |
| | | | |||||
| * | | Fix up sql | Erik Johnston | 2017-06-13 | 1 | -10/+12 |
| | | | |||||
| * | | Fix user dir to not assume existence of user | Erik Johnston | 2017-06-13 | 1 | -22/+37 |
| | | | |||||
| * | | Merge pull request #2274 from matrix-org/erikj/cache_is_host_joined | Erik Johnston | 2017-06-13 | 2 | -1/+6 |
| |\ \ | | | | | | | | | Add cache for is_host_joined | ||||
| | * | | Add cache for is_host_joined | Erik Johnston | 2017-06-13 | 2 | -1/+6 |
| | | | | |||||
| * | | | Tweak the ranking of PG user dir search | Erik Johnston | 2017-06-13 | 1 | -13/+40 |
| |/ / | |||||
| * | | Merge pull request #2266 from matrix-org/erikj/host_in_room | Erik Johnston | 2017-06-12 | 1 | -29/+26 |
| |\ \ | | | | | | | | | Change is_host_joined to use current_state table | ||||
| | * | | Tweak SQL | Erik Johnston | 2017-06-09 | 1 | -3/+6 |
| | | | | |||||
| | * | | Change is_host_joined to use current_state table | Erik Johnston | 2017-06-09 | 1 | -29/+23 |
| | | | | | | | | | | | | | | | | | | | | | | | | This bypasses a bug where using the state groups to figure out if a host is in a room sometimes errors if the servers isn't in the room. (For example when the server rejected an invite to a remote room) | ||||
| * | | | Fix replication | Erik Johnston | 2017-06-09 | 1 | -1/+1 |
| | | | | |||||
| * | | | Comments | Erik Johnston | 2017-06-09 | 1 | -0/+3 |
| | | | | |||||
| * | | | Cache state deltas | Erik Johnston | 2017-06-09 | 1 | -3/+12 |
| |/ / | |||||
| * | | Ensure we don't use unpersisted state group as prev group | Erik Johnston | 2017-06-08 | 1 | -0/+13 |
| | | | |||||
| * | | Merge pull request #2259 from matrix-org/erikj/fix_state_woes | Erik Johnston | 2017-06-07 | 3 | -10/+24 |
| |\ \ | | | | | | | | | Fix bug where state_group tables got corrupted | ||||
| | * | | Fix bug where state_group tables got corrupted | Erik Johnston | 2017-06-07 | 3 | -10/+24 |
| | |/ | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
| * | | Merge pull request #2248 from matrix-org/erikj/state_fixup | Erik Johnston | 2017-06-07 | 2 | -21/+122 |
| |\ \ | | | | | | | | | Faster cache for get_joined_hosts | ||||
| | * | | Comments | Erik Johnston | 2017-06-07 | 2 | -0/+15 |
| | | | | |||||
| | * | | Merge branch 'develop' of github.com:matrix-org/synapse into erikj/state_fixup | Erik Johnston | 2017-06-07 | 7 | -9/+624 |
| | |\ \ | |||||
| | * | | | Remove spurious log lines | Erik Johnston | 2017-06-07 | 1 | -1/+0 |
| | | | | | |||||
| | * | | | Handle None state group correctly | Erik Johnston | 2017-05-26 | 1 | -1/+4 |
| | | | | | |||||
| | * | | | Faster cache for get_joined_hosts | Erik Johnston | 2017-05-25 | 2 | -21/+105 |
| | | | | | |||||
| * | | | | When pruning, delete from device_lists_outbound_last_success | Erik Johnston | 2017-06-07 | 1 | -0/+8 |
| | | | | | |||||
| * | | | | Keep pruning background task | Erik Johnston | 2017-06-07 | 1 | -0/+45 |
| | | | | | |||||
| * | | | | Split up device_lists_outbound_pokes table for faster updates. | Erik Johnston | 2017-06-07 | 2 | -58/+57 |
| | |/ / | |/| | | |||||
| * | | | Increase size of IP cache | Erik Johnston | 2017-06-07 | 1 | -1/+6 |
| | | | | |||||
| * | | | Handle profile updates in user directory | Erik Johnston | 2017-06-01 | 1 | -0/+49 |
| | | | | |||||
| * | | | Fix sqlite | Erik Johnston | 2017-06-01 | 1 | -1/+1 |
| | | | | |||||
| * | | | Split the table in two | Erik Johnston | 2017-06-01 | 3 | -4/+88 |
| | | | | |||||
| * | | | Tweak search query | Erik Johnston | 2017-06-01 | 1 | -1/+1 |
| | | | | |||||
| * | | | Tweak search query | Erik Johnston | 2017-06-01 | 1 | -2/+2 |
| | | | | |||||
| * | | | Remove spurious inlineCallbacks | Erik Johnston | 2017-06-01 | 1 | -1/+0 |
| | | | | |||||
| * | | | Bug fixes and logging | Erik Johnston | 2017-06-01 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | - Check if room is public when a user joins before adding to user dir - Fix typo of field name "content.join_rules" -> "content.join_rule" | ||||
| * | | | Order by if they have profile info | Erik Johnston | 2017-06-01 | 1 | -2/+11 |
| | | | | |||||
| * | | | Use prefix matching | Erik Johnston | 2017-06-01 | 1 | -5/+29 |
| | | | | |||||
| * | | | Comment on why arbitrary comments | Erik Johnston | 2017-05-31 | 1 | -2/+6 |
| | | | | |||||
| * | | | Use unique indices | Erik Johnston | 2017-05-31 | 1 | -2/+2 |
| | | | | |||||
| * | | | Convert to int | Erik Johnston | 2017-05-31 | 1 | -0/+1 |
| | | | | |||||
| * | | | Fix tests | Erik Johnston | 2017-05-31 | 1 | -0/+1 |
| | | | | |||||
| * | | | Fix typo | Erik Johnston | 2017-05-31 | 1 | -1/+1 |
| | | | | |||||
| * | | | Limit number of things we fetch out of the db | Erik Johnston | 2017-05-31 | 1 | -9/+30 |
| | | | | |||||
| * | | | Add stream change cache | Erik Johnston | 2017-05-31 | 3 | -1/+19 |
| | | | | |||||
| * | | | Split out directory and search tables | Erik Johnston | 2017-05-31 | 2 | -29/+56 |
| | | | | |||||
| * | | | Pull max id from correct table | Erik Johnston | 2017-05-31 | 1 | -0/+8 |
| | | | | |||||
| * | | | Handle the server leaving a public room | Erik Johnston | 2017-05-31 | 2 | -0/+15 |
| | | | | |||||
| * | | | Add comments | Erik Johnston | 2017-05-31 | 2 | -4/+37 |
| | | | | |||||
| * | | | Weight differently | Erik Johnston | 2017-05-31 | 1 | -10/+24 |
| | | | | |||||
| * | | | Add search | Erik Johnston | 2017-05-31 | 1 | -0/+35 |
| | | | | |||||
| * | | | Update room column when room becomes unpublic | Erik Johnston | 2017-05-31 | 1 | -0/+10 |
| | | | | |||||
| * | | | Add user_directory to database | Erik Johnston | 2017-05-31 | 3 | -0/+216 |
| | | | | |||||
| * | | | Add comment | Erik Johnston | 2017-05-30 | 1 | -1/+1 |
| | | | | |||||
| * | | | Add clobbered event_id | Erik Johnston | 2017-05-30 | 2 | -1/+3 |
| | | | | |||||
| * | | | Add current_state_delta_stream table | Erik Johnston | 2017-05-30 | 2 | -8/+48 |
| |/ / | |||||
| * | | Merge pull request #2247 from matrix-org/erikj/auth_event | Erik Johnston | 2017-05-24 | 4 | -7/+104 |
| |\ \ | | | | | | | | | Only store event_auth for state events | ||||
| | * | | Add background task to clear out old event_auth | Erik Johnston | 2017-05-24 | 3 | -1/+74 |
| | | | | |||||
| | * | | Only store event_auth for state events | Erik Johnston | 2017-05-24 | 2 | -6/+30 |
| | | | | |||||
| * | | | Remove redundant invalidation | Erik Johnston | 2017-05-23 | 1 | -3/+0 |
| | | | | |||||
| * | | | Missed an invalidation | Erik Johnston | 2017-05-23 | 1 | -0/+3 |
| | | | | |||||
| * | | | Stream count_e2e_one_time_keys cache invalidation | Erik Johnston | 2017-05-22 | 1 | -13/+18 |
| |/ / | |||||
| * | | Fix invalidation of get_users_with_read_receipts_in_room | Erik Johnston | 2017-05-19 | 1 | -1/+3 |
| | | | |||||
| * | | Increase size of push rule caches | Erik Johnston | 2017-05-18 | 1 | -2/+2 |
| | | | |||||
| * | | Make get_if_app_services_interested_in_user faster | Erik Johnston | 2017-05-18 | 2 | -10/+23 |
| | | | |||||
| * | | Merge pull request #2230 from matrix-org/erikj/speed_up_get_state | Erik Johnston | 2017-05-17 | 1 | -29/+11 |
| |\ \ | | | | | | | | | Make get_state_groups_from_groups faster. | ||||
| | * | | Make get_state_groups_from_groups faster. | Erik Johnston | 2017-05-17 | 1 | -29/+11 |
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | Most of the time was spent copying a dict to filter out sentinel values that indicated that keys did not exist in the dict. The sentinel values were added to ensure that we cached the non-existence of keys. By updating DictionaryCache to keep track of which keys were known to not exist itself we can remove a dictionary copy. | ||||
| * | | Merge pull request #2216 from slipeer/app_services_interested_in_user | Erik Johnston | 2017-05-17 | 2 | -3/+6 |
| |\ \ | | |/ | |/| | Fix users claimed non-exclusively by an app service don't get notific… | ||||
| | * | Fix users claimed non-exclusively by an app service don't get notifications ↵ | Slipeer | 2017-05-11 | 2 | -3/+6 |
| | | | | | | | | | | | | #2211 | ||||
| * | | Comment | Erik Johnston | 2017-05-17 | 1 | -0/+5 |
| | | | |||||
| * | | Short circuit when we have delta ids | Erik Johnston | 2017-05-17 | 1 | -3/+19 |
| | | | |||||
| * | | Speed up get_joined_hosts | Erik Johnston | 2017-05-16 | 1 | -1/+2 |
| | | | |||||
| * | | Merge pull request #2224 from matrix-org/erikj/prefill_state | Erik Johnston | 2017-05-16 | 3 | -9/+26 |
| |\ \ | | | | | | | | | Prefill state caches | ||||
| | * | | Remove spurious merge artifacts | Erik Johnston | 2017-05-16 | 1 | -13/+0 |
| | | | | |||||
| | * | | Take a copy before prefilling, as it may be a frozendict | Erik Johnston | 2017-05-16 | 1 | -1/+1 |
| | | | | |||||
| | * | | Update comment | Erik Johnston | 2017-05-15 | 1 | -1/+2 |
| | | | | |||||
| | * | | Comments | Erik Johnston | 2017-05-15 | 2 | -3/+6 |
| | | | | |||||
| | * | | Add more granular event send metrics | Erik Johnston | 2017-05-15 | 1 | -0/+12 |
| | | | | |||||
| | * | | Prefill state caches | Erik Johnston | 2017-05-15 | 3 | -6/+20 |
| | | | | |||||
* | | | | replaced json.dumps with encode_canonical_json | Krombel | 2017-06-21 | 1 | -1/+2 |
| | | | | |||||
* | | | | Merge branch 'develop' into avoid_duplicate_filters | Krombel | 2017-05-16 | 4 | -12/+63 |
|\| | | | |||||
| * | | | Add a comment to old delta | Richard van der Hoff | 2017-05-11 | 1 | -0/+4 |
| | | | | |||||
| * | | | Don't create event_search index on sqlite | Richard van der Hoff | 2017-05-11 | 2 | -3/+11 |
| | | | | | | | | | | | | | | | | ... because the table is virtual | ||||
| * | | | Add more logging for purging | Richard van der Hoff | 2017-05-11 | 1 | -7/+14 |
| | | | | | | | | | | | | | | | | Log the number of events we will be deleting at info. | ||||
| * | | | Add an index to event_search | Richard van der Hoff | 2017-05-11 | 3 | -3/+35 |
| |/ / | | | | | | | | | | - to make the purge API quicker | ||||
* | | | avoid access-error if no filter_id matches | Krombel | 2017-05-15 | 1 | -3/+3 |
| | | | |||||
* | | | insert whitespace to fix travis build | Krombel | 2017-05-12 | 1 | -1/+1 |
| | | | |||||
* | | | add check to only add a new filter if the same filter does not exist previously | Krombel | 2017-05-11 | 1 | -0/+9 |
|/ / | | | | | | | Signed-off-by: Matthias Kesler <krombel@krombel.de> | ||||
* | | Tidy purge code and add some comments | Richard van der Hoff | 2017-05-11 | 1 | -12/+19 |
| | | | | | | | | Try to make this clearer with more comments and some variable renames | ||||
* | | Don't de-delta state groups we're about to delete | Richard van der Hoff | 2017-05-10 | 1 | -11/+9 |
| | | |||||
* | | add some logging to purge_history | Richard van der Hoff | 2017-05-10 | 1 | -4/+21 |
|/ | |||||
* | Merge pull request #2208 from matrix-org/erikj/ratelimit_overrid | Erik Johnston | 2017-05-10 | 2 | -1/+57 |
|\ | | | | | Add per user ratelimiting overrides | ||||
| * | Add per user ratelimiting overrides | Erik Johnston | 2017-05-10 | 2 | -1/+57 |
| | | |||||
* | | Allow clients to upload one-time-keys with new sigs | Richard van der Hoff | 2017-05-09 | 1 | -20/+27 |
|/ | | | | | | | When a client retries a key upload, don't give an error if the signature has changed (but the key is the same). Fixes https://github.com/vector-im/riot-android/issues/1208, hopefully. | ||||
* | Merge pull request #2203 from matrix-org/erikj/event_cache_hit_ratio | Erik Johnston | 2017-05-08 | 2 | -2/+21 |
|\ | | | | | Don't update event cache hit ratio from get_joined_users | ||||
| * | Expand docstring a bit | Erik Johnston | 2017-05-08 | 1 | -1/+7 |
| | |