forked-synapse/changelog.d
Andrew Morgan 5d92a1428c
Prevent join->join membership transitions changing member count (#7977)
`StatsHandler` handles updates to the `current_state_delta_stream`, and updates room stats such as the amount of state events, joined users, etc.

However, it counts every new join membership as a new user entering a room (and that user being in another room), whereas it's possible for a user's membership status to go from join -> join, for instance when they change their per-room profile information.

This PR adds a check for join->join membership transitions, and bails out early, as none of the further checks are necessary at that point.

Due to this bug, membership stats in many rooms have ended up being wildly larger than their true values. I am not sure if we also want to include a migration step which recalculates these statistics (possibly using the `_populate_stats_process_rooms` bg update).

Bug introduced in the initial implementation https://github.com/matrix-org/synapse/pull/4338.
2020-08-03 21:54:24 +01:00
..
.gitignore Correct attrs package name in requirements (#3492) 2018-07-07 10:46:59 +10:00
7314.misc Allow guests to operate in encrypted rooms (#7314) 2020-08-03 12:13:49 +01:00
7736.feature Add MSC reference to changelog for #7736 2020-07-29 18:31:03 +01:00
7899.doc Various improvements to the docs (#7899) 2020-07-29 10:35:44 -04:00
7902.feature Option to allow server admins to join complex rooms (#7902) 2020-07-28 13:41:44 +01:00
7936.misc Use the JSON module from the std library instead of simplejson. (#7936) 2020-07-28 10:28:59 -04:00
7947.misc Convert the remaining media repo code to async / await. (#7947) 2020-07-27 14:40:11 -04:00
7948.misc Convert a synapse.events to async/await. (#7949) 2020-07-27 13:40:22 -04:00
7949.misc Convert a synapse.events to async/await. (#7949) 2020-07-27 13:40:22 -04:00
7951.misc Convert a synapse.events to async/await. (#7949) 2020-07-27 13:40:22 -04:00
7952.misc Move some log lines from default logger to sql/transaction loggers (#7952) 2020-07-28 18:52:13 +01:00
7963.misc Convert storage layer to async/await. (#7963) 2020-07-28 16:09:53 -04:00
7964.feature Add an option to disable purge in delete room admin API (#7964) 2020-07-28 20:08:23 +01:00
7965.misc Add script for finding files with unix line terminators (#7965) 2020-07-28 01:26:50 +01:00
7970.misc Fix exit code for check_line_terminators.sh (#7970) 2020-07-28 08:52:25 -04:00
7971.misc Add additional logging for SAML sessions. (#7971) 2020-07-29 13:54:44 -04:00
7973.misc Convert appservice to async. (#7973) 2020-07-30 07:27:39 -04:00
7975.misc Convert federation client to async/await. (#7975) 2020-07-30 08:01:33 -04:00
7976.misc Convert some of the data store to async. (#7976) 2020-07-30 07:20:41 -04:00
7977.bugfix Prevent join->join membership transitions changing member count (#7977) 2020-08-03 21:54:24 +01:00
7978.bugfix Remove from the event_relations table when purging historical events. (#7978) 2020-07-29 13:55:01 -04:00
7979.misc Ensure the msg property of HttpResponseException is a string. (#7979) 2020-07-29 13:56:06 -04:00
7980.bugfix Fix invite rejection when we have no forward-extremeties (#7980) 2020-07-30 16:58:57 +01:00
7981.misc Ensure that remove_pusher is always async (#7981) 2020-07-30 06:56:55 -04:00
7987.misc Convert replication code to async/await. (#7987) 2020-08-03 07:12:55 -04:00
7989.misc Convert ACME code to async/await. (#7989) 2020-08-03 07:09:33 -04:00
7990.doc Update workers docs (#7990) 2020-07-30 17:30:11 +01:00
7992.doc Fix typo in docs/workers.md (#7992) 2020-07-30 16:28:36 +01:00
7996.bugfix Fix some comments and types in service notices (#7996) 2020-07-31 16:22:06 -04:00
7998.doc Add docs for undoing room shutdowns (#7998) 2020-07-31 04:41:44 +01:00
7999.bugfix Implement handling of HTTP HEAD requests. (#7999) 2020-08-03 08:45:42 -04:00
8003.misc Convert the crypto module to async/await. (#8003) 2020-08-03 08:29:01 -04:00
8008.feature Newsfile 2020-07-31 15:06:56 +01:00