forked-synapse/tests/rest/admin
Tadeusz Sośnierz 1433b5d5b6
Show erasure status when listing users in the Admin API (#14205)
* Show erasure status when listing users in the Admin API

* Use USING when joining erased_users

* Add changelog entry

* Revert "Use USING when joining erased_users"

This reverts commit 30bd2bf106415caadcfdbdd1b234ef2b106cc394.

* Make the erased check work on postgres

* Add a testcase for showing erased user status

* Appease the style linter

* Explicitly convert `erased` to bool to make SQLite consistent with Postgres

This also adds us an easy way in to fix the other accidentally integered columns.

* Move erasure status test to UsersListTestCase

* Include user erased status when fetching user info via the admin API

* Document the erase status in user_admin_api

* Appease the linter and mypy

* Signpost comments in tests

Co-authored-by: Tadeusz Sośnierz <tadeusz@sosnierz.com>
Co-authored-by: David Robertson <david.m.robertson1@gmail.com>
2022-10-21 13:52:44 +01:00
..
__init__.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_admin.py Use literals in place of HTTPStatus constants in tests (#13479) 2022-08-09 14:56:43 +01:00
test_background_updates.py Use literals in place of HTTPStatus constants in tests (#13488) 2022-08-10 11:01:12 -07:00
test_device.py Use literals in place of HTTPStatus constants in tests (#13488) 2022-08-10 11:01:12 -07:00
test_event_reports.py Fix a bug in the /event_reports Admin API which meant that the total count could be larger than the number of results you can actually query for. (#13525) 2022-08-17 18:08:23 +00:00
test_federation.py Use literals in place of HTTPStatus constants in tests (#13488) 2022-08-10 11:01:12 -07:00
test_media.py Use literals in place of HTTPStatus constants in tests (#13488) 2022-08-10 11:01:12 -07:00
test_registration_tokens.py Use literals in place of HTTPStatus constants in tests (#13488) 2022-08-10 11:01:12 -07:00
test_room.py Add Admin API to Fetch Messages Within a Particular Window (#13672) 2022-09-07 10:54:44 +01:00
test_server_notice.py Fix that sending server notices fail if avatar is None (#13566) 2022-08-23 09:48:35 +01:00
test_statistics.py Use literals in place of HTTPStatus constants in tests (#13488) 2022-08-10 11:01:12 -07:00
test_user.py Show erasure status when listing users in the Admin API (#14205) 2022-10-21 13:52:44 +01:00
test_username_available.py Use literals in place of HTTPStatus constants in tests (#13488) 2022-08-10 11:01:12 -07:00