- Jun 15, 2022
-
-
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
-
-
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
-
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.
-
- Jun 12, 2022
-
-
Richard van der Hoff authored
-
- Jun 10, 2022
-
-
David Robertson authored
This reverts commit ae09cc2e. This commit was intended for a different branch.
-
David Robertson authored
-
David Robertson authored
Missed by #12475.
-
Patrick Cloke authored
* Clarifies comments and documentation. * Adds type-hints. * Fixes Python 3 compatibility (and runs pyupgrade). * Updates for changes in Synapse internals.
-
Patrick Cloke authored
The `room_id` field was removed from MSC2946 before it was accepted. It was initially kept for backwards compatibility and should be removed now that the stable form of the API is used. This change only stops Synapse from validating that it is returned, a future PR will remove returning it as part of the response.
-
- Jun 09, 2022
-
-
reivilibre authored
-
Patrick Cloke authored
-
Richard van der Hoff authored
... to help us keep track of these things
-
David Robertson authored
-
Nick Mills-Barrett authored
-
- Jun 08, 2022
-
-
Patrick Cloke authored
MSC3715 defines this parameter, but the unstable version of it should be behind an experimental flag.
-
reivilibre authored
Co-authored-by:
Brendan Abolivier <babolivier@matrix.org>
-
reivilibre authored
Co-authored-by:
Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
-
James authored
-