summary refs log tree commit diff
path: root/synapse/storage/databases (follow)
Commit message (Expand)AuthorAgeFilesLines
* Regenerate exact thumbnails if missingErik Johnston2021-02-181-9/+9
* Add back the guard against the user directory stream position not existing. (...Patrick Cloke2021-02-181-1/+7
* Add the shadow-banning status to the display user admin API. (#9400)Dirk Klimpel2021-02-172-3/+6
* Add type hints to groups code. (#9393)Patrick Cloke2021-02-171-2/+7
* Update black, and run auto formatting over the codebase (#9381)Eric Eastwood2021-02-1631-169/+276
* Fix some typos.Patrick Cloke2021-02-1210-16/+16
* Remove conflicting sqlite tables that are "reserved" (shadow fts4 tables) (#9...Eric Eastwood2021-02-101-10/+0
* Merge branch 'social_login' into developRichard van der Hoff2021-02-011-20/+20
|\
| * Fix SSO on workers (#9271)Richard van der Hoff2021-02-011-20/+20
| * Merge tag 'v1.26.0rc2' into social_loginRichard van der Hoff2021-01-253-3/+21
| |\
* | | Add phone home stats for encrypted messages. (#9283)Jan Christian Grünhage2021-02-011-0/+56
* | | Add type hints to E2E handler. (#9232)Patrick Cloke2021-01-281-2/+2
* | | Add type hints to various handlers. (#9223)Patrick Cloke2021-01-263-11/+16
* | | Fix get forward extremities queryJason Robinson2021-01-261-1/+1
* | | Merge branch 'develop' into jaywink/admin-forward-extremitiesJason Robinson2021-01-262-1/+32
|\ \ \
| * | | Don't error if deleting a non-existent pusher. (#9121)Patrick Cloke2021-01-251-1/+3
| * | | Add an admin API for shadow-banning users. (#9209)Patrick Cloke2021-01-251-0/+29
* | | | Make natural join inner joinJason Robinson2021-01-261-2/+2
* | | | Merge branch 'develop' into jaywink/admin-forward-extremitiesJason Robinson2021-01-2335-349/+1871
|\| | |
| * | | Speed up chain cover calculation (#9176)Erik Johnston2021-01-211-55/+144
| * | | Merge remote-tracking branch 'origin/release-v1.26.0' into developErik Johnston2021-01-211-0/+18
| |\ \ \ | | | |/ | | |/|
| | * | Add schema update to fix existing DBs affected by #9193 (#9195)Erik Johnston2021-01-211-0/+18
| * | | Merge remote-tracking branch 'origin/release-v1.26.0' into developErik Johnston2021-01-212-3/+3
| |\| |
| | * | Fix receipts or account data not being sent down sync (#9193)Erik Johnston2021-01-212-3/+3
| * | | Use execute_batch in more places (#9188)Erik Johnston2021-01-2110-31/+19
| | |/ | |/|
| * | Use execute_batch instead of executemany in places (#9181)Erik Johnston2021-01-211-9/+9
| |/
| * Support icons for Identity Providers (#9154)Richard van der Hoff2021-01-201-4/+2
| * Allow moving account data and receipts streams off master (#9104)Erik Johnston2021-01-189-124/+267
| * Make chain cover index bg update go faster (#9124)Erik Johnston2021-01-151-150/+179
| * Ensure we store pusher data as text (#9117)Richard van der Hoff2021-01-151-3/+2
| * Add type hints to media rest resources. (#9093)Patrick Cloke2021-01-151-1/+2
| * Fix perf of get_cross_signing_keys (#9116)Erik Johnston2021-01-141-13/+28
| * Fix chain cover background update to work with split out event persisters (#9...Erik Johnston2021-01-142-25/+20
| * Fix get destinations to catch up query. (#9114)Erik Johnston2021-01-141-13/+11
| * Add background update for add chain cover index (#9029)Erik Johnston2021-01-143-16/+243
| * Register the /devices endpoint on workers. (#9092)Patrick Cloke2021-01-131-11/+30
| * Remove user's avatar URL and displayname when deactivated. (#8932)Dirk Klimpel2021-01-121-1/+1
| * Move more encryption endpoints off master (#9068)Erik Johnston2021-01-111-44/+44
| * Use a chain cover index to efficiently calculate auth chain difference (#8868)Erik Johnston2021-01-115-18/+821
| * Remove old tables after schema version bump (#9055)Erik Johnston2021-01-114-56/+36
| * Ensure rejected events get added to some metadata tables (#9016)Erik Johnston2021-01-113-24/+166
| * Drop last_used column from access_tokens (#9025)Jerin J Titus2021-01-112-0/+78
* | Add depth and received_ts to forward_extremities admin API responseJason Robinson2021-01-231-1/+2
* | Remove trailing whitespace to appease the linterJason Robinson2021-01-111-2/+2
* | Simplify delete_forward_extremities_for_room_txn SQLJason Robinson2021-01-111-10/+4
* | Address pr feedbackJason Robinson2021-01-112-26/+40
* | Don't try to use f-stringsJason Robinson2021-01-111-1/+1
* | Merge branch 'develop' into jaywink/admin-forward-extremitiesJason Robinson2021-01-091-31/+23
|\|
| * Fix error handling during insertion of client IPs (#9051)Erik Johnston2021-01-081-31/+23
* | Implement clearing cache after deleting forward extremitiesJason Robinson2021-01-091-8/+33
* | Add Rooms admin forward extremities DELETE endpointJason Robinson2021-01-081-1/+48
* | Add forward extremities endpoint to rooms admin APIJason Robinson2021-01-072-0/+22
|/
* Allow running sendToDevice on workers (#9044)Erik Johnston2021-01-074-65/+158
* Some cleanups to device inbox store. (#9041)Erik Johnston2021-01-071-49/+58
* Improve the performance of calculating ignored users in large rooms (#9024)Patrick Cloke2021-01-072-29/+174
* Add type hints to the crypto module. (#8999)Patrick Cloke2021-01-041-5/+5
* Add type hints to admin and room list handlers. (#8973)Patrick Cloke2020-12-291-2/+5
* Drop the unused local_invites table. (#8979)Patrick Cloke2020-12-291-0/+18
* Allow re-using a UI auth validation for a period of time (#8970)Patrick Cloke2020-12-182-0/+56
* Use the simple dictionary in full text search for the user directory (#8959)Brendan Abolivier2020-12-171-12/+12
* Make search statement in List Room and User Admin API case-insensitive (#8931)Dirk Klimpel2020-12-172-5/+6
* Convert internal pusher dicts to attrs classes. (#8940)Patrick Cloke2020-12-162-39/+57
* Do not assume that the contents dictionary includes history_visibility. (#8945)Patrick Cloke2020-12-161-2/+5
* Fix handling of stream tokens for push. (#8943)Patrick Cloke2020-12-151-10/+0
* Add number of local devices to Room Details Admin API (#8886)Dirk Klimpel2020-12-111-0/+32
* Pass room_id to get_auth_chain_difference (#8879)Erik Johnston2020-12-041-1/+3
* UIA: offer only available auth flowsRichard van der Hoff2020-12-022-0/+42
* Add missing `ordering` to background updates (#8850)Richard van der Hoff2020-12-014-12/+12
* Drop (almost) unused index on event_json (#8845)Richard van der Hoff2020-11-302-1/+20
* Speed up remote invite rejection database call (#8815)Andrew Morgan2020-11-251-1/+33
* Improve appservice handler to send only the most recent read receipts when no...Will Hunt2020-11-181-1/+6
* Add admin API for logging in as a user (#8617)Erik Johnston2020-11-171-0/+2
* Generalise _maybe_store_room_on_invite (#8754)Andrew Morgan2020-11-131-4/+6
* Cache event ID to auth event IDs lookups (#8752)Erik Johnston2020-11-131-12/+70
* Add an admin API for users' media statistics (#8700)Dirk Klimpel2020-11-051-0/+127
* Improve start time by adding index to e2e_cross_signing_keys (#8694)Erik Johnston2020-11-022-2/+33
* Fix error handling around when completing an AS transaction (#8693)Brendan Abolivier2020-10-301-1/+1
* Fix race for concurrent downloads of remote media. (#8682)Erik Johnston2020-10-301-0/+27
* Fix optional parameter in stripped state storage method (#8688)Andrew Morgan2020-10-301-1/+1
* Add ability for access tokens to belong to one user but grant access to anoth...Erik Johnston2020-10-292-9/+56
* Merge pull request #8678 from matrix-org/rav/fix_frozen_eventsRichard van der Hoff2020-10-282-9/+7
|\
| * Remove frozendict_json_encoder and support frozendicts everywhereRichard van der Hoff2020-10-282-9/+7
* | Add type hints to application services. (#8655)Patrick Cloke2020-10-281-38/+60
* | Don't pull event from DB when handling replication traffic. (#8669)Erik Johnston2020-10-281-2/+6
* | Abstract code for stripping room state into a separate method (#8671)Andrew Morgan2020-10-271-1/+53
* | Add admin API to list users' local media (#8647)Dirk Klimpel2020-10-273-0/+60
* | Add type hints for account validity handler (#8620)Patrick Cloke2020-10-262-4/+4
* | Split admin API for reported events into a detail and a list view (#8539)Dirk Klimpel2020-10-261-17/+87
* | Add an admin api to delete local media. (#8519)Dirk Klimpel2020-10-261-0/+53
* | Merge branch 'release-v1.22.0' into developErik Johnston2020-10-261-4/+5
|\|
| * Fix get|set_type_stream_id_for_appservice store functions (#8648)Will Hunt2020-10-261-7/+22
| * Fix user_daily_visits to not have duplicate rows for UA. (#8654)Erik Johnston2020-10-261-4/+5
* | Fix get|set_type_stream_id_for_appservice store functions (#8648)Will Hunt2020-10-261-7/+22
* | Type hints for RegistrationStore (#8615)Erik Johnston2020-10-222-74/+83
|/
* Add type hints to profile and base handlers. (#8609)Patrick Cloke2020-10-211-3/+3
* Consistently use wrap_as_background_task in more places (#8599)Patrick Cloke2020-10-202-14/+13
* Move schema file for as_device_stream (#8590)Will Hunt2020-10-201-3/+2
* Drop unused `device_max_stream_id` table (#8589)Vasilis Gerakaris2020-10-191-0/+1
* Add `DeferredCache.get_immediate` method (#8568)Richard van der Hoff2020-10-193-12/+3
* Replace DeferredCache with LruCache where possible (#8563)Richard van der Hoff2020-10-194-17/+14
* Clean-up old transaction IDs on the background worker. (#8544)Patrick Cloke2020-10-161-1/+1
* Send some ephemeral events to appservices (#8437)Will Hunt2020-10-153-9/+130
* Merge pull request #8548 from matrix-org/rav/deferred_cacheRichard van der Hoff2020-10-153-6/+8
|\
| * move DeferredCache into its own moduleRichard van der Hoff2020-10-143-3/+5
| * Rename Cache->DeferredCacheRichard van der Hoff2020-10-143-6/+6
* | Include user agent in user daily visits table (#8503)Neil Johnson2020-10-152-3/+26
* | Use autocommit mode for single statement DB functions. (#8542)Erik Johnston2020-10-143-62/+64
* | Make sure a retention policy is a state event (#8527)Brendan Abolivier2020-10-141-0/+4
|/
* Move additional tasks to the background worker, part 4 (#8513)Patrick Cloke2020-10-133-152/+150
* Fix message duplication if something goes wrong after persisting the event (#...Erik Johnston2020-10-134-2/+158
* Only send RDATA for instance local events. (#8496)Erik Johnston2020-10-093-19/+42
* Move additional tasks to the background worker, part 3 (#8489)Patrick Cloke2020-10-096-271/+272
* Add type hints to some handlers (#8505)Patrick Cloke2020-10-091-1/+3
* Invalidate the cache when an olm fallback key is uploaded (#8501)Hubert Chathi2020-10-081-0/+4
* Move additional tasks to the background worker (#8458)Patrick Cloke2020-10-075-175/+179
* Use vector clocks for room stream tokens. (#8439)Erik Johnston2020-10-072-37/+268
* Add typing information to the device handler. (#8407)Patrick Cloke2020-10-071-3/+3
* Add support for MSC2697: Dehydrated devices (#8380)Hubert Chathi2020-10-074-4/+133
* Add support for MSC2732: olm fallback keys (#8312)Hubert Chathi2020-10-062-1/+123
* Remove stream ordering from Metadata dict (#8452)Richard van der Hoff2020-10-053-23/+20
* Do not assume that account data is of the correct form. (#8454)Patrick Cloke2020-10-051-2/+7
* Add logging on startup/shutdown (#8448)Erik Johnston2020-10-0215-60/+30
* Speed up unit tests when using PostgreSQL (#8450)Erik Johnston2020-10-021-1/+12
* Allow background tasks to be run on a separate worker. (#8369)Patrick Cloke2020-10-025-259/+266
* Enable mypy checking for unreachable code and fix instances. (#8432)Patrick Cloke2020-10-013-17/+9
* Make token serializing/deserializing async (#8427)Erik Johnston2020-09-301-4/+4
* Add an improved "forward extremities" metricRichard van der Hoff2020-09-301-2/+25
* Rewrite BucketCollectorRichard van der Hoff2020-09-301-16/+10
* Various clean ups to room stream tokens. (#8423)Erik Johnston2020-09-291-17/+21
* Mypy fixes for `synapse.handlers.federation` (#8422)Richard van der Hoff2020-09-291-2/+2
* Filter out appservices from mau count (#8404)Will Hunt2020-09-291-1/+8
* Add checks for postgres sequence consistency (#8402)Erik Johnston2020-09-282-0/+6
* typoMatthew Hodgson2020-09-281-1/+1
* Allow existing users to login via OpenID Connect. (#8345)Tdxdxoz2020-09-251-2/+2
* Fix schema delta for servers that have not backfilled (#8396)Erik Johnston2020-09-251-1/+3
* Fix MultiWriteIdGenerator's handling of restarts. (#8374)Erik Johnston2020-09-243-1/+33
* Add EventStreamPosition type (#8388)Erik Johnston2020-09-241-5/+9
* Fix bug which caused failure on join with malformed membership events (#8385)Richard van der Hoff2020-09-231-3/+7
* Use `async with` for ID gens (#8383)Erik Johnston2020-09-2312-26/+26
* Don't push if an user account has expired (#8353)Mathieu Velten2020-09-231-0/+14
* Fix missing null character check on guest_access room stateAndrew Morgan2020-09-221-0/+2
* Fixed a bug with reactivating users with the admin API (#8362)Dirk Klimpel2020-09-221-1/+1
* Admin API for reported events (#8217)Dirk Klimpel2020-09-221-0/+95
* Merge tag 'v1.20.0rc5' into developPatrick Cloke2020-09-181-8/+5
|\
| * Intelligently select extremities used in backfill. (#8349)Erik Johnston2020-09-181-8/+5
* | Catch-up after Federation Outage (bonus): Catch-up on Synapse Startup (#8322)reivilibre2020-09-181-2/+64
* | Simplify super() calls to Python 3 syntax. (#8344)Patrick Cloke2020-09-1825-45/+43
* | Remove obsolete __future__ imports (#8337)Jonathan de Jong2020-09-171-2/+0
* | Switch metaclass initialization to python 3-compatible syntax (#8326)Jonathan de Jong2020-09-164-17/+10
* | Catch-up after Federation Outage (split, 4): catch-up loop (#8272)reivilibre2020-09-151-1/+42
* | Use slots in attrs classes where possible (#8296)Patrick Cloke2020-09-143-3/+3
* | Add the topic and avatar to the room details admin API (#8305)Tulir Asokan2020-09-141-1/+2
* | Add experimental support for sharding event persister. Again. (#8294)Erik Johnston2020-09-146-25/+99
* | Make `StreamToken.room_key` be a `RoomStreamToken` instance. (#8281)Erik Johnston2020-09-112-49/+47
* | Merge branch 'release-v1.20.0' into developRichard van der Hoff2020-09-101-2/+3
|\|
| * Fix /notifications and pushers misbehaving because of unread counts (#8280)Brendan Abolivier2020-09-081-2/+3
* | Don't remember `enabled` of deleted push rules and properly return 404 for mi...reivilibre2020-09-092-11/+148
* | Include method in thumbnail media name (#7124)DeepBlueV7.X2020-09-083-0/+134
* | Add types to StreamToken and RoomStreamToken (#8279)Erik Johnston2020-09-082-14/+14
* | Rename 'populate_stats_process_rooms_2' background job back to 'populate_stat...Andrew Morgan2020-09-082-30/+28
* | Merge remote-tracking branch 'origin/release-v1.20.0' into developRichard van der Hoff2020-09-083-18/+36
|\|
| * Avoid table-scanning users at startup (#8271)Richard van der Hoff2020-09-071-11/+14
| * Fix unread count failing on NULL values (#8270)Brendan Abolivier2020-09-071-1/+6
| * Add more logging to debug slow startup (#8264)Richard van der Hoff2020-09-072-7/+17
* | Merge branch 'release-v1.20.0' into developRichard van der Hoff2020-09-063-37/+20
|\|
| * Add cross-signing sigs to the `keys` object (#8234)Richard van der Hoff2020-09-042-34/+17
| * Unread counts fixes (#8254)Brendan Abolivier2020-09-041-3/+3
* | In light of #8255, use BIGINTs for destination_rooms (#8256)reivilibre2020-09-041-1/+1
* | Catch up after Federation Outage (split, 2): Track last successful stream ord...reivilibre2020-09-042-0/+59
* | Catch-up after Federation Outage (split, 1) (#8230)reivilibre2020-09-043-3/+107
|/
* Stop sub-classing object (#8249)Patrick Cloke2020-09-042-2/+2
* Revert "Add experimental support for sharding event persister. (#8170)" (#8242)Brendan Abolivier2020-09-046-94/+22
* Split fetching device keys and signatures into two transactions (#8233)Richard van der Hoff2020-09-031-44/+65
* Fix typing for SyncHandler (#8237)Erik Johnston2020-09-032-5/+5
* wrap `_get_e2e_device_keys_and_signatures_txn` in a non-txn method (#8231)Richard van der Hoff2020-09-032-17/+39
* Add StreamStore to mypy (#8232)Erik Johnston2020-09-021-18/+28
* Re-implement unread counts (again) (#8059)Brendan Abolivier2020-09-024-70/+205
* Refactor `_get_e2e_device_keys_for_federation_query_txn` (#8225)Richard van der Hoff2020-09-021-11/+6
* Add experimental support for sharding event persister. (#8170)Erik Johnston2020-09-026-22/+94
* Add /user/{user_id}/shared_rooms/ api (#7785)Will Hunt2020-09-021-1/+43
* Do not try to store invalid data in the stats table (#8226)Patrick Cloke2020-09-021-8/+26
* Make _get_e2e_device_keys_and_signatures_txn return an attrs (#8224)Richard van der Hoff2020-09-022-20/+40
* Fix errors when updating the user directory with invalid data (#8223)Patrick Cloke2020-09-011-0/+5
* Convert additional databases to async/await part 3 (#8201)Patrick Cloke2020-09-015-85/+118
* Rename `_get_e2e_device_keys_txn` (#8222)Richard van der Hoff2020-09-012-6/+8
* Convert additional databases to async/await (#8199)Patrick Cloke2020-09-016-137/+146
* Convert additional databases to async/await part 2 (#8200)Patrick Cloke2020-09-0110-50/+90
* Move and rename `get_devices_with_keys_by_user` (#8204)Richard van der Hoff2020-09-013-48/+60
* Rename `get_e2e_device_keys` to better reflect its purpose (#8205)Richard van der Hoff2020-08-291-14/+6
* Fix incorrect return signatureAndrew Morgan2020-08-281-1/+1
* Convert `event_push_actions`, `registration`, and `roommember` datastores to ...Patrick Cloke2020-08-283-160/+168
* Only return devices with keys from `/federation/v1/user/devices/` (#8198)Richard van der Hoff2020-08-281-3/+1
* Convert state and stream stores and related code to async (#8194)Patrick Cloke2020-08-284-36/+41
* Convert additional database code to async/await. (#8195)Patrick Cloke2020-08-287-157/+221
* Convert stats and related calls to async/await (#8192)Patrick Cloke2020-08-272-48/+49
* Convert simple_delete to async/await. (#8191)Patrick Cloke2020-08-272-27/+30
* Convert calls of async database methods to async (#8166)Patrick Cloke2020-08-2711-74/+103
* Convert additional database methods to async (select list, search, insert_man...Patrick Cloke2020-08-273-13/+18
* Convert simple_update* and simple_select* to async (#8173)Patrick Cloke2020-08-2711-72/+99
* Make SlavedIdTracker.advance have same interface as MultiWriterIDGenerator (#...Erik Johnston2020-08-261-2/+2
* Convert simple_select_one and simple_select_one_onecol to async (#8162)Patrick Cloke2020-08-2615-67/+86
* Make StreamIdGen `get_next` and `get_next_mult` async (#8161)Erik Johnston2020-08-2512-44/+48
* Wording fixes to 'name' user admin api filter (#8163)Andrew Morgan2020-08-251-1/+1
* Search in columns 'name' and 'displayname' in the admin users endpoint (#7377)Manuel Stahl2020-08-251-12/+19
* Don't fail /submit_token requests on incorrect session ID if request_token_in...Brendan Abolivier2020-08-241-6/+19
* Micro-optimisations to get_auth_chain_ids (#8132)Richard van der Hoff2020-08-211-23/+17
* Allow denying or shadow banning registrations via the spam checker (#8034)Patrick Cloke2020-08-202-1/+63
* Be more tolerant of membership events in unknown rooms (#8110)Richard van der Hoff2020-08-201-6/+25
* Use the JSON encoder without whitespace in more places. (#8124)Patrick Cloke2020-08-204-16/+12
* Add more types to synapse.storage.database. (#8127)Patrick Cloke2020-08-201-3/+8
* Do not assume calls to runInteraction return Deferreds. (#8133)Patrick Cloke2020-08-203-22/+26
* Close the database connection we create during startup (#8131)Richard van der Hoff2020-08-191-1/+10
* Remove `ChainedIdGenerator`. (#8123)Erik Johnston2020-08-191-19/+17
* Be stricter about JSON that is accepted by Synapse (#8106)Patrick Cloke2020-08-191-2/+14
* Separate `get_current_token` into two. (#8113)Erik Johnston2020-08-191-2/+2
* Convert events worker database to async/await. (#8071)Patrick Cloke2020-08-183-75/+88
* Fix the return type of send_nonmember_events. (#8112)Patrick Cloke2020-08-181-4/+15
* Convert some of the general database methods to async (#8100)Patrick Cloke2020-08-174-15/+15
* Convert stream database to async/await. (#8074)Patrick Cloke2020-08-172-188/+201
* Add a shadow-banned flag to users. (#8092)Patrick Cloke2020-08-142-1/+26
* Convert pusher databases to async/await. (#8075)Patrick Cloke2020-08-142-91/+84
* Convert receipts and events databases to async/await. (#8076)Patrick Cloke2020-08-143-82/+79
* Remove some unused database functions. (#8085)Patrick Cloke2020-08-146-244/+18
* Convert misc database code to async (#8087)Patrick Cloke2020-08-149-55/+33
* Convert the roommember database to async/await. (#8070)Patrick Cloke2020-08-122-240/+98
* Convert devices database to async/await. (#8069)Patrick Cloke2020-08-121-153/+180
* Convert account data, device inbox, and censor events databases to async/awai...Patrick Cloke2020-08-123-86/+96
* Convert appservice, group server, profile and more databases to async (#8066)Patrick Cloke2020-08-127-104/+78
* Merge pull request #8060 from matrix-org/erikj/type_serverErik Johnston2020-08-111-12/+16
|\
| * Change HomeServer definition to work with typing.Erik Johnston2020-08-111-12/+16
* | Convert tags and metrics databases to async/await (#8062)Patrick Cloke2020-08-112-64/+59
* | Converts event_federation and registration databases to async/await (#8061)Patrick Cloke2020-08-113-164/+125
|/
* Implement new experimental push rules (#7997)Brendan Abolivier2020-08-101-4/+12
|\
| * Merge branch 'develop' of github.com:matrix-org/synapse into babolivier/new_p...Brendan Abolivier2020-08-061-4/+12
* | Convert directory, e2e_room_keys, end_to_end_keys, monthly_active_users datab...Patrick Cloke2020-08-075-102/+95
* | Convert additional database stores to async/await (#8045)Patrick Cloke2020-08-074-150/+104
* | Reduce unnecessary whitespace in JSON. (#7372)David Vo2020-08-079-45/+38
* | Revert #7736 (#8039)Brendan Abolivier2020-08-064-151/+2
* | Convert synapse.api to async/await (#8031)Patrick Cloke2020-08-061-3/+2
|/
* Rename database classes to make some sense (#8033)Erik Johnston2020-08-05275-0/+35780