forked-synapse/synapse
Will Hunt b257c788c0
Add /user/{user_id}/shared_rooms/ api (#7785)
* Add shared_rooms api

* Add changelog

* Add .

* Wrap response in {"rooms": }

* linting

* Add unstable_features key

* Remove options from isort that aren't part of 5.x

`-y` and `-rc` are now default behaviour and no longer exist.

`dont-skip` is no longer required

https://timothycrosley.github.io/isort/CHANGELOG/#500-penny-july-4-2020

* Update imports to make isort happy

* Add changelog

* Update tox.ini file with correct invocation

* fix linting again for isort

* Vendor prefix unstable API

* Fix to match spec

* import Codes

* import Codes

* Use FORBIDDEN

* Update changelog.d/7785.feature

Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>

* Implement get_shared_rooms_for_users

* a comma

* trailing whitespace

* Handle the easy feedback

* Switch to using runInteraction

* Add tests

* Feedback

* Seperate unstable endpoint from v2

* Add upgrade node

* a line

* Fix style by adding a blank line at EOF.

* Update synapse/storage/databases/main/user_directory.py

Co-authored-by: Tulir Asokan <tulir@maunium.net>

* Update synapse/storage/databases/main/user_directory.py

Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>

* Update UPGRADE.rst

Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>

* Fix UPGRADE/CHANGELOG unstable paths

unstable unstable unstable

Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
Co-authored-by: Tulir Asokan <tulir@maunium.net>

Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
Co-authored-by: Tulir Asokan <tulir@maunium.net>
2020-09-02 13:18:40 +01:00
..
_scripts Replace all remaining six usage with native Python 3 equivalents (#7704) 2020-06-16 08:51:47 -04:00
api Do not apply ratelimiting on joins to appservices (#8139) 2020-08-24 14:53:53 +01:00
app Convert the main methods run by the reactor to async. (#8213) 2020-09-02 07:44:50 -04:00
appservice Convert appservice code to async/await. (#8207) 2020-09-01 11:03:49 -04:00
config Allow capping a room's retention policy (#8104) 2020-08-24 18:21:04 +01:00
crypto Do not assume calls to runInteraction return Deferreds. (#8133) 2020-08-20 06:39:55 -04:00
events Convert additional databases to async/await part 2 (#8200) 2020-09-01 08:39:04 -04:00
federation Convert additional database code to async/await. (#8195) 2020-08-28 07:54:27 -04:00
groups Convert groups and visibility code to async / await. (#7951) 2020-07-27 12:32:08 -04:00
handlers Fix errors when updating the user directory with invalid data (#8223) 2020-09-01 13:02:41 -04:00
http Convert the well known resolver to async (#8214) 2020-09-01 09:15:22 -04:00
logging Use the JSON encoder without whitespace in more places. (#8124) 2020-08-20 10:32:33 -04:00
metrics Convert runWithConnection to async. (#8121) 2020-08-19 07:09:24 -04:00
module_api Do not assume calls to runInteraction return Deferreds. (#8133) 2020-08-20 06:39:55 -04:00
push Use the default templates when a custom template file cannot be found (#8037) 2020-08-17 17:05:00 +01:00
replication Move and rename get_devices_with_keys_by_user (#8204) 2020-09-01 12:41:21 +01:00
res/templates Implement login blocking based on SAML attributes (#8052) 2020-08-11 16:08:10 +01:00
rest Add /user/{user_id}/shared_rooms/ api (#7785) 2020-09-02 13:18:40 +01:00
server_notices Fix some comments and types in service notices (#7996) 2020-07-31 16:22:06 -04:00
spam_checker_api Allow denying or shadow banning registrations via the spam checker (#8034) 2020-08-20 15:42:58 -04:00
state Define StateMap as immutable and add a MutableStateMap type. (#8183) 2020-08-28 07:28:53 -04:00
static Clean-up the fallback login code. (#7657) 2020-06-10 09:50:39 -04:00
storage Add /user/{user_id}/shared_rooms/ api (#7785) 2020-09-02 13:18:40 +01:00
streams Remove ChainedIdGenerator. (#8123) 2020-08-19 13:41:51 +01:00
util Convert ReadWriteLock to async/await. (#8202) 2020-08-28 16:47:11 -04:00
__init__.py 1.19.1 2020-08-27 10:50:39 +01:00
event_auth.py Convert events worker database to async/await. (#8071) 2020-08-18 16:20:49 -04:00
notifier.py Fix typing for notifier (#8064) 2020-08-12 14:03:08 +01:00
python_dependencies.py Do not install setuptools 50.0. (#8212) 2020-09-01 08:16:58 -04:00
secrets.py Change HomeServer definition to work with typing. 2020-08-11 18:00:17 +01:00
server.py Add comment explaining cast 2020-08-11 22:01:12 +01:00
types.py Define StateMap as immutable and add a MutableStateMap type. (#8183) 2020-08-28 07:28:53 -04:00
visibility.py Convert groups and visibility code to async / await. (#7951) 2020-07-27 12:32:08 -04:00