0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-12-24 23:23:45 +01:00
dendrite/roomserver/storage/sqlite3
S7evinK eccd0d2c1b
Implement forgetting about rooms (#1572)
* Add basic storage methods

* Add internal api handler

* Add check for forgotten room

* Add /rooms/{roomID}/forget endpoint

* Add missing rsAPI method

* Remove unused parameters

* Add passing tests

Signed-off-by: Till Faelligen <tfaelligen@gmail.com>

* Add missing file

* Add postgres migration

* Add sqlite migration

* Use Forgetter to forget room

* Remove empty line

* Update HTTP status codes

It looks like the spec calls for these to be 400, rather than 403: https://matrix.org/docs/spec/client_server/r0.6.1#post-matrix-client-r0-rooms-roomid-forget

Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2020-11-05 10:19:23 +00:00
..
deltas Implement forgetting about rooms (#1572) 2020-11-05 10:19:23 +00:00
event_json_table.go Transaction writer changes, move roomserver writers (#1285) 2020-08-19 15:38:27 +01:00
event_state_keys_table.go Transaction writer changes, move roomserver writers (#1285) 2020-08-19 15:38:27 +01:00
event_types_table.go Transaction writer changes, move roomserver writers (#1285) 2020-08-19 15:38:27 +01:00
events_table.go Implement rejected events (#1426) 2020-09-16 13:00:52 +01:00
invite_table.go Transaction writer changes, move roomserver writers (#1285) 2020-08-19 15:38:27 +01:00
membership_table.go Implement forgetting about rooms (#1572) 2020-11-05 10:19:23 +00:00
previous_events_table.go Fix bug in error handling in SQLite InsertPreviousEvent (#1456) 2020-10-01 10:55:00 +01:00
published_table.go Roomserver per-room input parallelisation (Postgres) (#1289) 2020-08-20 16:24:33 +01:00
redactions_table.go Ignore duplicate redaction entries (#1522) 2020-10-14 15:24:43 +01:00
room_aliases_table.go Roomserver per-room input parallelisation (Postgres) (#1289) 2020-08-20 16:24:33 +01:00
rooms_table.go Implement more CSS storage functions in roomserver (#1388) 2020-09-03 18:27:02 +01:00
state_block_table.go Update all usages of tx.Stmt to sqlutil.TxStmt (#1423) 2020-09-24 11:10:14 +01:00
state_block_table_test.go Support sqlite in addition to postgres (#869) 2020-02-13 17:27:33 +00:00
state_snapshot_table.go Update all usages of tx.Stmt to sqlutil.TxStmt (#1423) 2020-09-24 11:10:14 +01:00
storage.go Implement forgetting about rooms (#1572) 2020-11-05 10:19:23 +00:00
transactions_table.go Transaction writer changes, move roomserver writers (#1285) 2020-08-19 15:38:27 +01:00