summary refs log tree commit diff
path: root/contrib/graph (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-08-28Code formatting (Black) github/rei/rss_inc2 rei/rss_inc2Olivier Wilkinson (reivilibre)1-1/+3
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-28Update synapse/storage/stats.pyreivilibre1-1/+1
Co-Authored-By: Erik Johnston <erik@matrix.org>
2019-08-27Clean up code with improved naming and hoist around functions.Olivier Wilkinson (reivilibre)1-79/+91
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-27Use `DeferredLock` instead of `threading.Lock`Olivier Wilkinson (reivilibre)2-4/+6
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-27Fix logic error.Olivier Wilkinson (reivilibre)1-1/+2
`absolute_fields` being None shouldn't preclude completion of a current stats row. Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-27Fix logic error.Olivier Wilkinson (reivilibre)1-1/+2
`absolute_fields` being None shouldn't preclude completion of a current stats row. Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-27Invalidate `get_earliest_token_for_stats` cache as required.Olivier Wilkinson (reivilibre)1-0/+1
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-27For user stats, handle other membership transitions properly.Olivier Wilkinson (reivilibre)2-7/+3
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-27Update `_purge_room_txn` to take account of separated stats tablesOlivier Wilkinson (reivilibre)1-1/+2
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-27Rename `room_state` table to `room_stats_state`Olivier Wilkinson (reivilibre)3-2/+5
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-27Remove obsolete `OldCollectionRequired` as old collection is obsolete.Olivier Wilkinson (reivilibre)1-6/+0
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-27For user stats, handle other membership transitions properly.Olivier Wilkinson (reivilibre)1-12/+16
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-27No-op if no membership change and thus simplify verbose dict updates.Olivier Wilkinson (reivilibre)1-28/+14
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-27Adapt to stats now working in millisecondsOlivier Wilkinson (reivilibre)1-1/+1
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-27Don't include the room & user stats docs in this PR.Olivier Wilkinson (reivilibre)1-146/+0
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-27Switch to milliseconds in room/user stats for consistency.Olivier Wilkinson (reivilibre)3-10/+8
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-27Code formatting (Black)Olivier Wilkinson (reivilibre)1-5/+5
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-27Lock tables in upsert fall-backs.Olivier Wilkinson (reivilibre)1-0/+2
Should not be too much of a performance concern as this code won't be hit on Postgres, which large deployments should be using. Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-27Apply minor suggestions from reviewOlivier Wilkinson (reivilibre)1-4/+3
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-27Clarify `_update_stats_delta_txn` by adding code comments and kwargs.Olivier Wilkinson (reivilibre)1-16/+18
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
2019-08-27Apply suggestions from code reviewreivilibre1-2/+2
Co-Authored-By: Erik Johnston <erik@matrix.org>
2019-08-27Update 5909.miscRichard van der Hoff1-1/+1
2019-08-27Add Admin API capability to set adminship of a user (#5878)reivilibre6