synapse/changelog.d
Mathieu Velten b3ba501c52
Properly purge state groups tables when purging a room (#18024)
Currently purging a complex room can lead to a lot of orphaned rows left
behind in the state groups tables.
It seems it is because we are loosing track of state groups sometimes.

This change uses the `room_id` indexed column of `state_groups` table to
decide what to delete instead of doing an indirection through
`event_to_state_groups`.

Related to https://github.com/element-hq/synapse/issues/3364.

### Pull Request Checklist

* [x] Pull request is based on the develop branch
* [x] Pull request includes a [changelog
file](https://element-hq.github.io/synapse/latest/development/contributing_guide.html#changelog).
* [x] [Code
style](https://element-hq.github.io/synapse/latest/code_style.html) is
correct
(run the
[linters](https://element-hq.github.io/synapse/latest/development/contributing_guide.html#run-the-linters))

---------

Co-authored-by: Erik Johnston <erikj@jki.re>
2025-01-06 15:32:18 +00:00
..
.gitignore
17846.misc Update Alpine Linux Synapse Package Maintainer within installation.md (#17846) 2024-12-10 22:24:03 +00:00
17849.feature Add email.tlsname config option (#17849) 2024-12-17 18:05:38 -06:00
17916.feature forward requester id to check username for spam callbacks (#17916) 2024-12-13 14:17:41 +00:00
17930.bugfix Fix bug when rejecting withdrew invite with a third_party_rules module (#17930) 2024-12-10 14:26:38 +00:00
17948.feature Add some useful endpoints to Admin API (#17948) 2024-12-16 13:27:34 -06:00
17954.doc Reorganize account data, receipts and presence request regexps in generic_worker docs (#17954) 2024-12-09 10:30:03 -06:00
17964.feature Promote account suspension to stable (#17964) 2024-12-04 17:56:42 -06:00
17976.doc Add last_seen_ts to query user example (#17976) 2024-12-16 17:12:40 -06:00
17983.feature Add macaroon_secret_key_path config option (#17983) 2024-12-16 18:01:33 -06:00
17992.doc Wording improvements for the TaskScheduler (#17992) 2024-12-18 11:42:34 +00:00
17994.doc Update reverse proxy docs with what we've learned from #17986 (#17994) 2024-12-19 14:00:50 +00:00
17996.misc Add RoomID & EventID rust types (#17996) 2024-12-05 15:41:57 +00:00
17998.misc Fix mypy errors on Twisted 24.11.0 (#17998) 2024-12-18 11:49:38 +00:00
17999.misc Bump mypy from 1.11.2 to 1.12.1 and fix new typechecking errors (#17999) 2024-12-18 11:42:17 +00:00
18017.misc Disable statement timeout during room purge (#18017) 2024-12-19 14:02:06 +00:00
18020.misc Stop using twisted.internet.defer.returnValue (#18020) 2024-12-20 10:57:59 +00:00
18024.bugfix Properly purge state groups tables when purging a room (#18024) 2025-01-06 15:32:18 +00:00
18029.bugfix Make admin api redactions use the requester to send the redaction (#18029) 2024-12-23 11:19:35 +00:00
18034.removal Remove support for PostgreSQL 11 and 12 (#18034) 2024-12-19 17:02:47 +00:00
18043.bugfix Add a test to verify remote user messages can be redacted via admin api redaction endpoint if requester is admin in room (#18043) 2025-01-03 12:52:42 +00:00
18063.misc Refactor get_profile: do not return missing fields. (#18063) 2025-01-03 17:23:29 +00:00