summary refs log tree commit diff
path: root/synapse/groups (follow)
Commit message (Collapse)AuthorAgeFilesLines
* another typoMatthew Hodgson2018-07-101-1/+1
|
* typo (i think)Matthew Hodgson2018-07-101-1/+1
|
* run isortAmber Brown2018-07-092-6/+6
|
* Replace some more comparisons with sixAdrian Tschira2018-05-191-1/+3
| | | | | | plus a bonus b"" string I missed last time Signed-off-by: Adrian Tschira <nota@notafile.com>
* Merge remote-tracking branch 'origin/develop' into rav/use_run_in_backgroundRichard van der Hoff2018-04-271-20/+24
|\
| * Improve exception handling for background processesRichard van der Hoff2018-04-271-20/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were a bunch of places where we fire off a process to happen in the background, but don't have any exception handling on it - instead relying on the unhandled error being logged when the relevent deferred gets garbage-collected. This is unsatisfactory for a number of reasons: - logging on garbage collection is best-effort and may happen some time after the error, if at all - it can be hard to figure out where the error actually happened. - it is logged as a scary CRITICAL error which (a) I always forget to grep for and (b) it's not really CRITICAL if a background process we don't care about fails. So this is an attempt to add exception handling to everything we fire off into the background.
* | Use run_in_background in preference to preserve_fnRichard van der Hoff2018-04-271-2/+2
|/ | | | | | While I was going through uses of preserve_fn for other PRs, I converted places which only use the wrapped function once to use run_in_background, to avoid creating the function object.
* de-lint, quote consistencyLuke Barnard2018-04-061-2/+2
|
* Explicitly grab individual columns from group objectLuke Barnard2018-04-061-6/+8
|
* When exposing group state, return is_openly_joinableLuke Barnard2018-04-061-0/+5
| | | | | | | | | as opposed to join_policy, which is really only pertinent to the synapse implementation of the group server. By doing this we keep the group server concept extensible by allowing arbitrarily complex rules for deciding whether a group is openly joinable.
* By default, join policy is "invite"Luke Barnard2018-04-061-1/+1
|
* add_user -> _add_userLuke Barnard2018-04-061-3/+3
|
* pep8Luke Barnard2018-04-061-1/+3
|
* Get group_info from existing call to check_group_is_oursLuke Barnard2018-04-061-5/+1
|
* is_joinable -> join_ruleLuke Barnard2018-04-061-1/+1
|
* Factor out add_user from accept_invite and join_groupLuke Barnard2018-04-061-41/+29
|
* Implement group join APIDavid Baker2018-04-061-0/+45
|
* Use join_policy API instead of joinableLuke Barnard2018-04-031-6/+35
| | | | | | | | | | | | | | | | | 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/+19
| | | | | Adds API to set the 'joinable' flag, and corresponding flag in the table.
* Namespace visibility options for groupsErik Johnston2017-11-091-9/+19
|
* Have an explicit API to update room configErik Johnston2017-11-081-0/+23
|
* Revert "Modify group room association API to allow modification of is_public"Erik Johnston2017-11-081-8/+5
|
* Revert "Merge branch 'master' of github.com:matrix-org/synapse into develop"Erik Johnston2017-11-071-1/+10
| | | | | This reverts commit f9b255cd62fe724e16b2222f6af623b2d39282ab, reversing changes made to 1bd654dabde776bbb7ee365c115b307cd6a110b8.
* Merge branch 'master' of github.com:matrix-org/synapse into developErik Johnston2017-11-071-10/+1
|\
| * Revert "Add jitter to validity period of attestations"Erik Johnston2017-10-271-12/+1
| |
* | Return whether a user is an admin within a groupLuke Barnard2017-11-071-2/+3
| |
* | Make the get_rooms_in_group API more saneLuke Barnard2017-11-021-3/+1
| | | | | | | | Return entries with is_public = True when they're public and is_public = False otherwise.
* | Update docs for updating room group associationLuke Barnard2017-11-011-1/+1
| |
* | Flake8Luke Barnard2017-10-311-2/+5
| |
* | Modify group room association API to allow modification of is_publicLuke Barnard2017-10-311-4/+4
| | | | | | | | also includes renamings to make things more consistent.
* | Fix wording on group creation errorLuke Barnard2017-10-301-1/+1
| |
* | Fix typo when checking if user is invited to groupErik Johnston2017-10-271-1/+4
| |
* | Fix bad mergeErik Johnston2017-10-271-1/+3
| |
* | Merge branch 'erikj/attestation_jitter' of github.com:matrix-org/synapse ↵Erik Johnston2017-10-271-1/+11
|\| | | | | | | into develop
| * Add jitter to validity period of attestationsErik Johnston2017-10-271-1/+12
| | | | | | | | | | This helps ensure that the renewals of attestations are spread out more evenly.
* | Merge branch 'erikj/attestation_local_fix' of github.com:matrix-org/synapse ↵Erik Johnston2017-10-272-9/+18
|\ \ | | | | | | | | | into develop
| * | Import loggerErik Johnston2017-10-271-0/+5
| | |
| * | FixupErik Johnston2017-10-271-3/+3
| | |
| * | Remove incorrect attestationsErik Johnston2017-10-271-0/+1
| | |
| * | Log if we try to do attestations for our own user and groupErik Johnston2017-10-271-2/+8
| | |
| * | Don't generate group attestations for local usersErik Johnston2017-10-271-2/+3
| |/
* | Merge pull request #2595 from matrix-org/erikj/attestation_commnetErik Johnston2017-10-271-0/+22
|\ \ | | | | | | Add comment about attestations
| * | Add comment about attestationsErik Johnston2017-10-271-0/+22
| |/
* | group is dictLuke Barnard2017-10-271-1/+1
| |
* | Fix create_group to pass requester_user_idLuke Barnard2017-10-271-1/+1
| |
* | Correct logic for checking private group membershipLuke Barnard2017-10-271-1/+1
| |
* | Make it workLuke Barnard2017-10-261-1/+1
| |
* | delintLuke Barnard2017-10-261-11/+50
| |
* | Add is_public to groups table to allow for private groupsLuke Barnard2017-10-261-55/+59
|/ | | | | | Prevent group API access to non-members for private groups Also make all the group code paths consistent with `requester_user_id` always being the User ID of the requesting user.
* Validate group ids when parsingRichard van der Hoff2017-10-211-16/+5
| | | | | May as well do it whenever we parse a Group ID. We check the sigil and basic structure here so it makes sense to check the grammar in the same place.
* Allow = in mxids and groupidsRichard van der Hoff2017-10-201-1/+1
| | | | ... because the spec says we should.
* Disallow capital letters in useridsRichard van der Hoff2017-10-201-10/+5
| | | | | Factor out a common function for checking user ids and group ids, which forbids capitals.
* Flake8Erik Johnston2017-10-191-2/+4
|
* Add config to enable group creationErik Johnston2017-10-191-2/+10
|
* Enforce sensible group IDsErik Johnston2017-10-191-1/+19
|
* Fix typo in group attestation handlingErik Johnston2017-10-191-1/+2
|
* Fix typoErik Johnston2017-10-191-1/+1
|
* DelintLuke Barnard2017-10-161-1/+0
|
* Make it work. Warn about lack of user profileLuke Barnard2017-10-161-2/+2
|
* Implement GET /groups/$groupId/invited_usersLuke Barnard2017-10-161-0/+35
|
* Fix typoErik Johnston2017-10-111-1/+1
|
* Validate room idsErik Johnston2017-10-111-1/+5
|
* Don't corrupt cacheErik Johnston2017-10-051-0/+1
|
* Add remove room APIErik Johnston2017-09-261-0/+12
|
* Add unique index to group_rooms tableErik Johnston2017-09-261-2/+0
|
* Revert: Keep room_id's in group summaryErik Johnston2017-09-211-0/+1
|
* Keep room_id's in group summaryErik Johnston2017-09-211-1/+0
|
* Add user profiles to summary from group serverErik Johnston2017-08-251-1/+6
|
* Add remote profile cacheErik Johnston2017-08-251-0/+18
|
* Include users membership in group in summary APIErik Johnston2017-07-241-0/+5
|
* Check values are stringsErik Johnston2017-07-201-1/+4
|
* Add update group profile APIErik Johnston2017-07-201-0/+16
|
* CommentsErik Johnston2017-07-181-1/+1
|
* Fix permissionsErik Johnston2017-07-181-2/+6
|
* Add local group server supportErik Johnston2017-07-171-2/+5
|
* Remove TODOErik Johnston2017-07-131-1/+0
|
* raise NotImplementedErrorErik Johnston2017-07-131-5/+2
|
* CommentsErik Johnston2017-07-121-0/+38
|
* Simplify checking if adminErik Johnston2017-07-121-53/+19
|
* Add group summary APIsErik Johnston2017-07-121-2/+254
|
* CommentErik Johnston2017-07-111-5/+8
|
* TypoErik Johnston2017-07-111-1/+1
|
* CommentsErik Johnston2017-07-112-3/+7
|
* Remove u/ requirementErik Johnston2017-07-111-2/+3
|
* Lift out visibility parsingErik Johnston2017-07-111-20/+21
|
* CommentsErik Johnston2017-07-112-39/+98
|
* Initial group server implementationErik Johnston2017-07-103-0/+502