13 Commits

Author SHA1 Message Date
Kegan Dougal
a7eed93722 Add comprehensive regression test for GlobalSnapshot(); ensure we clear db conns when tests end 2023-01-18 14:54:26 +00:00
Kegan Dougal
d591dd0584 BREAKING(db): Add predecessor_room_id to the rooms table
This tracks the room ID supplied in the create event.
2022-09-08 15:44:48 +01:00
Kegan Dougal
fb1cd41637 BREAKING(db): replace is_tombstoned column with upgraded_room_id in rooms table
This is in preparation to allow us to walk over tombstones automatically
in the proxy. Currently, we just emulate `is_tombstoned` behaviour by
checking if `upgraded_room_id != NULL`.

This is a breaking database change as there is no migration path.
2022-09-07 17:34:49 +01:00
Kegan Dougal
c44f4b2c04 feature: add support for room_types and not_room_types filters
With integration tests.
2022-07-27 14:37:36 +01:00
Kegan Dougal
ebe9767f13 BREAKING[sql]: add type column to rooms table 2022-07-27 11:25:40 +01:00
Kegan Dougal
29c3557b3a db: add latest_nid column to rooms table
Set it when updating the state snapshot. With tests.
2022-04-26 11:15:21 +01:00
Kegan Dougal
bbfaf10d10 Add room filter for is_tombstoned 2022-03-22 14:56:57 +00:00
Kegan Dougal
4cba26f008 Fix test in CI 2021-11-04 16:09:08 +00:00
Kegan Dougal
faffa4ed03 Track encryption state per-room 2021-11-04 13:40:16 +00:00
Kegan Dougal
a3e836070d Add is_encrypted column to rooms table 2021-11-04 13:31:48 +00:00
Kegan Dougal
45e9e432bc Track the state before on each event rather than after
It's easier to roll forward than roll backwards. Add 'replaces_nid' field
on the events table which tells which nid in the snapshot gets replaced, if any.
2021-08-18 18:21:40 +01:00
Kegan Dougal
0dcd3fac09 Make tests work for others, add timeline calculations 2021-06-03 14:35:34 +01:00
Kegan Dougal
cd20d07d9f Add Accumulator.Initialise with tests 2021-05-27 19:20:36 +01:00