Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add config settings for background update parameters (#11980) | Shay | 2022-03-11 | 1 | -4/+5 |
| | |||||
* | Fix a bug in background updates wherein background updates are never run ↵ | Shay | 2022-03-07 | 1 | -10/+8 |
| | | | | using the default batch size (#12157) | ||||
* | Replace assertEquals and friends with non-deprecated versions. (#12092) | Patrick Cloke | 2022-02-28 | 1 | -7/+7 |
| | |||||
* | Remove `HomeServer.get_datastore()` (#12031) | Richard van der Hoff | 2022-02-23 | 7 | -20/+20 |
| | | | | | | | The presence of this method was confusing, and mostly present for backwards compatibility. Let's get rid of it. Part of #11733 | ||||
* | Add type hints to `tests/rest/admin` (#11851) | Dirk Klimpel | 2022-01-31 | 3 | -229/+183 |
| | |||||
* | Add admin API to get a list of federated rooms (#11658) | Dirk Klimpel | 2022-01-25 | 1 | -25/+277 |
| | |||||
* | Add admin API to reset connection timeouts for remote server (#11639) | Dirk Klimpel | 2022-01-25 | 1 | -4/+51 |
| | | | * Fix get federation status of destination if no error occured | ||||
* | Drop unused table `public_room_list_stream`. (#11795) | Richard van der Hoff | 2022-01-21 | 1 | -1/+0 |
| | | | This is a follow-up to #10565. | ||||
* | Make pagination of rooms in admin api stable (#11737) | Daniel Sonck | 2022-01-17 | 1 | -19/+28 |
| | | | | | | | | | | | | | | Always add state.room_id after the configurable ORDER BY. Otherwise, for any sort, certain pages can contain results from other pages. (Especially when sorting by creator, since there may be many rooms by the same creator) * Document different order direction of numerical fields "joined_members", "joined_local_members", "version" and "state_events" are ordered in descending direction by default (dir=f). Added a note in tests to explain the differences in ordering. Signed-off-by: Daniël Sonck <daniel@sonck.nl> | ||||
* | Remove the 'password_hash' from the Users Admin API endpoint response ↵ | Andrew Morgan | 2022-01-14 | 1 | -17/+33 |
| | | | | dictionary (#11576) | ||||
* | Replace uses of simple_insert_many with simple_insert_many_values. (#11742) | Patrick Cloke | 2022-01-13 | 1 | -11/+4 |
| | | | | This should be (slightly) more efficient and it is simpler to have a single method for inserting multiple values. | ||||
* | Fix get federation status of destination if no error occured (#11593) | Dirk Klimpel | 2022-01-05 | 1 | -18/+57 |
| | |||||
* | Add admin API to get users' account data (#11664) | Dirk Klimpel | 2022-01-05 | 1 | -0/+90 |
| | | | Co-authored-by: reivilibre <olivier@librepush.net> | ||||
* | Add type hints to `synapse/tests/rest/admin` (#11590) | Dirk Klimpel | 2021-12-16 | 5 | -57/+70 |
| | |||||
* | Ensure emails are canonicalized before fetching associated user. (#11547) | Patrick Cloke | 2021-12-10 | 1 | -1/+2 |
| | | | | This should fix pushers with an email in non-canonical form is used as the pushkey. | ||||
* | Add missing `errcode` to `parse_string` and `parse_boolean` (#11542) | Dirk Klimpel | 2021-12-09 | 4 | -10/+10 |
| | |||||
* | Clean up `synapse.rest.admin` (#11535) | Dirk Klimpel | 2021-12-08 | 1 | -1/+1 |
| | |||||
* | Fix 'delete room' admin api to work on incomplete rooms (#11523) | Richard van der Hoff | 2021-12-07 | 1 | -17/+25 |
| | | | | | If, for some reason, we don't have the create event, we should still be able to purge a room. | ||||
* | Add admin API to get some information about federation status (#11407) | Dirk Klimpel | 2021-12-06 | 1 | -0/+456 |
| | |||||
* | Add type hints to `synapse/tests/rest/admin` (#11501) | Dirk Klimpel | 2021-12-03 | 9 | -225/+256 |
| | |||||
* | Remove unnecessary `json.dumps` from `tests.rest.admin` (#11461) | Dirk Klimpel | 2021-11-30 | 1 | -41/+20 |
| | | | | | The tests helpers automatically convert dictionaries to JSON payloads, no need to do it manually for each test. | ||||
* | Convert status codes to `HTTPStatus` in `tests.rest.admin` (#11455) | Dirk Klimpel | 2021-11-30 | 11 | -557/+886 |
| | |||||
* | Make background updates controllable via a plugin (#11306) | Erik Johnston | 2021-11-29 | 1 | -1/+1 |
| | | | Co-authored-by: Brendan Abolivier <babolivier@matrix.org> | ||||
* | Lower minumum batch size to 1 for background updates (#11422) | Brendan Abolivier | 2021-11-24 | 1 | -8/+17 |
| | | | Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | ||||
* | Add an admin API to run background jobs. (#11352) | Dirk Klimpel | 2021-11-19 | 1 | -8/+146 |
| | | | | | | Instead of having admins poke into the database directly. Can currently run jobs to populate stats and to populate the user directory. | ||||
* | Add dedicated admin API for blocking a room (#11324) | Dirk Klimpel | 2021-11-18 | 1 | -0/+228 |
| | |||||
* | Rename `get_access_token_for_user_id` method to ↵ | reivilibre | 2021-11-17 | 1 | -2/+2 |
| | | | | `create_access_token_for_user_id` (#11369) | ||||
* | Add ability to un-shadow-ban via the admin API. (#11347) | Patrick Cloke | 2021-11-16 | 1 | -6/+20 |
| | |||||
* | Convert delete room admin API to async endpoint (#11223) | Dirk Klimpel | 2021-11-12 | 2 | -65/+709 |
| | | | Signed-off-by: Dirk Klimpel dirk@klimpel.org | ||||
* | Allow admins to proactively block rooms (#11228) | David Robertson | 2021-11-09 | 1 | -0/+28 |
| | | | | Co-authored-by: Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | ||||
* | Add some background update admin APIs (#11263) | Erik Johnston | 2021-11-08 | 1 | -0/+218 |
| | | | Fixes #11259 | ||||
* | Add search by room ID and room alias to List Room admin API (#11099) | Dirk Klimpel | 2021-11-02 | 1 | -39/+49 |
| | | | | Fixes: #10874 Signed-off-by: Dirk Klimpel dirk@klimpel.org | ||||
* | Fix a bug in unit test `test_block_room_and_not_purge` (#11226) | Dirk Klimpel | 2021-11-01 | 1 | -2/+2 |
| | |||||
* | Remove deprecated delete room admin API (#11213) | Dirk Klimpel | 2021-11-01 | 1 | -24/+15 |
| | | | | | Remove deprecated delete room admin API, `POST /_synapse/admin/v1/rooms/<room_id>/delete` | ||||
* | Enable changing user type via users admin API (#11174) | Jason Robinson | 2021-10-26 | 1 | -0/+51 |
| | | | | | | | | Users admin API can now also modify user type in addition to allowing it to be set on user creation. Signed-off-by: Jason Robinson <jasonr@matrix.org> Co-authored-by: Brendan Abolivier <babolivier@matrix.org> | ||||
* | Fix setting a user's external_id via the admin API returns 500 and deletes ↵ | Dirk Klimpel | 2021-10-21 | 1 | -3/+212 |
| | | | | | users existing external mappings if that external ID is already mapped (#11051) Fixes #10846 | ||||
* | Show error when timestamp in seconds is provided to the /purge_media_cache ↵ | Aaron R | 2021-10-20 | 1 | -4/+102 |
| | | | | API (#11101) | ||||
* | Simplify the user admin API tests (#11048) | Dirk Klimpel | 2021-10-12 | 1 | -255/+146 |
| | |||||
* | Use direct references for configuration variables (part 7). (#10959) | Patrick Cloke | 2021-10-04 | 1 | -2/+2 |
| | |||||
* | Use direct references for configuration variables (part 6). (#10916) | Patrick Cloke | 2021-09-29 | 1 | -3/+3 |
| | |||||
* | Use direct references for configuration variables (part 5). (#10897) | Patrick Cloke | 2021-09-24 | 2 | -3/+3 |
| | |||||
* | Add reactor to `SynapseRequest` and fix up types. (#10868) | Erik Johnston | 2021-09-24 | 3 | -7/+7 |
| | |||||
* | Allow `.` and `~` chars in registration tokens (#10887) | Callum Brown | 2021-09-23 | 1 | -3/+5 |
| | | | | Per updates to MSC3231 in order to use the same grammar as other identifiers. | ||||
* | Use direct references for some configuration variables (part 3) (#10885) | Patrick Cloke | 2021-09-23 | 1 | -1/+1 |
| | | | | | | | | This avoids the overhead of searching through the various configuration classes by directly referencing the class that the attributes are in. It also improves type hints since mypy can now resolve the types of the configuration variables. | ||||
* | Allow Synapse Admin API's Room Search to accept non-ASCII characters (#10859) | Hillery Shay | 2021-09-21 | 1 | -0/+27 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add tests for checking if room search works with non-ascii char * change encoding on parse_string to UTF-8 * lints * properly encode search term * lints * add changelog file * update changelog number * set changelog entry filetype to .bugfix * Revert "set changelog entry filetype to .bugfix" This reverts commit be8e5a314251438ec4ec7dbc59ba32162c93e550. * update changelog message and file type * change parse_string default encoding back to ascii and update room search admin api calll to parse string * refactor tests * Update tests/rest/admin/test_room.py Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> | ||||
* | Create a constant for a small png image in tests. (#10834) | Patrick Cloke | 2021-09-16 | 4 | -66/+22 |
| | | | To avoid duplicating it between a few tests. | ||||
* | Improve ServerNoticeServlet to avoid duplicate requests (#10679) | Dirk Klimpel | 2021-08-27 | 1 | -0/+450 |
| | | | Fixes: #9544 | ||||
* | Implement MSC3231: Token authenticated registration (#10142) | Callum Brown | 2021-08-21 | 1 | -0/+710 |
| | | | | | Signed-off-by: Callum Brown <callum@calcuode.com> This is part of my GSoC project implementing [MSC3231](https://github.com/matrix-org/matrix-doc/pull/3231). | ||||
* | Simplify tests for the device admin rest API. (#10664) | Dirk Klimpel | 2021-08-20 | 1 | -81/+18 |
| | | | | By replacing duplicated code with parameterized tests and avoiding unnecessary dumping of JSON data. | ||||
* | Remove not needed database updates in modify user admin API (#10627) | Dirk Klimpel | 2021-08-19 | 1 | -4/+58 |
| | |||||
* | Remove deprecated Shutdown Room and Purge Room Admin API (#8830) | Dirk Klimpel | 2021-08-17 | 1 | -162/+0 |
| | |||||
* | Flatten the synapse.rest.client package (#10600) | reivilibre | 2021-08-17 | 8 | -11/+8 |
| | |||||
* | Allow to edit `external_ids` by Edit User admin API (#10598) | Dirk Klimpel | 2021-08-17 | 1 | -30/+197 |
| | | | Signed-off-by: Dirk Klimpel dirk@klimpel.org | ||||
* | Add an admin API to check if a username is available (#10578) | Will Hunt | 2021-08-17 | 1 | -0/+62 |
| | | | This adds a new API GET /_synapse/admin/v1/username_available?username=foo to check if a username is available. It is the counterpart to https://matrix.org/docs/spec/client_server/r0.6.0#get-matrix-client-r0-register-available, except that it works even if registration is disabled. | ||||
* | Admin API to delete media for a specific user (#10558) | Dirk Klimpel | 2021-08-11 | 1 | -113/+208 |
| | |||||
* | Add `creation_ts` to list users admin API (#10448) | Dirk Klimpel | 2021-07-22 | 1 | -18/+27 |
| | | | Signed-off-by: Dirk Klimpel dirk@klimpel.org | ||||
* | Add type hints to additional servlet functions (#10437) | Patrick Cloke | 2021-07-21 | 1 | -2/+2 |
| | | | | | | | | | Improves type hints for: * parse_{boolean,integer} * parse_{boolean,integer}_from_args * parse_json_{value,object}_from_request And fixes any incorrect calls that resulted from unknown types. | ||||
* | [pyupgrade] `tests/` (#10347) | Jonathan de Jong | 2021-07-13 | 2 | -14/+12 |
| | |||||
* | Remove functionality associated with unused historical stats tables (#9721) | Cristina | 2021-07-08 | 1 | -1/+0 |
| | | | Fixes #9602 | ||||
* | Fix deactivate a user if he does not have a profile (#10252) | Dirk Klimpel | 2021-07-06 | 1 | -18/+68 |
| | |||||
* | Add SSO `external_ids` to Query User Account admin API (#10261) | Dirk Klimpel | 2021-07-01 | 1 | -84/+140 |
| | | | Related to #10251 | ||||
* | Add new admin APIs to remove media by media ID from quarantine. (#10044) | Dirk Klimpel | 2021-06-02 | 1 | -0/+128 |
| | | | | | Related to: #6681, #5956, #10040 Signed-off-by: Dirk Klimpel dirk@klimpel.org | ||||
* | Make reason and score optional for report_event (#10077) | Callum Brown | 2021-05-27 | 1 | -1/+14 |
| | | | | | | Implements MSC2414: https://github.com/matrix-org/matrix-doc/pull/2414 See #8551 Signed-off-by: Callum Brown <callum@calcuode.com> | ||||
* | Add an admin API for unprotecting local media from quarantine (#10040) | Dirk Klimpel | 2021-05-26 | 1 | -0/+99 |
| | | | Signed-off-by: Dirk Klimpel dirk@klimpel.org | ||||
* | Delete room endpoint (#9889) | ThibF | 2021-04-29 | 1 | -19/+26 |
| | | | | | | Support the delete of a room through DELETE request and mark previous request as deprecated through documentation. Signed-off-by: Thibault Ferrante <thibault.ferrante@pm.me> | ||||
* | Remove various bits of compatibility code for Python <3.6 (#9879) | Andrew Morgan | 2021-04-27 | 1 | -9/+6 |
| | | | I went through and removed a bunch of cruft that was lying around for compatibility with old Python versions. This PR also will now prevent Synapse from starting unless you're running Python 3.6+. | ||||
* | Fix (final) Bugbear violations (#9838) | Jonathan de Jong | 2021-04-20 | 5 | -13/+13 |
| | |||||
* | Remove redundant "coding: utf-8" lines (#9786) | Jonathan de Jong | 2021-04-14 | 8 | -8/+0 |
| | | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>` | ||||
* | Add an admin API to manage ratelimit for a specific user (#9648) | Dirk Klimpel | 2021-04-13 | 1 | -0/+284 |
| | |||||
* | Use mock from the stdlib. (#9772) | Patrick Cloke | 2021-04-09 | 3 | -6/+3 |
| | |||||
* | Add `order_by` to list user admin API (#9691) | Dirk Klimpel | 2021-04-01 | 1 | -1/+120 |
| | |||||
* | Consistently check whether a password may be set for a user. (#9636) | Dirk Klimpel | 2021-03-18 | 1 | -55/+118 |
| | |||||
* | Add an `order_by` field to list users' media admin API. (#8978) | Dirk Klimpel | 2021-02-22 | 1 | -21/+225 |
| | |||||
* | Add the shadow-banning status to the display user admin API. (#9400) | Dirk Klimpel | 2021-02-17 | 1 | -0/+2 |
| | |||||
* | Update black, and run auto formatting over the codebase (#9381) | Eric Eastwood | 2021-02-16 | 7 | -252/+748 |
| | | | | | | | - Update black version to the latest - Run black auto formatting over the codebase - Run autoformatting according to [`docs/code_style.md `](https://github.com/matrix-org/synapse/blob/80d6dc9783aa80886a133756028984dbf8920168/docs/code_style.md) - Update `code_style.md` docs around installing black to use the correct version | ||||
* | Merge pull request #9150 from Yoric/develop-context | David Teller | 2021-02-08 | 1 | -0/+84 |
|\ | | | | | New API /_synapse/admin/rooms/{roomId}/context/{eventId} | ||||
| * | FIXUP: linter | David Teller | 2021-01-28 | 1 | -1/+3 |
| | | |||||
| * | FIXUP: Now testing that the user is admin! | David Teller | 2021-01-28 | 1 | -1/+35 |
| | | |||||
| * | New API /_synapse/admin/rooms/{roomId}/context/{eventId} | David Teller | 2021-01-28 | 1 | -0/+48 |
| | | | | | | | | Signed-off-by: David Teller <davidt@element.io> | ||||
* | | Add an admin API to get the current room state (#9168) | Travis Ralston | 2021-02-02 | 1 | -0/+15 |
|/ | | | | | This could arguably replace the existing admin API for `/members`, however that is out of scope of this change. This sort of endpoint is ideal for moderation use cases as well as other applications, such as needing to retrieve various bits of information about a room to perform a task (like syncing power levels between two places). This endpoint exposes nothing more than an admin would be able to access with a `select *` query on their database. | ||||
* | Add an admin API for shadow-banning users. (#9209) | Patrick Cloke | 2021-01-25 | 1 | -0/+64 |
| | | | | | | | | | | This expands the current shadow-banning feature to be usable via the admin API and adds documentation for it. A shadow-banned users receives successful responses to their client-server API requests, but the events are not propagated into rooms. Shadow-banning a user should be used as a tool of last resort and may lead to confusing or broken behaviour for the client. | ||||
* | Add tests for List Users Admin API (#9045) | Dirk Klimpel | 2021-01-21 | 1 | -27/+196 |
| | |||||
* | Add an admin API endpoint to protect media. (#9086) | Patrick Cloke | 2021-01-15 | 1 | -3/+5 |
| | | | | | | Protecting media stops it from being quarantined when e.g. all media in a room is quarantined. This is useful for sticker packs and other media that is uploaded by server administrators, but used by many people. | ||||
* | Remove user's avatar URL and displayname when deactivated. (#8932) | Dirk Klimpel | 2021-01-12 | 1 | -0/+220 |
| | | | This only applies if the user's data is to be erased. | ||||
* | Also support remote users on the joined_rooms admin API. (#8948) | David Teller | 2021-01-11 | 1 | -6/+52 |
| | | | | For remote users, only the rooms which the server knows about are returned. Local users have all of their joined rooms returned. | ||||
* | Removes unnecessary declarations in the tests for the admin API. (#9063) | Dirk Klimpel | 2021-01-11 | 6 | -17/+0 |
| | |||||
* | Drop the unused local_invites table. (#8979) | Patrick Cloke | 2020-12-29 | 1 | -1/+0 |
| | | | This table has been unused since Synapse v1.17.0. | ||||
* | Allow server admin to get admin bit in rooms where local user is an admin ↵ | Erik Johnston | 2020-12-18 | 1 | -0/+138 |
| | | | | | | | (#8756) This adds an admin API that allows a server admin to get power in a room if a local user has power in a room. Will also invite the user if they're not in the room and its a private room. Can specify another user (rather than the admin user) to be granted power. Co-authored-by: Matthew Hodgson <matthew@matrix.org> | ||||
* | Fix `UsersListTestCase` (#8964) | Richard van der Hoff | 2020-12-17 | 1 | -6/+4 |
| | |||||
* | Fix a bug that deactivated users appear in the directory (#8933) | Dirk Klimpel | 2020-12-17 | 1 | -1/+49 |
| | | | | | | | | | | Fixes a bug that deactivated users appear in the directory when their profile information was updated. To change profile information of deactivated users is neccesary for example you will remove displayname or avatar. But they should not appear in directory. They are deactivated. Co-authored-by: Erik Johnston <erikj@jki.re> | ||||
* | Make search statement in List Room and User Admin API case-insensitive (#8931) | Dirk Klimpel | 2020-12-17 | 2 | -3/+105 |
| | |||||
* | Convert internal pusher dicts to attrs classes. (#8940) | Patrick Cloke | 2020-12-16 | 1 | -1/+1 |
| | | | This improves type hinting and should use less memory. | ||||
* | Remove spurious "SynapseRequest" result from `make_request" | Richard van der Hoff | 2020-12-15 | 7 | -441/+301 |
| | | | | This was never used, so let's get rid of it. | ||||
* | Add number of local devices to Room Details Admin API (#8886) | Dirk Klimpel | 2020-12-11 | 1 | -0/+34 |
| | |||||
* | Call set_avatar_url with target_user, not user_id (#8872) | Will Hunt | 2020-12-07 | 1 | -1/+6 |
| | | | | | | | | | | | | | | | | | | | | * Call set_avatar_url with target_user, not user_id Fixes https://github.com/matrix-org/synapse/issues/8871 * Create 8872.bugfix * Update synapse/rest/admin/users.py Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> * Testing * Update changelog.d/8872.bugfix Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | ||||
* | Add additional validation to pusher URLs. (#8865) | Patrick Cloke | 2020-12-04 | 1 | -1/+1 |
| | | | | Pusher URLs now must end in `/_matrix/push/v1/notify` per the specification. | ||||
* | Apply an IP range blacklist to push and key revocation requests. (#8821) | Patrick Cloke | 2020-12-02 | 1 | -1/+1 |
| | | | | | | | | | | | | Replaces the `federation_ip_range_blacklist` configuration setting with an `ip_range_blacklist` setting with wider scope. It now applies to: * Federation * Identity servers * Push notifications * Checking key validitity for third-party invite events The old `federation_ip_range_blacklist` setting is still honored if present, but with reduced scope (it only applies to federation and identity servers). | ||||
* | Fix broken testcase (#8851) | Richard van der Hoff | 2020-12-01 | 1 | -1/+0 |
| | | | | This test was broken by #8565. It doesn't need to set set `self.clock` here anyway - that is done by `setUp`. | ||||
* | Remove deprecated `/_matrix/client/*/admin` endpoints (#8785) | Dirk Klimpel | 2020-11-25 | 3 | -4/+112 |
| | | | These are now only available via `/_synapse/admin/v1`. | ||||
* | Fix tests on develop (#8777) | Erik Johnston | 2020-11-18 | 1 | -16/+0 |
| | | | This was broken due to #8617 and #8761. | ||||
* | Merge pull request #8761 from matrix-org/rav/test_request_rendering | Richard van der Hoff | 2020-11-17 | 7 | -278/+0 |
|\ | | | | | Make `make_request` actually render the request | ||||
| * | Remove redundant `HomeserverTestCase.render` | Richard van der Hoff | 2020-11-16 | 7 | -266/+0 |
| | | |||||
| * | Make `make_request` actually render the request | Richard van der Hoff | 2020-11-16 | 2 | -12/+0 |
| | | | | | | | | | | | | remove the stubbing out of `request.process`, so that `requestReceived` also renders the request via the appropriate resource. Replace render() with a stub for now. | ||||
* | | Add admin API for logging in as a user (#8617) | Erik Johnston | 2020-11-17 | 1 | -2/+243 |
|/ | |||||
* | Merge branch 'develop' into rav/pass_site_to_make_request | Richard van der Hoff | 2020-11-16 | 1 | -1/+1 |
|\ | |||||
| * | Rename `create_test_json_resource` to `create_test_resource` (#8759) | Richard van der Hoff | 2020-11-16 | 1 | -1/+1 |
| | | | | | | | | | | The root resource isn't necessarily a JsonResource, so rename this method accordingly, and update a couple of test classes to use the method rather than directly manipulating self.resource. | ||||
* | | use global make_request() directly where we have a custom Resource | Richard van der Hoff | 2020-11-15 | 2 | -7/+24 |
|/ | | | | | | Where we want to render a request against a specific Resource, call the global make_request() function rather than the one in HomeserverTestCase, allowing us to pass in an appropriate `Site`. | ||||
* | Add an admin API for users' media statistics (#8700) | Dirk Klimpel | 2020-11-05 | 1 | -0/+485 |
| | | | | | | | | Add `GET /_synapse/admin/v1/statistics/users/media` to get statisics about local media usage by users. Related to #6094 It is the first API for statistics. Goal is to avoid/reduce usage of sql queries like [Wiki analyzing Synapse](https://github.com/matrix-org/synapse/wiki/SQL-for-analyzing-Synapse-PostgreSQL-database-stats) Signed-off-by: Dirk Klimpel dirk@klimpel.org | ||||
* | Add `displayname` to Shared-Secret Registration for admins (#8722) | Dirk Klimpel | 2020-11-05 | 1 | -2/+119 |
| | | | Add `displayname` to Shared-Secret Registration for admins to `POST /_synapse/admin/v1/register` | ||||
* | Consolidate purge table lists to prevent desyncronisation (#8713) | Andrew Morgan | 2020-11-04 | 1 | -67/+38 |
| | | | I idly noticed that these lists were out of sync with each other, causing us to miss a table in a test case (`local_invites`). Let's consolidate this list instead to prevent this from happening in the future. | ||||
* | Fix unit tests (#8689) | Erik Johnston | 2020-10-29 | 1 | -1/+1 |
| | | | | | * Fix unit tests * Newsfile | ||||
* | Add an admin APIs to allow server admins to list users' pushers (#8610) | Dirk Klimpel | 2020-10-28 | 1 | -0/+124 |
| | | | Add an admin API `GET /_synapse/admin/v1/users/<user_id>/pushers` like https://matrix.org/docs/spec/client_server/latest#get-matrix-client-r0-pushers | ||||
* | Add admin API to list users' local media (#8647) | Dirk Klimpel | 2020-10-27 | 1 | -0/+282 |
| | | | Add admin API `GET /_synapse/admin/v1/users/<user_id>/media` to get information of users' uploaded files. | ||||
* | Split admin API for reported events into a detail and a list view (#8539) | Dirk Klimpel | 2020-10-26 | 1 | -13/+183 |
| | | | | | | | | | | | | Split admin API for reported events in detail und list view. API was introduced with #8217 in synapse v.1.21.0. It makes the list (`GET /_synapse/admin/v1/event_reports`) less complex and provides a better overview. The details can be queried with: `GET /_synapse/admin/v1/event_reports/<report_id>`. It is similar to room and users API. It is a kind of regression in `GET /_synapse/admin/v1/event_reports`. `event_json` was removed. But the api was introduced one version before and it is an admin API (not under spec). Signed-off-by: Dirk Klimpel dirk@klimpel.org | ||||
* | Add an admin api to delete local media. (#8519) | Dirk Klimpel | 2020-10-26 | 1 | -0/+568 |
| | | | | | | Related to: #6459, #3479 Add `DELETE /_synapse/admin/v1/media/<server_name>/<media_id>` to delete a single file from server. | ||||
* | Fix a bug in the joined_rooms admin API (#8643) | Dirk Klimpel | 2020-10-26 | 1 | -1/+15 |
| | | | | If the user was not in any rooms then the API returned the same error as if the user did not exist. | ||||
* | Add field `total` to device list in admin API (#8644) | Dirk Klimpel | 2020-10-26 | 1 | -0/+17 |
| | |||||
* | Fixed a bug with reactivating users with the admin API (#8362) | Dirk Klimpel | 2020-09-22 | 1 | -0/+14 |
| | | | | | | | Fixes: #8359 Trying to reactivate a user with the admin API (`PUT /_synapse/admin/v2/users/<user_name>`) causes an internal server error. Seems to be a regression in #8033. | ||||
* | Admin API for reported events (#8217) | Dirk Klimpel | 2020-09-22 | 1 | -0/+382 |
| | | | Add an admin API to read entries of table `event_reports`. API: `GET /_synapse/admin/v1/event_reports` | ||||
* | Create function to check for long names in devices (#8364) | Dionysis Grigoropoulos | 2020-09-22 | 1 | -1/+1 |
| | | | | | | | | | * Create a new function to verify that the length of a device name is under a certain threshold. * Refactor old code and tests to use said function. * Verify device name length during registration of device * Add a test for the above Signed-off-by: Dionysis Grigoropoulos <dgrig@erethon.com> | ||||
* | Admin API for querying rooms where a user is a member (#8306) | Dirk Klimpel | 2020-09-18 | 1 | -2/+94 |
| | | | | Add a new admin API `GET /_synapse/admin/v1/users/<user_id>/joined_rooms` to list all rooms where a user is a member. | ||||
* | Add the topic and avatar to the room details admin API (#8305) | Tulir Asokan | 2020-09-14 | 1 | -0/+2 |
| | |||||
* | Allow for make_awaitable's return value to be re-used. (#8261) | Patrick Cloke | 2020-09-08 | 1 | -3/+3 |
| | |||||
* | Convert stats and related calls to async/await (#8192) | Patrick Cloke | 2020-08-27 | 1 | -5/+4 |
| | |||||
* | Convert synapse.api to async/await (#8031) | Patrick Cloke | 2020-08-06 | 1 | -3/+7 |
| | |||||
* | Rename database classes to make some sense (#8033) | Erik Johnston | 2020-08-05 | 1 | -2/+2 |
| | |||||
* | Convert federation client to async/await. (#7975) | Patrick Cloke | 2020-07-30 | 1 | -2/+2 |
| | |||||
* | Add an option to disable purge in delete room admin API (#7964) | Dirk Klimpel | 2020-07-28 | 1 | -2/+55 |
| | | | | | | Add option ```purge``` to ```POST /_synapse/admin/v1/rooms/<room_id>/delete``` Fixes: #3761 Signed-off-by: Dirk Klimpel dirk@klimpel.org | ||||
* | Convert tests/rest/admin/test_room.py to unix file endings (#7953) | Andrew Morgan | 2020-07-27 | 1 | -1447/+1447 |
| | | | | | Converts tests/rest/admin/test_room.py to have unix file endings after they were accidentally changed in #7613. Keeping the same changelog as #7613 as it hasn't gone out in a release yet. | ||||
* | Add admin endpoint to get members in a room. (#7842) | Michael Albert | 2020-07-16 | 1 | -0/+46 |
| | |||||
* | Allow accounts to be re-activated from the admin APIs. (#7847) | Patrick Cloke | 2020-07-15 | 1 | -0/+47 |
| | |||||
* | Add delete room admin endpoint (#7613) | Dirk Klimpel | 2020-07-14 | 1 | -0/+395 |
| | | | | | | | | | | | | | | | | | | The Delete Room admin API allows server admins to remove rooms from server and block these rooms. `DELETE /_synapse/admin/v1/rooms/<room_id>` It is a combination and improvement of "[Shutdown room](https://github.com/matrix-org/synapse/blob/develop/docs/admin_api/shutdown_room.md)" and "[Purge room](https://github.com/matrix-org/synapse/blob/develop/docs/admin_api/purge_room.md)" API. Fixes: #6425 It also fixes a bug in [synapse/storage/data_stores/main/room.py](synapse/storage/data_stores/main/room.py) in ` get_room_with_stats`. It should return `None` if the room is unknown. But it returns an `IndexError`. https://github.com/matrix-org/synapse/blob/901b1fa561e3cc661d78aa96d59802cf2078cb0d/synapse/storage/data_stores/main/room.py#L99-L105 Related to: - #5575 - https://github.com/Awesome-Technologies/synapse-admin/issues/17 Signed-off-by: Dirk Klimpel dirk@klimpel.org | ||||
* | Stop populating unused table `local_invites`. (#7793) | Richard van der Hoff | 2020-07-07 | 1 | -1/+0 |
| | | | | | This table is no longer used, so we may as well stop populating it. Removing it would prevent people rolling back to older releases of Synapse, so that can happen in a future release. | ||||
* | Allow local media to be marked as safe from being quarantined. (#7718) | Patrick Cloke | 2020-06-22 | 1 | -72/+65 |
| | |||||
* | Allow new users to be registered via the admin API even if the monthly ↵ | Dirk Klimpel | 2020-06-05 | 1 | -15/+163 |
| | | | | active user limit has been reached (#7263) | ||||
* | Add device management to admin API (#7481) | Dirk Klimpel | 2020-06-05 | 1 | -0/+541 |
| | | | | | | | | | | - Admin is able to - change displaynames - delete devices - list devices - get device informations Fixes #7330 | ||||
* | Email notifications for new users when creating via the Admin API. (#7267) | Dirk Klimpel | 2020-06-01 | 1 | -0/+75 |
| | |||||
* | Add room details admin endpoint (#7317) | Manuel Stahl | 2020-05-07 | 1 | -0/+41 |
| | |||||
* | Return total number of users and profile attributes in admin users endpoint ↵ | Manuel Stahl | 2020-04-28 | 1 | -0/+2 |
| | | | | | (#6881) Signed-off-by: Manuel Stahl <manuel.stahl@awesome-technologies.de> | ||||
* | Extend room admin api with additional attributes (#7225) | Dirk Klimpel | 2020-04-22 | 2 | -592/+680 |
| | |||||
* | Admin API to join users to a room. (#7051) | Dirk Klimpel | 2020-03-27 | 1 | -0/+288 |
| | |||||
* | Remove special casing of `m.room.aliases` events (#7034) | Patrick Cloke | 2020-03-17 | 1 | -0/+7 |
| | |||||
* | Fixed set a user as an admin with the new API (#6928) | Dirk Klimpel | 2020-02-28 | 1 | -32/+186 |
| | | | Fix #6910 | ||||
* | Ensure 'deactivated' parameter is a boolean on user admin API, Fix error ↵ | Andrew Morgan | 2020-02-26 | 1 | -0/+59 |
| | | | | handling of call to deactivate user (#6990) | ||||
* | Return a 404 for admin api user lookup if user not found (#6901) | Andrew Morgan | 2020-02-12 | 1 | -0/+16 |
| | |||||
* | Admin api to add an email address (#6789) | Dirk Klimpel | 2020-02-07 | 1 | -2/+17 |
| | |||||
* | MSC2260: Block direct sends of m.room.aliases events (#6794) | Richard van der Hoff | 2020-01-30 | 1 | -7/+0 |
| | | | | | as per MSC2260 | ||||
* | Admin API to list, filter and sort rooms (#6720) | Andrew Morgan | 2020-01-22 | 1 | -4/+389 |
| | |||||
* | Fix and add test to deprecated quarantine media admin api (#6756) | Andrew Morgan | 2020-01-22 | 1 | -4/+11 |
| | |||||
* | Fix changing password via user admin API. (#6730) | Erik Johnston | 2020-01-20 | 1 | -0/+13 |
| | |||||
* | Fix purge_room admin API (#6711) | Erik Johnston | 2020-01-15 | 1 | -3/+1 |
| | |||||
* | Quarantine media by ID or user ID (#6681) | Andrew Morgan | 2020-01-13 | 1 | -0/+341 |
| | |||||
* | Allow admin users to create or modify users without a shared secret (#6495) | Manuel Stahl | 2020-01-09 | 2 | -338/+465 |
| | | | Signed-off-by: Manuel Stahl <manuel.stahl@awesome-technologies.de> | ||||
* | Fix GET request on /_synapse/admin/v2/users endpoint (#6563) | Manuel Stahl | 2020-01-08 | 1 | -0/+41 |
| | | | | Fixes #6552 | ||||
* | Move DB pool and helper functions into dedicated Database class | Erik Johnston | 2019-12-05 | 1 | -1/+1 |
| | |||||
* | Remove underscore from SQLBaseStore functions | Erik Johnston | 2019-12-04 | 1 | -1/+1 |
| | |||||
* | Blacklist PurgeRoomTestCase (#6361) | Andrew Morgan | 2019-11-13 | 1 | -0/+2 |
| | |||||
* | Fix deleting state groups during room purge. | Erik Johnston | 2019-11-06 | 1 | -1/+3 |
| | | | | And fix the tests to actually test that things got deleted. | ||||
* | Add unit test for /purge_room API | Erik Johnston | 2019-10-31 | 1 | -0/+78 |
| | |||||
* | Fix races in room stats (and other) updates. (#6187) | Richard van der Hoff | 2019-10-10 | 1 | -1/+1 |
| | | | | | | | Hopefully this will fix the occasional failures we were seeing in the room directory. The problem was that events are not necessarily persisted (and `current_state_delta_stream` updated) in the same order as their stream_id. So for instance current_state_delta 9 might be persisted *before* current_state_delta 8. Then, when the room stats saw stream_id 9, it assumed it had done everything up to 9, and never came back to do stream_id 8. We can solve this easily by only processing up to the stream_id where we know all events have been persisted. | ||||
* | Run Black. (#5482) | Amber Brown | 2019-06-20 | 1 | -51/+49 |
| | |||||
* | Unify v1 and v2 REST client APIs (#5226) | Amber Brown | 2019-06-03 | 1 | -1/+0 |
| | |||||
* | Run Black on the tests again (#5170) | Amber Brown | 2019-05-10 | 1 | -70/+33 |
| | |||||
* | Remove the requirement to authenticate for /admin/server_version. (#5122) | Richard van der Hoff | 2019-05-07 | 1 | -22/+8 |
| | | | | | | | | | This endpoint isn't much use for its intended purpose if you first need to get yourself an admin's auth token. I've restricted it to the `/_synapse/admin` path to make it a bit easier to lock down for those concerned about exposing this information. I don't imagine anyone is using it in anger currently. | ||||
* | Add admin api for sending server_notices (#5121) | Richard van der Hoff | 2019-05-02 | 1 | -4/+4 |
| | |||||
* | Move admin api impl to its own package | Richard van der Hoff | 2019-05-01 | 2 | -0/+631 |
It doesn't really belong under rest/client/v1 any more. |