Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Only run one background update at a time | Richard van der Hoff | 2020-03-31 | 1 | -0/+19 |
| | |||||
* | Move schema delta files to the correct data store. | Erik Johnston | 2019-10-24 | 2 | -73/+0 |
| | | | | They were put in the global schema delta directory due to a bad merge. | ||||
* | Merge branch 'develop' of github.com:matrix-org/synapse into ↵ | Erik Johnston | 2019-10-22 | 2 | -0/+73 |
|\ | | | | | | | erikj/refactor_stores | ||||
| * | Merge branch 'develop' into uhoreg/e2e_cross-signing_merged | Hubert Chathi | 2019-10-18 | 9 | -0/+221 |
| |\ | |||||
| * \ | Merge branch 'develop' into cross-signing_keys | Hubert Chathi | 2019-09-04 | 1 | -0/+152 |
| |\ \ | |||||
| * \ \ | Merge branch 'uhoreg/e2e_cross-signing_merged' into cross-signing_keys | Hubert Chathi | 2019-08-28 | 4 | -0/+75 |
| |\ \ \ | |||||
| | * \ \ | Merge branch 'develop' into uhoreg/e2e_cross-signing_merged | Hubert Chathi | 2019-08-28 | 4 | -0/+75 |
| | |\ \ \ | |||||
| | * | | | | Cross-signing [1/4] -- hidden devices (#5759) | Hubert Chathi | 2019-08-12 | 1 | -0/+18 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * allow devices to be marked as "hidden" This is a prerequisite for cross-signing, as it allows us to create other things that live within the device namespace, so they can be used for signatures. | ||||
| * | | | | | use stream ID generator instead of timestamp | Hubert Chathi | 2019-08-28 | 1 | -3/+3 |
| | | | | | | |||||
| * | | | | | make changes from PR review | Hubert Chathi | 2019-08-01 | 2 | -41/+55 |
| | | | | | | |||||
| * | | | | | Merge branch 'cross-signing_hidden' into cross-signing_keys | Hubert Chathi | 2019-08-01 | 3 | -3/+42 |
| |\ \ \ \ \ | |||||
| | * | | | | | Merge branch 'develop' into cross-signing_hidden | Hubert Chathi | 2019-07-30 | 3 | -3/+42 |
| | |\| | | | | |||||
| * | | | | | | Merge branch 'cross-signing_hidden' into cross-signing_keys | Hubert Chathi | 2019-07-30 | 1 | -1/+1 |
| |\| | | | | | |||||
| | * | | | | | apply changes from PR review | Hubert Chathi | 2019-07-30 | 1 | -1/+1 |
| | | | | | | | |||||
| * | | | | | | allow uploading keys for cross-signing | Hubert Chathi | 2019-07-25 | 1 | -0/+41 |
| |/ / / / / | |||||
| * | | | | | allow devices to be marked as "hidden" | Hubert Chathi | 2019-07-24 | 1 | -0/+18 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a prerequisite for cross-signing, as it allows us to create other things that live within the device namespace, so they can be used for signatures. | ||||
* | | | | | | Move storage classes into a main "data store". | Erik Johnston | 2019-10-21 | 189 | -8109/+10 |
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | This is in preparation for having multiple data stores that offer different functionality, e.g. splitting out state or event storage. | ||||
* | | | | | Merge branch 'develop' of github.com:matrix-org/synapse into ↵ | Erik Johnston | 2019-10-10 | 3 | -0/+88 |
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | erikj/disable_sql_bytes | ||||
| * | | | | | Rewrite the user_filter migration again (#6184) | Richard van der Hoff | 2019-10-10 | 1 | -26/+32 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | you can't plausibly ALTER TABLE in sqlite, so we create the new table with the right schema to start with. | ||||
| * | | | | | Merge pull request #6185 from matrix-org/erikj/fix_censored_evnets | Erik Johnston | 2019-10-09 | 1 | -0/+26 |
| |\ \ \ \ \ | | | | | | | | | | | | | | | Fix inserting bytes as text in `censor_redactions` | ||||
| * | | | | | | Fix unique_user_filter_index schema update | Brendan Abolivier | 2019-10-07 | 1 | -2/+2 |
| | | | | | | | |||||
| * | | | | | | Update `user_filters` table to have a unique index, and non-null columns (#1172) | Alexander Maznev | 2019-10-04 | 1 | -0/+46 |
| | | | | | | | |||||
| * | | | | | | Land improved room list based on room stats (#6019) | Erik Johnston | 2019-10-02 | 1 | -0/+16 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use room_stats and room_state for room directory search | ||||
| * | | | | | | Merge branch 'release-v1.4.0' of github.com:matrix-org/synapse into develop | Erik Johnston | 2019-10-02 | 2 | -0/+38 |
| |\ \ \ \ \ \ | |||||
| * | | | | | | | Drop unused tables (#6115) | Richard van der Hoff | 2019-09-30 | 1 | -0/+20 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These tables are unused since #5893 (as amended by #6047), so we can now drop them. Fixes #6048. | ||||
* | | | | | | | | Do the update as a background index | Erik Johnston | 2019-10-09 | 1 | -9/+8 |
| |_|/ / / / / |/| | | | | | | |||||
* | | | | | | | Fix existing hex encoded json values in DB | Erik Johnston | 2019-10-08 | 1 | -0/+26 |
| |/ / / / / |/| | | | | | |||||
* | | | | | | Fix errors storing large retry intervals. | Erik Johnston | 2019-10-02 | 1 | -0/+18 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have set the max retry interval to a value larger than a postgres or sqlite int can hold, which caused exceptions when updating the destinations table. To fix postgres we need to change the column to a bigint, and for sqlite we lower the max interval to 2**62 (which is still incredibly long). | ||||
* | | | | | | Add received_ts column to redactions. | Erik Johnston | 2019-10-01 | 1 | -0/+20 |
|/ / / / / | | | | | | | | | | | | | | | | | | | | | This will allow us to efficiently search for uncensored redactions in the DB before a given time. | ||||
* | | | | | Merge branch 'develop' of github.com:matrix-org/synapse into ↵ | Erik Johnston | 2019-09-25 | 1 | -0/+24 |
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | erikj/cleanup_user_ips | ||||
| * \ \ \ \ | Merge remote-tracking branch 'origin/develop' into rav/saml_mapping_work | Richard van der Hoff | 2019-09-24 | 1 | -20/+0 |
| |\ \ \ \ \ | |||||
| * \ \ \ \ \ | Merge branch 'develop' into rav/saml_mapping_work | Richard van der Hoff | 2019-09-19 | 7 | -0/+269 |
| |\ \ \ \ \ \ | |||||
| * | | | | | | | Record mappings from saml users in an external table | Richard van der Hoff | 2019-09-13 | 1 | -0/+24 |
| | |_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We want to assign unique mxids to saml users based on an incrementing suffix. For that to work, we need to record the allocated mxid in a separate table. | ||||
* | | | | | | | Add BG update to populate devices last seen info | Erik Johnston | 2019-09-23 | 1 | -0/+3 |
| | | | | | | | |||||
* | | | | | | | Add last seen info to devices table. | Erik Johnston | 2019-09-23 | 1 | -0/+21 |
| |_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | This allows us to purge old user_ips entries without having to preserve the latest last seen info for active devices. | ||||
* | | | | | | Undo the deletion of some tables (#6047) | Richard van der Hoff | 2019-09-19 | 1 | -20/+0 |
| |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a partial revert of #5893. The problem is that if we drop these tables in the same release as removing the code that writes to them, it prevents users users from being able to roll back to a previous release. So let's leave the tables in place for now, and remember to drop them in a subsequent release. (Note that these tables haven't been *read* for *years*, so any missing rows resulting from a temporary upgrade to vNext won't cause a problem.) | ||||
* | | | | | Add 'failure_ts' column to 'destinations' table (#6016) | Richard van der Hoff | 2019-09-17 | 1 | -0/+25 |
| | | | | | | | | | | | | | | | | | | | | Track the time that a server started failing at, for general analysis purposes. | ||||
* | | | | | Merge branch 'develop' of github.com:matrix-org/synapse into ↵ | Erik Johnston | 2019-09-05 | 1 | -0/+152 |
|\ \ \ \ \ | | |_|_|/ | |/| | | | | | | | | erikj/censor_redactions | ||||
| * | | | | Fix and refactor room and user stats (#5971) | Erik Johnston | 2019-09-04 | 1 | -0/+152 |
| | |_|/ | |/| | | | | | | Previously the stats were not being correctly populated. | ||||
* / | | | Censor redactions in DB after a month | Erik Johnston | 2019-08-30 | 1 | -0/+17 |
|/ / / | |||||
* | | | Propagate opentracing contexts through EDUs (#5852) | Jorik Schellekens | 2019-08-22 | 1 | -0/+20 |
| | | | | | | | | | | | | | | | Propagate opentracing contexts through EDUs Co-Authored-By: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | ||||
* | | | Add missing index on users_in_public_rooms. (#5894) | Richard van der Hoff | 2019-08-22 | 1 | -0/+17 |
| | | | |||||
* | | | Drop some unused tables. (#5893) | Richard van der Hoff | 2019-08-21 | 1 | -0/+20 |
| | | | | | | | | | These tables are never used, so we may as well drop them. | ||||
* | | | add the version field to the index for e2e_room_keys | Hubert Chathi | 2019-08-14 | 1 | -0/+18 |
|/ / | |||||
* | | Don't recreate column | Erik Johnston | 2019-07-30 | 2 | -1/+22 |
| | | |||||
* | | Fix current_state_events membership background update. | Erik Johnston | 2019-07-30 | 1 | -0/+0 |
| | | | | | | | | | | | | Turns out not all rooms are in `rooms`, so lets fetch the room list from `current_state_events`. We move the delta file to force it to be run again. | ||||
* | | Remove lost comment | Erik Johnston | 2019-07-29 | 1 | -7/+0 |
| | | |||||
* | | Add function to get all forgotten rooms for user | Erik Johnston | 2019-07-24 | 1 | -0/+25 |
|/ | | | | | | This will allow us to efficiently filter out rooms that have been forgotten in other queries without having to join against the `room_memberships` table. | ||||
* | Update comment for new column | Erik Johnston | 2019-07-19 | 1 | -0/+3 |
| | |||||
* | Add background update for current_state_events.membership column | Erik Johnston | 2019-07-18 | 1 | -0/+3 |
| | |||||
* | Add membership column to current_state_events table. | Erik Johnston | 2019-07-18 | 1 | -0/+19 |
| | | | | | It turns out that doing a join is surprisingly expensive for the DB to do when room_membership table is larger than the disk cache. | ||||
* | Implement access token expiry (#5660) | Richard van der Hoff | 2019-07-12 | 1 | -0/+18 |
| | | | | Record how long an access token is valid for, and raise a soft-logout once it expires. | ||||
* | Run Black. (#5482) | Amber Brown | 2019-06-20 | 7 | -38/+58 |
| | |||||
* | Track deactivated accounts in the database (#5378) | Brendan Abolivier | 2019-06-14 | 1 | -0/+19 |
| | |||||
* | Merge pull request #5320 from matrix-org/hawkowl/full-schema-v1 | Erik Johnston | 2019-06-06 | 4 | -0/+2338 |
|\ | | | | | Make a full SQL schema | ||||
| * | fix maybe | Amber H. Brown | 2019-06-07 | 1 | -20/+2 |
| | | |||||
| * | just user dir? | Amber H. Brown | 2019-06-07 | 1 | -1/+19 |
| | | |||||
| * | remove background updates that arent needed | Amber H. Brown | 2019-06-07 | 1 | -33/+1 |
| | | |||||
| * | add more comments | Amber Brown | 2019-06-06 | 1 | -0/+5 |
| | | |||||
| * | add stuff in bg updates | Amber Brown | 2019-06-04 | 1 | -10/+62 |
| | | |||||
| * | WHY IS THIS CALLED A SLIGHTLY DIFFERENT THING | Amber Brown | 2019-06-03 | 1 | -0/+1 |
| | | |||||
| * | more fix | Amber Brown | 2019-06-03 | 1 | -0/+38 |
| | | |||||
| * | fix schemas | Amber Brown | 2019-06-03 | 3 | -59/+18 |
| | | |||||
| * | full schema | Amber Brown | 2019-06-03 | 3 | -0/+2315 |
| | | |||||
* | | Add ability to perform password reset via email without trusting the ↵ | Andrew Morgan | 2019-06-06 | 1 | -0/+31 |
|/ | | | | | | | | | | | | identity server (#5377) Sends password reset emails from the homeserver instead of proxying to the identity server. This is now the default behaviour for security reasons. If you wish to continue proxying password reset requests to the identity server you must now enable the email.trust_identity_server_for_password_resets option. This PR is a culmination of 3 smaller PRs which have each been separately reviewed: * #5308 * #5345 * #5368 | ||||
* | Merge pull request #5294 from matrix-org/erikj/speed_up_room_stats | Erik Johnston | 2019-05-31 | 1 | -0/+28 |
|\ | | | | | Speed up room stats background update | ||||
| * | Add indices. Remove room_ids accidentally added | Erik Johnston | 2019-05-31 | 1 | -0/+28 |
| | | | | | | | | | | | | | | | | | | | | We have to do this by re-inserting a background update and recreating tables, as the tables only get created during a background update and will later be deleted. We also make sure that we remove any entries that should have been removed but weren't due to a race that has been fixed in a previous commit. | ||||
* | | Add index to temp table | Erik Johnston | 2019-05-30 | 1 | -0/+1 |
|/ | |||||
* | Fixup comments and logging | Erik Johnston | 2019-05-30 | 1 | -0/+3 |
| | |||||
* | Add DB bg update to cleanup extremities. | Erik Johnston | 2019-05-29 | 1 | -0/+19 |
| | | | | | Due to #5269 we may have extremities in our DB that we shouldn't have, so lets add a cleanup task such to remove those. | ||||
* | Merge pull request #5268 from matrix-org/babolivier/account_validity_fix_schema | Brendan Abolivier | 2019-05-28 | 1 | -0/+3 |
|\ | | | | | Fix schema update for account validity | ||||
| * | Fix schema update for account validity | Brendan Abolivier | 2019-05-28 | 1 | -0/+3 |
| | | |||||
* | | Store key validity time in the storage layer | Richard van der Hoff | 2019-05-23 | 1 | -0/+23 |
| | | | | | | | | | | | | | | | | This is a first step to checking that the key is valid at the required moment. The idea here is that, rather than passing VerifyKey objects in and out of the storage layer, we instead pass FetchKeyResult objects, which simply wrap the VerifyKey and add a valid_until_ts field. | ||||
* | | Room Statistics (#4338) | Amber Brown | 2019-05-21 | 1 | -0/+80 |
| | | |||||
* | | Add simple send_relation API and track in DB | Erik Johnston | 2019-05-15 | 1 | -0/+27 |
|/ | |||||
* | Merge pull request #5047 from matrix-org/babolivier/account_expiration | Brendan Abolivier | 2019-04-17 | 1 | -1/+8 |
|\ | | | | | Send out emails with links to extend an account's validity period | ||||
| * | Send out emails with links to extend an account's validity period | Brendan Abolivier | 2019-04-17 | 1 | -1/+8 |
| | | |||||
* | | Merge pull request #5033 from matrix-org/erikj/fix_schema_delta | Erik Johnston | 2019-04-10 | 1 | -1/+3 |
|\ \ | | | | | | | Fix schema upgrade when dropping tables | ||||
| * | | Fix schema upgrade when dropping tables | Erik Johnston | 2019-04-09 | 1 | -1/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | We need to drop tables in the correct order due to foreign table constraints (on `application_services`), otherwise the DROP TABLE command will fail. Introduced in #4992. | ||||
* | | | Merge pull request #5027 from matrix-org/babolivier/account_expiration | Brendan Abolivier | 2019-04-09 | 1 | -0/+20 |
|\ \ \ | |/ / |/| / | |/ | Add time-based account expiration | ||||
| * | Add account expiration feature | Brendan Abolivier | 2019-04-09 | 1 | -0/+20 |
| | | |||||
* | | Remove unused server_tls_certificates functions (#5028) | Richard van der Hoff | 2019-04-08 | 2 | -11/+4 |
| | | | | | | | | These have been unused since #4120, and with the demise of perspectives, it is unlikely that they will ever be used again. | ||||
* | | drop tables listed in #1830 (#4992) | Neil Johnson | 2019-04-08 | 23 | -740/+42 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tables dropped: * application_services, * application_services_regex, * transaction_id_to_pdu, * stats_reporting * current_state_resets * event_content_hashes * event_destinations * event_edge_hashes * event_signatures * feedback * room_hosts * state_forward_extremities | ||||
* | | Remove presence lists (#4989) | Neil Johnson | 2019-04-03 | 2 | -10/+18 |
| | | | | | | Remove presence list support as per MSC 1819 | ||||
* | | Fixup docstrings | Erik Johnston | 2019-04-02 | 1 | -2/+2 |
| | | |||||
* | | Grandfather in existing user threepids | Erik Johnston | 2019-04-01 | 1 | -0/+2 |
| | | | | | | | | | | | | We assume, as we did before, that users bound their threepid to one of the trusted identity servers. So we simply fill the new table with all threepids in `user_threepids` joined with the trusted identity servers. | ||||
* | | Track IS used to bind 3PIDs | Erik Johnston | 2019-04-01 | 1 | -0/+27 |
|/ | | | | | This will then be used to know which IS to default to when unbinding the threepid. | ||||
* | Fix user directory background update (#4887) | Erik Johnston | 2019-03-19 | 1 | -1/+1 |
| | |||||
* | Migrate the user directory initial population to a background task (#4864) | Amber Brown | 2019-03-19 | 1 | -0/+30 |
| | |||||
* | fixup | Amber Brown | 2019-03-13 | 1 | -7/+0 |
| | |||||
* | fixup | Amber Brown | 2019-03-12 | 1 | -5/+12 |
| | |||||
* | Merge remote-tracking branch 'origin/develop' into hawkowl/userdir-search | Amber Brown | 2019-03-11 | 1 | -0/+2 |
|\ | |||||
| * | Add comment to schema | Erik Johnston | 2019-03-08 | 1 | -0/+2 |
| | | |||||
* | | initial | Amber Brown | 2019-03-11 | 2 | -3/+28 |
|/ | |||||
* | Rewrite userdir to be faster (#4537) | Amber Brown | 2019-03-07 | 1 | -0/+47 |
| | |||||
* | Analyze user_ips before running deduplication | Erik Johnston | 2019-02-12 | 1 | -3/+7 |
| | | | | | | | Due to the table locks taken out by the naive upsert, the table statistics may be out of date. During deduplication it is important that the correct index is used as otherwise a full table scan may be incorrectly used, which can end up thrashing the database badly. | ||||
* | Add support for persisting event format versions | Erik Johnston | 2019-01-23 | 1 | -0/+16 |
| | | | | | | | | | | | | | | Currently we only have the one event format version defined, but this adds the necessary infrastructure to persist and fetch the format versions alongside the events. We specify the format version rather than the room version as: 1. We don't necessarily know the room version, existing events may be either v1 or v2. 2. We'd need to be careful to prevent/handle correctly if different events in the same room reported to be of different versions, which sounds annoying. | ||||
* | Remove duplicates in the user_ips table and add an index (#4370) | Amber Brown | 2019-01-12 | 1 | -0/+26 |
| | |||||
* | create support user (#4141) | Neil Johnson | 2018-12-14 | 1 | -0/+19 |
| | | | | | | Allow for the creation of a support user. A support user can access the server, join rooms, interact with other users, but does not appear in the user directory nor does it contribute to monthly active user limits. | ||||
* | Drop sent_transactions | Aaron Raimist | 2018-12-01 | 4 | -72/+2 |
| | | | | Signed-off-by: Aaron Raimist <aaron@raim.ist> | ||||
* | Merge remote-tracking branch 'origin/develop' into ↵ | David Baker | 2018-11-09 | 3 | -4/+60 |
|\ | | | | | | | dbkr/e2e_backup_versions_are_numbers | ||||
| * | Add unique indexes to a couple of tables | Richard van der Hoff | 2018-11-02 | 2 | -4/+41 |
| | | | | | | | | | | The indexes on device_lists_remote_extremeties can be unique, and they therefore should, to ensure that the db remains consistent. | ||||
| * | Merge branch 'develop' of github.com:matrix-org/synapse into ↵ | Erik Johnston | 2018-10-19 | 1 | -0/+39 |
| |\ | | | | | | | | | | erikj/purge_state_groups | ||||
| * | | Add state_group index to event_to_state_groups | Erik Johnston | 2018-10-04 | 1 | -0/+19 |
| | | | | | | | | | | | | | | | This is needed to efficiently check for unreferenced state groups during purge. | ||||
* | | | Try & make it work on postgres | David Baker | 2018-10-30 | 1 | -2/+2 |
| | | | |||||
* | | | Make e2e backup versions numeric in the DB | David Baker | 2018-10-29 | 1 | -0/+53 |
| |/ |/| | | | | | | | We were doing max(version) which does not do what we wanted on a column of type TEXT. | ||||
* | | Don't reuse backup versions | David Baker | 2018-10-05 | 1 | -1/+2 |
| | | | | | | | | | | | | | | | | Since we don't actually delete the keys, just mark the versions as deleted in the db rather than actually deleting them, then we won't reuse versions. Fixes https://github.com/vector-im/riot-web/issues/7448 | ||||
* | | WIP e2e key backups | David Baker | 2018-09-13 | 1 | -0/+0 |
| | | | | | | | | | | | | | | Continues from uhoreg's branch This just fixed the errcode on /room_keys/version if no backup and updates the schema delta to be on the latest so it gets run | ||||
* | | Merge branch 'develop' into e2e_backups | Hubert Chathi | 2018-08-24 | 1 | -0/+27 |
|\| | |||||
| * | typos | Neil Johnson | 2018-08-08 | 1 | -1/+1 |
| | | |||||
| * | make use of _simple_select_one_onecol, improved comments | Neil Johnson | 2018-08-06 | 1 | -0/+4 |
| | | |||||
| * | Revert "change monthly_active_users table to be a single column" | Neil Johnson | 2018-08-02 | 1 | -1/+3 |
| | | | | | | | | This reverts commit ec716a35b219d147dee51733b55573952799a549. | ||||
| * | change monthly_active_users table to be a single column | Neil Johnson | 2018-08-01 | 1 | -3/+1 |
| | | |||||
| * | fix comment | Neil Johnson | 2018-08-01 | 1 | -1/+1 |
| | | |||||
| * | api into monthly_active_users table | Neil Johnson | 2018-07-31 | 2 | -1/+24 |
| | | |||||
* | | fix idiocies and so make tests pass | Matthew Hodgson | 2018-08-12 | 1 | -1/+1 |
| | | |||||
* | | blindly incorporate PR review - needs testing & fixing | Matthew Hodgson | 2018-08-12 | 1 | -5/+3 |
| | | |||||
* | | make /room_keys/version work | Matthew Hodgson | 2018-08-12 | 1 | -2/+2 |
| | | |||||
* | | implement /room_keys/version too (untested) | Matthew Hodgson | 2018-08-12 | 1 | -1/+1 |
| | | |||||
* | | make it work and fix pep8 | Matthew Hodgson | 2018-08-12 | 1 | -1/+1 |
| | | |||||
* | | total WIP skeleton for /room_keys API | Matthew Hodgson | 2018-08-12 | 1 | -0/+40 |
| | | |||||
* | | coding style | Neil Johnson | 2018-07-31 | 1 | -1/+1 |
|/ | |||||
* | Create the column nullable | Richard van der Hoff | 2018-07-26 | 2 | -9/+13 |
| | | | | | There's no real point in ever making the column non-nullable, and doing so breaks the sytests. | ||||
* | Stop populating events.content | Richard van der Hoff | 2018-07-26 | 1 | -0/+93 |
| | | | | | | This field is no longer read from, so we should stop populating it. Once we're happy that this doesn't break everything, and a rollback is unlikely, we can think about dropping the column. | ||||
* | comment on event_edges | Richard van der Hoff | 2018-07-26 | 1 | -1/+2 |
| | |||||
* | run isort | Amber Brown | 2018-07-09 | 11 | -23/+24 |
| | |||||
* | Revert "Revert "Merge pull request #3431 from ↵ | Erik Johnston | 2018-06-25 | 1 | -0/+21 |
| | | | | | | matrix-org/rav/erasure_visibility"" This reverts commit 1d009013b3c3e814177afc59f066e02a202b21cd. | ||||
* | Revert "Merge pull request #3431 from matrix-org/rav/erasure_visibility" | Richard van der Hoff | 2018-06-22 | 1 | -21/+0 |
| | | | | | This reverts commit ce0d911156b355c5bf452120bfb08653dad96497, reversing changes made to b4a5d767a94f1680d07edfd583aae54ce422573e. | ||||
* | UserErasureStore | Richard van der Hoff | 2018-06-12 | 1 | -0/+21 |
| | | | | to store which users have been erased | ||||
* | remove unnecessary INSERT | Neil Johnson | 2018-06-01 | 1 | -1/+0 |
| | |||||
* | create users index on creation_ts | Neil Johnson | 2018-05-29 | 1 | -0/+20 |
| | |||||
* | Send users a server notice about consent | Richard van der Hoff | 2018-05-22 | 1 | -0/+20 |
| | | | | | When a user first syncs, we will send them a server notice asking them to consent to the privacy policy if they have not already done so. | ||||
* | Merge pull request #3163 from matrix-org/cohort_analytics | Neil Johnson | 2018-05-16 | 2 | -0/+38 |
|\ | | | | | user visit data | ||||
| * | Merge branch 'develop' of https://github.com/matrix-org/synapse into ↵ | Neil Johnson | 2018-05-14 | 2 | -1/+60 |
| |\ | | | | | | | | | | cohort_analytics | ||||
| * | | add inidexes based on usage | Neil Johnson | 2018-05-01 | 1 | -6/+2 |
| | | | |||||
| * | | Generate user daily stats | Neil Johnson | 2018-04-25 | 2 | -0/+42 |
| | | | |||||
* | | | Merge pull request #3213 from matrix-org/rav/consent_handler | Richard van der Hoff | 2018-05-16 | 1 | -0/+18 |
|\ \ \ | | | | | | | | | ConsentResource to gather policy consent from users | ||||
| * | | | ConsentResource to gather policy consent from users | Richard van der Hoff | 2018-05-15 | 1 | -0/+18 |
| | |/ | |/| | | | | | | | | | | Hopefully there are enough comments and docs in this that it makes sense on its own. | ||||
* / | | Add the schema file | David Baker | 2018-05-09 | 1 | -0/+25 |
|/ / | |||||
* | | Merge pull request #3129 from matrix-org/matthew/fix_group_dups | Matthew Hodgson | 2018-04-30 | 1 | -0/+57 |
|\ \ | | | | | | | remove duplicates from groups tables | ||||
| * | | fix missing import | Matthew Hodgson | 2018-04-28 | 1 | -0/+1 |
| | | | |||||
| * | | pep8 | Matthew Hodgson | 2018-04-28 | 1 | -3/+5 |
| | | | |||||
| * | | make it work with sqlite | Matthew Hodgson | 2018-04-28 | 2 | -34/+54 |
| | | | |||||
| * | | remove duplicates from groups tables | Matthew Hodgson | 2018-04-25 | 1 | -0/+34 |
| |/ | | | | | | | | | and rename inconsistently named indexes. Based on https://github.com/matrix-org/synapse/pull/3128 - thanks @vurpo\! | ||||
* / | Move more xrange to six | Adrian Tschira | 2018-04-28 | 1 | -1/+3 |
|/ | | | | | | plus a bonus next() Signed-off-by: Adrian Tschira <nota@notafile.com> | ||||
* | Merge pull request #3045 from matrix-org/dbkr/group_joinable | Luke Barnard | 2018-04-05 | 1 | -0/+22 |
|\ | | | | | Add joinability for groups | ||||
| * | NON NULL -> NOT NULL | Luke Barnard | 2018-04-05 | 1 | -1/+1 |
| | | |||||
| * | Use DEFAULT join_policy of "invite" in db | Luke Barnard | 2018-04-05 | 1 | -1/+1 |
| | | |||||
| * | Use join_policy API instead of joinable | Luke Barnard | 2018-04-03 | 1 | -1/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The API is now under /groups/$group_id/setting/m.join_policy and expects a JSON blob of the shape ```json { "m.join_policy": { "type": "invite" } } ``` where "invite" could alternatively be "open". | ||||
| * | OK, smallint it is then | David Baker | 2018-03-28 | 1 | -1/+1 |
| | | |||||
| * | Grr. Copy the definition from is_admin | David Baker | 2018-03-28 | 1 | -1/+1 |
| | | |||||
| * | Make column definition that works on both dbs | David Baker | 2018-03-28 | 1 | -1/+1 |
| | | |||||
| * | Add schema delta file | David Baker | 2018-03-28 | 1 | -0/+16 |
| | | |||||
* | | Merge pull request #3041 from matrix-org/r30_stats | Neil Johnson | 2018-04-05 | 1 | -0/+17 |
|\ \ | | | | | | | R30 stats | ||||
| * | | Add user_ips last seen index | Neil Johnson | 2018-03-28 | 1 | -0/+17 |
| |/ | |||||
* / | Use simplejson throughout | Richard van der Hoff | 2018-03-29 | 1 | -1/+2 |
|/ | | | | Let's use simplejson rather than json, for consistency. | ||||
* | Merge branch 'master' of github.com:matrix-org/synapse into develop | Erik Johnston | 2018-03-19 | 4 | -8/+8 |
|\ | |||||
| * | Replace ujson with simplejson | Erik Johnston | 2018-03-15 | 4 | -7/+7 |
| | | |||||
* | | Comments | Erik Johnston | 2018-02-16 | 1 | -0/+4 |
| | | |||||
* | | Store push actions in staging area | Erik Johnston | 2018-02-15 | 1 | -0/+24 |
| | | |||||
* | | Merge branch 'matthew/gin_work_mem' into matthew/hit_the_gin | Richard van der Hoff | 2018-02-13 | 2 | -0/+53 |
|\ \ | |||||
| * | | Store state groups separately from events (#2784) | Erik Johnston | 2018-02-06 | 1 | -0/+37 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Split state group persist into seperate storage func * Add per database engine code for state group id gen * Move store_state_group to StateReadStore This allows other workers to use it, and so resolve state. * Hook up store_state_group * Fix tests * Rename _store_mult_state_groups_txn * Rename StateGroupReadStore * Remove redundant _have_persisted_state_group_txn * Update comments * Comment compute_event_context * Set start val for state_group_id_seq ... otherwise we try to recreate old state groups * Update comments * Don't store state for outliers * Update comment * Update docstring as state groups are ints | ||||
| * | | Remove lost comment | Erik Johnston | 2018-01-17 | 1 | -3/+0 |
| | | | |||||
| * | | Keep track of last access time for local media | Erik Johnston | 2018-01-17 | 1 | -0/+19 |
| |/ | |||||
* | | move search reindex to schema 47 | Richard van der Hoff | 2018-02-13 | 2 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | We're up to schema v47 on develop now, so this will have to go in there to have an effect. This might cause an error if somebody has already run it in the v46 guise, and runs it again in the v47 guise, because it will cause a duplicate entry in the bbackground_updates table. On the other hand, the entry is removed once it is complete, and it is unlikely that anyone other than matrix.org has run it on v46. The update itself is harmless to re-run because it deliberately copes with the index already existing. | ||||
* | | fix GIST->GIN switch | Matthew Hodgson | 2018-01-09 | 2 | -2/+21 |
|/ | |||||
* | Merge branch 'develop' into matthew/search-all-local-users | Matthew Hodgson | 2017-11-30 | 2 | -1/+28 |
|\ | |||||
| * | Fix error on sqlite 3.7 | Richard van der Hoff | 2017-11-21 | 2 | -1/+28 |
| | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | | remove null constraint on user_dir.room_id | Matthew Hodgson | 2017-11-30 | 1 | -0/+35 |
|/ | |||||
* | Avoid locking for upsert on pushers tables | Richard van der Hoff | 2017-11-16 | 1 | -0/+35 |
| | | | | | * replace the upsert into deleted_pushers with an insert * no need to lock for upsert on pusher_throttle | ||||
* | 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 | 1 | -0/+22 |
| | |||||
* | fix copyright.... | Matthew Hodgson | 2017-11-04 | 1 | -1/+1 |
| | |||||
* | s/popualte/populate/ | Matthew Hodgson | 2017-11-04 | 1 | -1/+1 |
| | |||||
* | Remove the last vestiges of refresh_tokens | Richard van der Hoff | 2017-10-31 | 3 | -40/+3 |
| | |||||
* | DB schema interface for password auth providers | Richard van der Hoff | 2017-10-31 | 1 | -0/+7 |
| | | | | | Provide an interface by which password auth providers can register db schema files to be run at startup | ||||
* | 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 |
| | |||||
* | 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 | 1 | -1/+1 |
| | | | | what could possibly go wrong | ||||
* | Fix schema delta versions | Erik Johnston | 2017-10-11 | 2 | -0/+0 |
| | |||||
* | Merge branch 'develop' into erikj/groups_merged | David Baker | 2017-10-02 | 1 | -0/+38 |
|\ | |||||
| * | Add old indices | Erik Johnston | 2017-09-28 | 1 | -0/+2 |
| | | |||||
| * | Change expires column to expires_ts | Erik Johnston | 2017-09-28 | 1 | -1/+20 |
| | | |||||
| * | More brackets | Erik Johnston | 2017-09-28 | 1 | -1/+1 |
| | | |||||
| * | Delete expired url cache data | Erik Johnston | 2017-09-28 | 1 | -0/+17 |
| | | |||||
* | | Add unique index to group_rooms table | Erik Johnston | 2017-09-26 | 1 | -1/+1 |
| | | |||||
* | | Add remote profile cache | Erik Johnston | 2017-08-25 | 1 | -0/+28 |
| | | |||||
* | | Use BOOLEAN rather than TEXT type | Erik Johnston | 2017-08-21 | 1 | -1/+1 |
| | | |||||
* | | Store whether the user wants to publicise their membership of a group | Erik Johnston | 2017-08-08 | 1 | -0/+1 |
| | | |||||
* | | Add groups to sync stream | Erik Johnston | 2017-07-20 | 1 | -0/+9 |
| | | |||||
* | | Remove sync stuff | Erik Johnston | 2017-07-18 | 1 | -9/+1 |
| | | |||||
* | | Remove unused tables | Erik Johnston | 2017-07-18 | 1 | -7/+0 |
| | | |||||
* | | Add local group server support | Erik Johnston | 2017-07-17 | 1 | -0/+28 |
| | | |||||
* | | Comments | Erik Johnston | 2017-07-12 | 1 | -5/+12 |
| | | |||||
* | | Add group summary APIs | Erik Johnston | 2017-07-12 | 1 | -0/+56 |
| | | |||||
* | | 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 | 1 | -1/+1 |
| | | |||||
* | | Comments | Erik Johnston | 2017-07-11 | 1 | -2/+2 |
| | | |||||
* | | Comments | Erik Johnston | 2017-07-11 | 1 | -1/+5 |
| | | |||||
* | | Initial group server implementation | Erik Johnston | 2017-07-10 | 1 | -0/+77 |
|/ | |||||
* | 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 | 1 | -0/+16 |
| | | | | This makes it easier to clear old media out at a later date | ||||
* | Add API to quarantine media | Erik Johnston | 2017-06-19 | 1 | -0/+17 |
| | |||||
* | Add shutdown room API | Erik Johnston | 2017-06-19 | 1 | -0/+21 |
| | |||||
* | Add DB schema for tracking users who share rooms | Erik Johnston | 2017-06-15 | 1 | -0/+32 |
| | |||||
* | Split up device_lists_outbound_pokes table for faster updates. | Erik Johnston | 2017-06-07 | 1 | -0/+33 |
| | |||||
* | Split the table in two | Erik Johnston | 2017-06-01 | 1 | -1/+9 |
| | |||||
* | Use unique indices | Erik Johnston | 2017-05-31 | 1 | -2/+2 |
| | |||||
* | Split out directory and search tables | Erik Johnston | 2017-05-31 | 1 | -11/+14 |
| | |||||
* | Handle the server leaving a public room | Erik Johnston | 2017-05-31 | 1 | -0/+4 |
| | |||||
* | Add comments | Erik Johnston | 2017-05-31 | 1 | -1/+1 |
| | |||||
* | Add user_directory to database | Erik Johnston | 2017-05-31 | 1 | -0/+69 |
| | |||||
* | Add comment | Erik Johnston | 2017-05-30 | 1 | -1/+1 |
| | |||||
* | Add clobbered event_id | Erik Johnston | 2017-05-30 | 1 | -1/+2 |
| | |||||
* | Add current_state_delta_stream table | Erik Johnston | 2017-05-30 | 1 | -0/+25 |
| | |||||
* | Add background task to clear out old event_auth | Erik Johnston | 2017-05-24 | 1 | -0/+17 |
| | |||||
* | Add a comment to old delta | Richard van der Hoff | 2017-05-11 | 1 | -0/+4 |
| | |||||
* | Add an index to event_search | Richard van der Hoff | 2017-05-11 | 1 | -0/+17 |
| | | | | - to make the purge API quicker | ||||
* | Add per user ratelimiting overrides | Erik Johnston | 2017-05-10 | 1 | -0/+22 |
| | |||||
* | Add index to device_lists_stream | Erik Johnston | 2017-03-01 | 1 | -0/+17 |
| | |||||
* | Add stream_id index to device_lists_outbound_pokes | Erik Johnston | 2017-02-28 | 1 | -0/+16 |
| | | | | As this is used for replication streaming | ||||
* | Use TEXT rather than VARCHAR | David Baker | 2017-02-17 | 1 | -6/+6 |
| | | | | While we're changing anyway | ||||
* | Make the pushers lang field column longer | David Baker | 2017-02-17 | 1 | -0/+39 |
| | | | | | | To accommodate things like zh-Hans-CN Fixes https://github.com/vector-im/riot-ios/issues/1031 | ||||
* | Aggregate event push actions | Erik Johnston | 2017-02-14 | 1 | -0/+37 |
| | |||||
* | Add an index to make membership queries faster | Erik Johnston | 2017-01-31 | 1 | -0/+17 |
| | |||||
* | Add ts column to device_lists_outbound_pokes | Erik Johnston | 2017-01-27 | 1 | -1/+2 |
| | |||||
* | Add comments | Erik Johnston | 2017-01-26 | 1 | -1/+7 |
| | |||||
* | Implement device key caching over federation | Erik Johnston | 2017-01-26 | 1 | -12/+8 |
| | |||||
* | Add basic implementation of local device list changes | Erik Johnston | 2017-01-25 | 1 | -0/+56 |
| | |||||
* | Add comment | Erik Johnston | 2017-01-13 | 1 | -0/+1 |
| | |||||
* | Change device_inbox stream index to include user | Erik Johnston | 2017-01-10 | 1 | -0/+20 |
| | | | | | This makes fetching the nost recently changed users much tricker, and brings it in line with e.g. presence_stream indices. | ||||
* | Merge pull request #1676 from matrix-org/erikj/room_list | Erik Johnston | 2016-12-12 | 1 | -0/+29 |
|\ | | | | | Add new API appservice specific public room list | ||||
| * | Comments | Erik Johnston | 2016-12-07 | 1 | -0/+2 |
| | | |||||
| * | Add new API appservice specific public room list | Erik Johnston | 2016-12-06 | 1 | -0/+27 |
| | | |||||
* | | Add profile data to the room_membership table for joins | Erik Johnston | 2016-12-08 | 1 | -0/+20 |
|/ | |||||
* | Don't send old events as federation | Erik Johnston | 2016-11-24 | 1 | -1/+1 |
| | |||||
* | More efficient notif count queries | Erik Johnston | 2016-11-23 | 1 | -0/+17 |
| | |||||
* | Store federation stream positions in the database | Erik Johnston | 2016-11-21 | 1 | -0/+22 |
| | |||||
* | Handle sending events and device messages over federation | Erik Johnston | 2016-11-17 | 1 | -0/+16 |
| | |||||
* | Replace postgres GIN with GIST | Erik Johnston | 2016-11-03 | 1 | -0/+17 |
| | | | | | This is because GIN can be slow to write too, especially when the table gets large. | ||||
* | Use most recently added binding, not most recently seen user. | Erik Johnston | 2016-10-27 | 1 | -19/+11 |
| | |||||
* | Fix user_threepids schema delta | Erik Johnston | 2016-10-27 | 1 | -1/+38 |
| | | | | | | | | | | | The delta `37/user_threepids.sql` aimed to update all the email addresses to be lower case, however duplicate emails may exist in the table already. This commit adds a step where the delta moves the duplicate emails to a new `medium` `email_old`. Only the most recently used account keeps the binding intact. We move rather than delete so that we retain some record of which emails were associated with which account. | ||||
* | Latest delta is now 37 | David Baker | 2016-10-19 | 1 | -0/+0 |
| | |||||
* | Merge remote-tracking branch 'origin/develop' into ↵ | David Baker | 2016-10-19 | 1 | -0/+81 |
|\ | | | | | | | dbkr/password_reset_case_insensitive | ||||
| * | Bump schema version | Erik Johnston | 2016-10-17 | 1 | -0/+0 |
| | | |||||
| * | Remove TODO | Erik Johnston | 2016-10-17 | 1 | -2/+0 |
| | | |||||
| * | Merge branch 'develop' of github.com:matrix-org/synapse into erikj/remove_auth | Erik Johnston | 2016-10-17 | 4 | -1/+97 |
| |\ |