summary refs log tree commit diff
path: root/synapse/handlers/groups_local.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove `HomeServer.get_datastore()` (#12031)Richard van der Hoff2022-02-231-1/+1
| | | | | | | The presence of this method was confusing, and mostly present for backwards compatibility. Let's get rid of it. Part of #11733
* Require type hints in the handlers module. (#10831)Patrick Cloke2021-09-201-3/+5
| | | | | | | Adds missing type hints to methods in the synapse.handlers module and requires all methods to have type hints there. This also removes the unused construct_auth_difference method from the FederationHandler.
* Use inline type hints in `handlers/` and `rest/`. (#10382)Jonathan de Jong2021-07-161-2/+2
|
* Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-141-1/+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>`
* Import HomeServer from the proper module. (#9665)Patrick Cloke2021-03-231-1/+1
|
* Update black, and run auto formatting over the codebase (#9381)Eric Eastwood2021-02-161-16/+8
| | | | | | | - 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
* Add type hints to various handlers. (#9223)Patrick Cloke2021-01-261-41/+42
| | | | With this change all handlers except the e2e_* ones have type hints enabled.
* Check if group IDs are valid before using them. (#8977)Patrick Cloke2020-12-301-1/+1
|
* Fix typos and spelling errors. (#8639)Patrick Cloke2020-10-231-2/+2
|
* Don't 500 for invalid group IDs (#8628)Erik Johnston2020-10-221-1/+4
|
* Simplify super() calls to Python 3 syntax. (#8344)Patrick Cloke2020-09-181-1/+1
| | | | | | | This converts calls like super(Foo, self) -> super(). Generated with: sed -i "" -Ee 's/super\([^\(]+\)/super()/g' **/*.py
* Stop sub-classing object (#8249)Patrick Cloke2020-09-041-1/+1
|
* Convert federation client to async/await. (#7975)Patrick Cloke2020-07-301-21/+14
|
* Add `HomeServer.signing_key` property (#7805)Richard van der Hoff2020-07-081-1/+1
| | | ... instead of duplicating `config.signing_key[0]` everywhere
* Replace iteritems/itervalues/iterkeys with native versions. (#7692)Patrick Cloke2020-06-151-3/+1
|
* Convert groups local and server to async/await. (#7600)Patrick Cloke2020-06-011-47/+35
|
* async/await is_server_admin (#7363)Andrew Morgan2020-05-011-12/+12
|
* Allow moving group read APIs to workers (#6866)Erik Johnston2020-02-071-131/+139
|
* Correctly proxy remote group HTTP errors. (#6654)Erik Johnston2020-01-071-0/+16
| | | | | e.g. if remote returns a 404 then that shouldn't be treated as an error but should be proxied through.
* Remove usage of deprecated logger.warn method from codebase (#6271)Andrew Morgan2019-10-311-1/+1
| | | Replace every instance of `logger.warn` with `logger.warning` as the former is deprecated.
* Correctly handle errors doing requests to group serversErik Johnston2019-07-291-32/+57
|
* Replace returnValue with return (#5736)Amber Brown2019-07-231-13/+13
|
* Run Black. (#5482)Amber Brown2019-06-201-54/+41
|
* Handle HttpResponseException when using federation client.Erik Johnston2019-06-071-3/+1
| | | | Otherwise we just log exceptions everywhere.
* Correctly handle RequestSendFailed exceptionsErik Johnston2019-02-141-3/+9
| | | | This mainly reduces the number of exceptions we log.
* Comments helpTravis Ralston2018-10-231-0/+5
|
* isortTravis Ralston2018-10-121-1/+1
|
* More sane handling of group errors and pep8Travis Ralston2018-10-121-4/+5
|
* Remove debugging statementTravis Ralston2018-09-261-1/+0
|
* Handle HttpResponseException more safely for federated groupsTravis Ralston2018-09-261-2/+11
|
* run isortAmber Brown2018-07-091-3/+4
|
* replace some iteritems with sixAdrian Tschira2018-05-191-1/+2
| | | | Signed-off-by: Adrian Tschira <nota@notafile.com>
* Implement group join APIDavid Baker2018-04-061-1/+39
|
* Use join_policy API instead of joinableLuke Barnard2018-04-031-1/+1
| | | | | | | | | | | | | | | | | The API is now under /groups/$group_id/setting/m.join_policy and expects a JSON blob of the shape ```json { "m.join_policy": { "type": "invite" } } ``` where "invite" could alternatively be "open".
* Add joinability for groupsDavid Baker2018-03-281-0/+3
| | | | | Adds API to set the 'joinable' flag, and corresponding flag in the table.
* fix order of operations derp and also use `.get` to default to {}Michael Telatynski2018-01-101-2/+3
| | | | Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
* Fix publicised groups API (singular) over federationMichael Telatynski2018-01-101-4/+4
| | | | | | | which was missing its fed client API, since there is no other API it might as well reuse the bulk one and unwrap it Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
* Make sure we check AS groups for lookup on bulkLuke Barnard2017-11-161-0/+5
|
* Add automagical AS Publicised Group(s)Luke Barnard2017-11-161-0/+6
| | | | | | | | | | | | | | | | via registration file "users" namespace: ```YAML ... namespaces: users: - exclusive: true regex: '.*luke.*' group_id: '+all_the_lukes:hsdomain' ... ``` This is part of giving App Services their own groups for matching users. With this, ghost users will be given the appeareance that they are in a group and that they have publicised the fact, but _only_ from the perspective of the `get_publicised_groups_for_user` API.
* Have an explicit API to update room configErik Johnston2017-11-081-0/+1
|
* Revert "Modify group room association API to allow modification of is_public"Erik Johnston2017-11-081-2/+2
|
* Modify group room association API to allow modification of is_publicLuke Barnard2017-10-311-2/+2
| | | | also includes renamings to make things more consistent.
* _create_rererouter for get_invited_users_in_groupLuke Barnard2017-10-161-17/+2
|
* Implement GET /groups/$groupId/invited_usersLuke Barnard2017-10-161-0/+17
|
* Log a warning when no profile for invited memberLuke Barnard2017-10-161-2/+5
| | | | And return empty profile
* Fix fetching remote summariesErik Johnston2017-10-111-2/+2
|
* Fix attestations to check correct server nameErik Johnston2017-10-111-10/+20
|
* Add remove room APIErik Johnston2017-09-261-0/+1
|
* Add is_publicised to group summaryErik Johnston2017-09-261-25/+31
|
* Ensure that creator of group sees group down /syncErik Johnston2017-09-191-4/+30
|
* Split out profile handler to fix testsErik Johnston2017-08-251-2/+1
|
* Add remote profile cacheErik Johnston2017-08-251-4/+13
|
* FixupErik Johnston2017-08-111-9/+13
|
* Add bulk group publicised lookup APIErik Johnston2017-08-091-0/+42
|
* Store whether the user wants to publicise their membership of a groupErik Johnston2017-08-081-0/+4
|
* Remove stale TODO commentsErik Johnston2017-08-041-10/+0
|
* Merge pull request #2378 from matrix-org/erikj/group_sync_supportErik Johnston2017-07-211-4/+17
|\ | | | | Add groups to sync stream
| * Add notifierErik Johnston2017-07-201-0/+1
| |
| * Fix replication. And notifyErik Johnston2017-07-201-4/+16
| |
* | Add update group profile APIErik Johnston2017-07-201-0/+1
|/
* CommentsErik Johnston2017-07-181-10/+19
|
* Fix typosErik Johnston2017-07-181-2/+3
|
* Update federation client pokesErik Johnston2017-07-181-13/+22
|
* Add client apisErik Johnston2017-07-181-1/+1
|
* CommentsErik Johnston2017-07-181-0/+3
|
* Use transport client directlyErik Johnston2017-07-181-18/+25
|
* Add local group server supportErik Johnston2017-07-171-0/+278