Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Unread counts fixes (#8254) | Brendan Abolivier | 2020-09-04 | 1 | -3/+3 |
| | | | | | | | | | | | | | | * Fixup `ALTER TABLE` database queries Make the new columns nullable, because doing otherwise can wedge a server with a big database, as setting a default value rewrites the table. * Switch back to using the notifications count in the push badge Clients are likely to be confused if we send a push but the badge count is the unread messages one, and not the notifications one. * Changelog | ||||
* | Stop sub-classing object (#8249) | Patrick Cloke | 2020-09-04 | 1 | -1/+1 |
| | |||||
* | Revert "Add experimental support for sharding event persister. (#8170)" (#8242) | Brendan Abolivier | 2020-09-04 | 5 | -93/+21 |
| | | | | | | | * Revert "Add experimental support for sharding event persister. (#8170)" This reverts commit 82c1ee1c22a87b9e6e3179947014b0f11c0a1ac3. * Changelog | ||||
* | Split fetching device keys and signatures into two transactions (#8233) | Richard van der Hoff | 2020-09-03 | 1 | -44/+65 |
| | | | I think this is simpler (and moves stuff out of the db threads) | ||||
* | Fix typing for SyncHandler (#8237) | Erik Johnston | 2020-09-03 | 2 | -5/+5 |
| | |||||
* | wrap `_get_e2e_device_keys_and_signatures_txn` in a non-txn method (#8231) | Richard van der Hoff | 2020-09-03 | 2 | -17/+39 |
| | | | | | We have three things which all call `_get_e2e_device_keys_and_signatures_txn` with their own `runInteraction`. Factor out the common code. | ||||
* | Add StreamStore to mypy (#8232) | Erik Johnston | 2020-09-02 | 1 | -18/+28 |
| | |||||
* | Re-implement unread counts (again) (#8059) | Brendan Abolivier | 2020-09-02 | 4 | -70/+205 |
| | |||||
* | Refactor `_get_e2e_device_keys_for_federation_query_txn` (#8225) | Richard van der Hoff | 2020-09-02 | 1 | -11/+6 |
| | | | | | We can use the existing `_get_e2e_device_keys_and_signatures_txn` instead of creating our own txn function | ||||
* | Add experimental support for sharding event persister. (#8170) | Erik Johnston | 2020-09-02 | 5 | -21/+93 |
| | | | | | | This is *not* ready for production yet. Caveats: 1. We should write some tests... 2. The stream token that we use for events can get stalled at the minimum position of all writers. This means that new events may not be processed and e.g. sent down sync streams if a writer isn't writing or is slow. | ||||
* | Add /user/{user_id}/shared_rooms/ api (#7785) | Will Hunt | 2020-09-02 | 1 | -1/+43 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add shared_rooms api * Add changelog * Add . * Wrap response in {"rooms": } * linting * Add unstable_features key * Remove options from isort that aren't part of 5.x `-y` and `-rc` are now default behaviour and no longer exist. `dont-skip` is no longer required https://timothycrosley.github.io/isort/CHANGELOG/#500-penny-july-4-2020 * Update imports to make isort happy * Add changelog * Update tox.ini file with correct invocation * fix linting again for isort * Vendor prefix unstable API * Fix to match spec * import Codes * import Codes * Use FORBIDDEN * Update changelog.d/7785.feature Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> * Implement get_shared_rooms_for_users * a comma * trailing whitespace * Handle the easy feedback * Switch to using runInteraction * Add tests * Feedback * Seperate unstable endpoint from v2 * Add upgrade node * a line * Fix style by adding a blank line at EOF. * Update synapse/storage/databases/main/user_directory.py Co-authored-by: Tulir Asokan <tulir@maunium.net> * Update synapse/storage/databases/main/user_directory.py Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> * Update UPGRADE.rst Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> * Fix UPGRADE/CHANGELOG unstable paths unstable unstable unstable Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> Co-authored-by: Tulir Asokan <tulir@maunium.net> Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> Co-authored-by: Tulir Asokan <tulir@maunium.net> | ||||
* | Do not try to store invalid data in the stats table (#8226) | Patrick Cloke | 2020-09-02 | 1 | -8/+26 |
| | |||||
* | Make _get_e2e_device_keys_and_signatures_txn return an attrs (#8224) | Richard van der Hoff | 2020-09-02 | 2 | -20/+40 |
| | | | | this makes it a bit clearer what's going on. | ||||
* | Fix errors when updating the user directory with invalid data (#8223) | Patrick Cloke | 2020-09-01 | 1 | -0/+5 |
| | |||||
* | Convert additional databases to async/await part 3 (#8201) | Patrick Cloke | 2020-09-01 | 5 | -85/+118 |
| | |||||
* | Rename `_get_e2e_device_keys_txn` (#8222) | Richard van der Hoff | 2020-09-01 | 2 | -6/+8 |
| | | | | | ... to `_get_e2e_device_keys_and_signatures_txn`, to better reflect what it does. | ||||
* | Convert additional databases to async/await (#8199) | Patrick Cloke | 2020-09-01 | 6 | -137/+146 |
| | |||||
* | Convert additional databases to async/await part 2 (#8200) | Patrick Cloke | 2020-09-01 | 10 | -50/+90 |
| | |||||
* | Move and rename `get_devices_with_keys_by_user` (#8204) | Richard van der Hoff | 2020-09-01 | 3 | -48/+60 |
| | | | | | | | | | | | | | | | | | | * Move `get_devices_with_keys_by_user` to `EndToEndKeyWorkerStore` this seems a better fit for it. This commit simply moves the existing code: no other changes at all. * Rename `get_devices_with_keys_by_user` to better reflect what it does. * get_device_stream_token abstract method To avoid referencing fields which are declared in the derived classes, make `get_device_stream_token` abstract, and define that in the classes which define `_device_list_id_gen`. | ||||
* | Rename `get_e2e_device_keys` to better reflect its purpose (#8205) | Richard van der Hoff | 2020-08-29 | 1 | -14/+6 |
| | | | | | | | | | | | ... and to show that it does something slightly different to `_get_e2e_device_keys_txn`. `include_all_devices` and `include_deleted_devices` were never used (and `include_deleted_devices` was broken, since that would cause `None`s in the result which were not handled in the loop below. Add some typing too. | ||||
* | Fix incorrect return signature | Andrew Morgan | 2020-08-28 | 1 | -1/+1 |
| | |||||
* | Convert `event_push_actions`, `registration`, and `roommember` datastores to ↵ | Patrick Cloke | 2020-08-28 | 3 | -160/+168 |
| | | | | async (#8197) | ||||
* | Only return devices with keys from `/federation/v1/user/devices/` (#8198) | Richard van der Hoff | 2020-08-28 | 1 | -3/+1 |
| | | | | | There's not much point in returning all the others, and some people have a silly number of devices. | ||||
* | Convert state and stream stores and related code to async (#8194) | Patrick Cloke | 2020-08-28 | 3 | -23/+28 |
| | |||||
* | Convert additional database code to async/await. (#8195) | Patrick Cloke | 2020-08-28 | 7 | -157/+221 |
| | |||||
* | Convert stats and related calls to async/await (#8192) | Patrick Cloke | 2020-08-27 | 2 | -48/+49 |
| | |||||
* | Convert simple_delete to async/await. (#8191) | Patrick Cloke | 2020-08-27 | 2 | -27/+30 |
| | |||||
* | Convert calls of async database methods to async (#8166) | Patrick Cloke | 2020-08-27 | 11 | -74/+103 |
| | |||||
* | Convert additional database methods to async (select list, search, ↵ | Patrick Cloke | 2020-08-27 | 3 | -13/+18 |
| | | | | insert_many, delete_*) (#8168) | ||||
* | Convert simple_update* and simple_select* to async (#8173) | Patrick Cloke | 2020-08-27 | 11 | -72/+99 |
| | |||||
* | Make SlavedIdTracker.advance have same interface as MultiWriterIDGenerator ↵ | Erik Johnston | 2020-08-26 | 1 | -2/+2 |
| | | | | (#8171) | ||||
* | Convert simple_select_one and simple_select_one_onecol to async (#8162) | Patrick Cloke | 2020-08-26 | 15 | -67/+86 |
| | |||||
* | Make StreamIdGen `get_next` and `get_next_mult` async (#8161) | Erik Johnston | 2020-08-25 | 12 | -44/+48 |
| | | | | This is mainly so that `StreamIdGenerator` and `MultiWriterIdGenerator` will have the same interface, allowing them to be used interchangeably. | ||||
* | Wording fixes to 'name' user admin api filter (#8163) | Andrew Morgan | 2020-08-25 | 1 | -1/+1 |
| | | | Some fixes to wording I noticed after merging #7377. | ||||
* | Search in columns 'name' and 'displayname' in the admin users endpoint (#7377) | Manuel Stahl | 2020-08-25 | 1 | -12/+19 |
| | | | | | * Search in columns 'name' and 'displayname' in the admin users endpoint Signed-off-by: Manuel Stahl <manuel.stahl@awesome-technologies.de> | ||||
* | Don't fail /submit_token requests on incorrect session ID if ↵ | Brendan Abolivier | 2020-08-24 | 1 | -6/+19 |
| | | | | | | | | | | | | | | | | | | | request_token_inhibit_3pid_errors is turned on (#7991) * Don't raise session_id errors on submit_token if request_token_inhibit_3pid_errors is set * Changelog * Also wait some time before responding to /requestToken * Incorporate review * Update synapse/storage/databases/main/registration.py Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> * Incorporate review Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | ||||
* | Micro-optimisations to get_auth_chain_ids (#8132) | Richard van der Hoff | 2020-08-21 | 1 | -23/+17 |
| | |||||
* | Allow denying or shadow banning registrations via the spam checker (#8034) | Patrick Cloke | 2020-08-20 | 2 | -1/+63 |
| | |||||
* | Be more tolerant of membership events in unknown rooms (#8110) | Richard van der Hoff | 2020-08-20 | 1 | -6/+25 |
| | | | | It turns out that not all out-of-band membership events are labelled as such, so we need to be more accepting here. | ||||
* | Use the JSON encoder without whitespace in more places. (#8124) | Patrick Cloke | 2020-08-20 | 4 | -16/+12 |
| | |||||
* | Add more types to synapse.storage.database. (#8127) | Patrick Cloke | 2020-08-20 | 1 | -3/+8 |
| | |||||
* | Do not assume calls to runInteraction return Deferreds. (#8133) | Patrick Cloke | 2020-08-20 | 3 | -22/+26 |
| | |||||
* | Remove `ChainedIdGenerator`. (#8123) | Erik Johnston | 2020-08-19 | 1 | -19/+17 |
| | | | | | It's just a thin wrapper around two ID gens to make `get_current_token` and `get_next` return tuples. This can easily be replaced by calling the appropriate methods on the underlying ID gens directly. | ||||
* | Be stricter about JSON that is accepted by Synapse (#8106) | Patrick Cloke | 2020-08-19 | 1 | -2/+14 |
| | |||||
* | Separate `get_current_token` into two. (#8113) | Erik Johnston | 2020-08-19 | 1 | -2/+2 |
| | | | | | | | | | | | | The function is used for two purposes: 1) for subscribers of streams to get a token they can use to get further updates with, and 2) for replication to track position of the writers of the stream. For streams with a single writer the two scenarios produce the same result, however the situation becomes complicated for streams with multiple writers. The current `MultiWriterIdGenerator` does not correctly handle the first case (which is not an issue as its only used for the `caches` stream which nothing subscribes to outside of replication). | ||||
* | Convert events worker database to async/await. (#8071) | Patrick Cloke | 2020-08-18 | 3 | -75/+88 |
| | |||||
* | Fix the return type of send_nonmember_events. (#8112) | Patrick Cloke | 2020-08-18 | 1 | -4/+15 |
| | |||||
* | Convert some of the general database methods to async (#8100) | Patrick Cloke | 2020-08-17 | 4 | -15/+15 |
| | |||||
* | Convert stream database to async/await. (#8074) | Patrick Cloke | 2020-08-17 | 2 | -188/+201 |
| | |||||
* | Add a shadow-banned flag to users. (#8092) | Patrick Cloke | 2020-08-14 | 2 | -1/+26 |
| | |||||
* | Convert pusher databases to async/await. (#8075) | Patrick Cloke | 2020-08-14 | 2 | -91/+84 |
| | |||||
* | Convert receipts and events databases to async/await. (#8076) | Patrick Cloke | 2020-08-14 | 3 | -82/+79 |
| | |||||
* | Remove some unused database functions. (#8085) | Patrick Cloke | 2020-08-14 | 6 | -244/+18 |
| | |||||
* | Convert misc database code to async (#8087) | Patrick Cloke | 2020-08-14 | 9 | -55/+33 |
| | |||||
* | Convert the roommember database to async/await. (#8070) | Patrick Cloke | 2020-08-12 | 2 | -240/+98 |
| | |||||
* | Convert devices database to async/await. (#8069) | Patrick Cloke | 2020-08-12 | 1 | -153/+180 |
| | |||||
* | Convert account data, device inbox, and censor events databases to ↵ | Patrick Cloke | 2020-08-12 | 3 | -86/+96 |
| | | | | async/await (#8063) | ||||
* | Convert appservice, group server, profile and more databases to async (#8066) | Patrick Cloke | 2020-08-12 | 7 | -104/+78 |
| | |||||
* | Convert tags and metrics databases to async/await (#8062) | Patrick Cloke | 2020-08-11 | 2 | -64/+59 |
| | |||||
* | Converts event_federation and registration databases to async/await (#8061) | Patrick Cloke | 2020-08-11 | 2 | -153/+118 |
| | |||||
* | Implement new experimental push rules (#7997) | Brendan Abolivier | 2020-08-10 | 1 | -4/+12 |
|\ | | | | | With an undocumented configuration setting to enable them for specific users. | ||||
| * | Merge branch 'develop' of github.com:matrix-org/synapse into ↵ | Brendan Abolivier | 2020-08-06 | 1 | -4/+12 |
| | | | | | | | | babolivier/new_push_rules | ||||
* | | Convert directory, e2e_room_keys, end_to_end_keys, monthly_active_users ↵ | Patrick Cloke | 2020-08-07 | 5 | -102/+95 |
| | | | | | | | | database to async (#8042) | ||||
* | | Convert additional database stores to async/await (#8045) | Patrick Cloke | 2020-08-07 | 4 | -150/+104 |
| | | |||||
* | | Reduce unnecessary whitespace in JSON. (#7372) | David Vo | 2020-08-07 | 9 | -45/+38 |
| | | |||||
* | | Revert #7736 (#8039) | Brendan Abolivier | 2020-08-06 | 4 | -151/+2 |
| | | |||||
* | | Convert synapse.api to async/await (#8031) | Patrick Cloke | 2020-08-06 | 1 | -3/+2 |
|/ | |||||
* | Rename database classes to make some sense (#8033) | Erik Johnston | 2020-08-05 | 261 | -0/+34416 |