- Jun 15, 2022
-
-
Erik Johnston authored
-
Hannes Lerchl authored
-
reivilibre authored
-
Erik Johnston authored
-
David Robertson authored
Co-authored-by:
Patrick Cloke <clokep@users.noreply.github.com>
-
Erik Johnston authored
Fixes #11887 hopefully. The core change here is that `event_push_summary` now holds a summary of counts up until a much more recent point, meaning that the range of rows we need to count in `event_push_actions` is much smaller. This needs two major changes: 1. When we get a receipt we need to recalculate `event_push_summary` rather than just delete it 2. The logic for deleting `event_push_actions` is now divorced from calculating `event_push_summary`. In future it would be good to calculate `event_push_summary` while we persist a new event (it should just be a case of adding one to the relevant rows in `event_push_summary`), as that will further simplify the get counts logic and remove the need for us to periodically update `event_push_summary` in a background job.
-
Erik Johnston authored
-
reivilibre authored
-
reivilibre authored
-
David Robertson authored
-
reivilibre authored
Fix a long-standing bug which meant that rate limiting was not restrictive enough in some cases. (#13018)
-
Brendan Abolivier authored
-
Richard van der Hoff authored
* Remove redundant references to `event_edges.room_id` We don't need to care about the room_id here, because we are already checking the event id. * Clean up the event_edges table We make a number of changes to `event_edges`: * We give the `room_id` and `is_state` columns defaults (null and false respectively) so that we can stop populating them. * We drop any rows that have `is_state` set true - they should no longer exist. * We drop any rows that do not exist in `events` - these should not exist either. * We drop the old unique constraint on all the colums, which wasn't much use. * We create a new unique index on `(event_id, prev_event_id)`. * We add a foreign key constraint to `events`. These happen rather differently depending on whether we are on Postgres or SQLite. For SQLite, we just rebuild the whole table, copying only the rows we want to keep. For Postgres, we try to do things in the background as much as possible. * Stop populating `event_edges.room_id` and `is_state` We can just rely on the defaults.
-
David Robertson authored
-
- Jun 14, 2022
-
-
Patrick Cloke authored
-
Patrick Cloke authored
-
reivilibre authored
-
David Robertson authored
* Rename test_fedclient to match its source file * Require at least one destination to be truthy * Explicitly validate user ID in profile endpoint GETs Co-authored-by:
Patrick Cloke <clokep@users.noreply.github.com>
-
Erik Johnston authored
-
Brendan Abolivier authored
-
Shay authored
-
Patrick Cloke authored
-
Quentin Gliech authored
Move the "email unsubscribe" resource, refactor the macaroon generator & simplify the access token verification logic. (#12986) This simplifies the access token verification logic by removing the `rights` parameter which was only ever used for the unsubscribe link in email notifications. The latter has been moved under the `/_synapse` namespace, since it is not a standard API. This also makes the email verification link more secure, by embedding the app_id and pushkey in the macaroon and verifying it. This prevents the user from tampering the query parameters of that unsubscribe link. Macaroon generation is refactored: - Centralised all macaroon generation and verification logic to the `MacaroonGenerator` - Moved to `synapse.utils` - Changed the constructor to require only a `Clock`, hostname, and a secret key (instead of a full `Homeserver`). - Added tests for all methods.
-
reivilibre authored
* Fix Complement runs always being Postgres * Newsfile Signed-off-by:
Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
-
Erik Johnston authored
-
Erik Johnston authored
-
Erik Johnston authored
-
Sami Olmari authored
-
Sami Olmari authored
-
Quentin Gliech authored
-
- Jun 13, 2022
-
-
David Teller authored
Uniformize spam-checker API, part 4: port other spam-checker callbacks to return `Union[Allow, Codes]`. (#12857) Co-authored-by:
Brendan Abolivier <babolivier@matrix.org>
-
Patrick Cloke authored
Removes the `register_noop_background_update` and deletes the background updates directly in a delta file.
-
Richard van der Hoff authored
-
- Jun 12, 2022
-
-
Richard van der Hoff authored
-
Richard van der Hoff authored
It's now implied by the room_version property on the event.
-
Richard van der Hoff authored
Instead, use the `room_version` property of the event we're checking. The `room_version` was originally added as a parameter somewhere around #4482, but really it's been redundant since #6875 added a `room_version` field to `EventBase`.
-
Richard van der Hoff authored
Instead, use the `room_version` property of the event we're validating. The `room_version` was originally added as a parameter somewhere around #4482, but really it's been redundant since #6875 added a `room_version` field to `EventBase`.
-
Richard van der Hoff authored
In practice, when we run the auth rules, all of the events have the right room version. Let's stop building Room V1 events for these tests and use the right version.
-
- Jun 10, 2022
-
-
David Robertson authored
This reverts commit ae09cc2e. This commit was intended for a different branch.
-