Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Port group attestation renewal slow down from matrix-org-hotfixes (#7442) | Andrew Morgan | 2020-05-06 | 1 | -4/+2 |
| | |||||
* | async/await is_server_admin (#7363) | Andrew Morgan | 2020-05-01 | 1 | -33/+31 |
| | |||||
* | Fix incorrect metrics reporting for renew_attestations (#7344) | Richard van der Hoff | 2020-04-27 | 1 | -10/+9 |
| | | | | We need to wait for the renewals to finish, so that the metrics are correctly reported. | ||||
* | Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957) | Patrick Cloke | 2020-02-21 | 1 | -1/+1 |
| | | | | Ensure good comprehension hygiene using flake8-comprehensions. | ||||
* | Allow moving group read APIs to workers (#6866) | Erik Johnston | 2020-02-07 | 1 | -185/+192 |
| | |||||
* | Automatically delete empty groups/communities (#6453) | Werner Sembach | 2019-12-16 | 1 | -0/+5 |
| | | | Signed-off-by: Werner Sembach <werner.sembach@fau.de> | ||||
* | Remove usage of deprecated logger.warn method from codebase (#6271) | Andrew Morgan | 2019-10-31 | 2 | -2/+2 |
| | | | Replace every instance of `logger.warn` with `logger.warning` as the former is deprecated. | ||||
* | before fulfilling a group invite,check if user is already joined/invited (#3436) | Michael Telatynski | 2019-10-10 | 1 | -4/+16 |
| | | | | Fixes vector-im/riot-web#5645 | ||||
* | Replace returnValue with return (#5736) | Amber Brown | 2019-07-23 | 2 | -51/+43 |
| | |||||
* | Move logging utilities out of the side drawer of util/ and into logging/ (#5606) | Amber Brown | 2019-07-04 | 1 | -1/+1 |
| | |||||
* | Run Black. (#5482) | Amber Brown | 2019-06-20 | 2 | -205/+147 |
| | |||||
* | Merge pull request #5385 from matrix-org/erikj/reduce_http_exceptions | Erik Johnston | 2019-06-17 | 1 | -2/+2 |
|\ | | | | | Handle HttpResponseException when using federation client. | ||||
| * | Handle HttpResponseException when using federation client. | Erik Johnston | 2019-06-07 | 1 | -2/+2 |
| | | | | | | | | Otherwise we just log exceptions everywhere. | ||||
* | | Only start background group attestation renewals on master | Erik Johnston | 2019-06-07 | 1 | -3/+4 |
|/ | |||||
* | Associate a request_name with each verify request, for logging | Richard van der Hoff | 2019-06-05 | 1 | -1/+3 |
| | | | | | | | Also: * rename VerifyKeyRequest->VerifyJsonRequest * calculate key_ids on VerifyJsonRequest construction * refactor things to pass around VerifyJsonRequests instead of 4-tuples | ||||
* | Enforce validity period on server_keys for fed requests. (#5321) | Richard van der Hoff | 2019-06-03 | 1 | -2/+3 |
| | | | | | | | | When handling incoming federation requests, make sure that we have an up-to-date copy of the signing key. We do not yet enforce the validity period for event signatures. | ||||
* | Add functions to delete a group | Erik Johnston | 2019-04-03 | 1 | -0/+73 |
| | |||||
* | Merge branch 'develop' of github.com:matrix-org/synapse into ↵ | Andrew Morgan | 2019-02-26 | 1 | -1/+6 |
|\ | | | | | | | anoa/public_rooms_federate_develop | ||||
| * | Revert "Prevent showing non-fed rooms in fed /publicRooms" | Andrew Morgan | 2019-02-26 | 1 | -2/+4 |
| | | |||||
| * | Fix group's call to generate_room_entry | Andrew Morgan | 2019-02-25 | 1 | -4/+2 |
| | | |||||
| * | Merge branch 'develop' of github.com:matrix-org/synapse into ↵ | Erik Johnston | 2019-02-25 | 1 | -1/+6 |
| |\ | | | | | | | | | | anoa/public_rooms_federate | ||||
| | * | Correctly handle RequestSendFailed exceptions | Erik Johnston | 2019-02-14 | 1 | -1/+6 |
| | | | | | | | | | | | | This mainly reduces the number of exceptions we log. | ||||
| * | | Don't restrict non-fed rooms over client APIs | Andrew Morgan | 2019-02-25 | 1 | -2/+2 |
| |/ | |||||
* / | Prevent showing non-fed rooms in fed /publicRooms | Andrew Morgan | 2019-02-26 | 1 | -4/+2 |
|/ | |||||
* | Fix some looping_call calls which were broken in #3604 | Richard van der Hoff | 2018-07-26 | 1 | -1/+1 |
| | | | | | | | | | It turns out that looping_call does check the deferred returned by its callback, and (at least in the case of client_ips), we were relying on this, and I broke it in #3604. Update run_as_background_process to return the deferred, and make sure we return it to clock.looping_call. | ||||
* | Wrap a number of things that run in the background | Richard van der Hoff | 2018-07-25 | 1 | -1/+5 |
| | | | | | This will reduce the number of "Starting db connection from sentinel context" warnings, and will help with our metrics. | ||||
* | another typo | Matthew Hodgson | 2018-07-10 | 1 | -1/+1 |
| | |||||
* | typo (i think) | Matthew Hodgson | 2018-07-10 | 1 | -1/+1 |
| | |||||
* | run isort | Amber Brown | 2018-07-09 | 2 | -6/+6 |
| | |||||
* | Replace some more comparisons with six | Adrian Tschira | 2018-05-19 | 1 | -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_background | Richard van der Hoff | 2018-04-27 | 1 | -20/+24 |
|\ | |||||
| * | Improve exception handling for background processes | Richard van der Hoff | 2018-04-27 | 1 | -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_fn | Richard van der Hoff | 2018-04-27 | 1 | -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 consistency | Luke Barnard | 2018-04-06 | 1 | -2/+2 |
| | |||||
* | Explicitly grab individual columns from group object | Luke Barnard | 2018-04-06 | 1 | -6/+8 |
| | |||||
* | When exposing group state, return is_openly_joinable | Luke Barnard | 2018-04-06 | 1 | -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 Barnard | 2018-04-06 | 1 | -1/+1 |
| | |||||
* | add_user -> _add_user | Luke Barnard | 2018-04-06 | 1 | -3/+3 |
| | |||||
* | pep8 | Luke Barnard | 2018-04-06 | 1 | -1/+3 |
| | |||||
* | Get group_info from existing call to check_group_is_ours | Luke Barnard | 2018-04-06 | 1 | -5/+1 |
| | |||||
* | is_joinable -> join_rule | Luke Barnard | 2018-04-06 | 1 | -1/+1 |
| | |||||
* | Factor out add_user from accept_invite and join_group | Luke Barnard | 2018-04-06 | 1 | -41/+29 |
| | |||||
* | Implement group join API | David Baker | 2018-04-06 | 1 | -0/+45 |
| | |||||
* | Use join_policy API instead of joinable | Luke Barnard | 2018-04-03 | 1 | -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 groups | David Baker | 2018-03-28 | 1 | -0/+19 |
| | | | | | Adds API to set the 'joinable' flag, and corresponding flag in the table. | ||||
* | Namespace visibility options for groups | Erik Johnston | 2017-11-09 | 1 | -9/+19 |
| | |||||
* | Have an explicit API to update room config | Erik Johnston | 2017-11-08 | 1 | -0/+23 |
| | |||||
* | Revert "Modify group room association API to allow modification of is_public" | Erik Johnston | 2017-11-08 | 1 | -8/+5 |
| | |||||
* | Revert "Merge branch 'master' of github.com:matrix-org/synapse into develop" | Erik Johnston | 2017-11-07 | 1 | -1/+10 |
| | | | | | This reverts commit f9b255cd62fe724e16b2222f6af623b2d39282ab, reversing changes made to 1bd654dabde776bbb7ee365c115b307cd6a110b8. | ||||
* | Merge branch 'master' of github.com:matrix-org/synapse into develop | Erik Johnston | 2017-11-07 | 1 | -10/+1 |
|\ | |||||
| * | Revert "Add jitter to validity period of attestations" | Erik Johnston | 2017-10-27 | 1 | -12/+1 |
| | | |||||
* | | Return whether a user is an admin within a group | Luke Barnard | 2017-11-07 | 1 | -2/+3 |
| | | |||||
* | | Make the get_rooms_in_group API more sane | Luke Barnard | 2017-11-02 | 1 | -3/+1 |
| | | | | | | | | Return entries with is_public = True when they're public and is_public = False otherwise. | ||||
* | | Update docs for updating room group association | Luke Barnard | 2017-11-01 | 1 | -1/+1 |
| | | |||||
* | | Flake8 | Luke Barnard | 2017-10-31 | 1 | -2/+5 |
| | | |||||
* | | Modify group room association API to allow modification of is_public | Luke Barnard | 2017-10-31 | 1 | -4/+4 |
| | | | | | | | | also includes renamings to make things more consistent. | ||||
* | | Fix wording on group creation error | Luke Barnard | 2017-10-30 | 1 | -1/+1 |
| | | |||||
* | | Fix typo when checking if user is invited to group | Erik Johnston | 2017-10-27 | 1 | -1/+4 |
| | | |||||
* | | Fix bad merge | Erik Johnston | 2017-10-27 | 1 | -1/+3 |
| | | |||||
* | | Merge branch 'erikj/attestation_jitter' of github.com:matrix-org/synapse ↵ | Erik Johnston | 2017-10-27 | 1 | -1/+11 |
|\| | | | | | | | into develop | ||||
| * | Add jitter to validity period of attestations | Erik Johnston | 2017-10-27 | 1 | -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 Johnston | 2017-10-27 | 2 | -9/+18 |
|\ \ | | | | | | | | | | into develop | ||||
| * | | Import logger | Erik Johnston | 2017-10-27 | 1 | -0/+5 |
| | | | |||||
| * | | Fixup | Erik Johnston | 2017-10-27 | 1 | -3/+3 |
| | | | |||||
| * | | Remove incorrect attestations | Erik Johnston | 2017-10-27 | 1 | -0/+1 |
| | | | |||||
| * | | Log if we try to do attestations for our own user and group | Erik Johnston | 2017-10-27 | 1 | -2/+8 |
| | | | |||||
| * | | Don't generate group attestations for local users | Erik Johnston | 2017-10-27 | 1 | -2/+3 |
| |/ | |||||
* | | Merge pull request #2595 from matrix-org/erikj/attestation_commnet | Erik Johnston | 2017-10-27 | 1 | -0/+22 |
|\ \ | | | | | | | Add comment about attestations | ||||
| * | | Add comment about attestations | Erik Johnston | 2017-10-27 | 1 | -0/+22 |
| |/ | |||||
* | | group is dict | Luke Barnard | 2017-10-27 | 1 | -1/+1 |
| | | |||||
* | | Fix create_group to pass requester_user_id | Luke Barnard | 2017-10-27 | 1 | -1/+1 |
| | | |||||
* | | Correct logic for checking private group membership | Luke Barnard | 2017-10-27 | 1 | -1/+1 |
| | | |||||
* | | Make it work | Luke Barnard | 2017-10-26 | 1 | -1/+1 |
| | | |||||
* | | delint | Luke Barnard | 2017-10-26 | 1 | -11/+50 |
| | | |||||
* | | Add is_public to groups table to allow for private groups | Luke Barnard | 2017-10-26 | 1 | -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 parsing | Richard van der Hoff | 2017-10-21 | 1 | -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 groupids | Richard van der Hoff | 2017-10-20 | 1 | -1/+1 |
| | | | | ... because the spec says we should. | ||||
* | Disallow capital letters in userids | Richard van der Hoff | 2017-10-20 | 1 | -10/+5 |
| | | | | | Factor out a common function for checking user ids and group ids, which forbids capitals. | ||||
* | Flake8 | Erik Johnston | 2017-10-19 | 1 | -2/+4 |
| | |||||
* | Add config to enable group creation | Erik Johnston | 2017-10-19 | 1 | -2/+10 |
| | |||||
* | Enforce sensible group IDs | Erik Johnston | 2017-10-19 | 1 | -1/+19 |
| | |||||
* | Fix typo in group attestation handling | Erik Johnston | 2017-10-19 | 1 | -1/+2 |
| | |||||
* | Fix typo | Erik Johnston | 2017-10-19 | 1 | -1/+1 |
| | |||||
* | Delint | Luke Barnard | 2017-10-16 | 1 | -1/+0 |
| | |||||
* | Make it work. Warn about lack of user profile | Luke Barnard | 2017-10-16 | 1 | -2/+2 |
| | |||||
* | Implement GET /groups/$groupId/invited_users | Luke Barnard | 2017-10-16 | 1 | -0/+35 |
| | |||||
* | Fix typo | Erik Johnston | 2017-10-11 | 1 | -1/+1 |
| | |||||
* | Validate room ids | Erik Johnston | 2017-10-11 | 1 | -1/+5 |
| | |||||
* | Don't corrupt cache | Erik Johnston | 2017-10-05 | 1 | -0/+1 |
| | |||||
* | Add remove room API | Erik Johnston | 2017-09-26 | 1 | -0/+12 |
| | |||||
* | Add unique index to group_rooms table | Erik Johnston | 2017-09-26 | 1 | -2/+0 |
| | |||||
* | Revert: Keep room_id's in group summary | Erik Johnston | 2017-09-21 | 1 | -0/+1 |
| | |||||
* | Keep room_id's in group summary | Erik Johnston | 2017-09-21 | 1 | -1/+0 |
| | |||||
* | Add user profiles to summary from group server | Erik Johnston | 2017-08-25 | 1 | -1/+6 |
| | |||||
* | Add remote profile cache | Erik Johnston | 2017-08-25 | 1 | -0/+18 |
| | |||||
* | Include users membership in group in summary API | Erik Johnston | 2017-07-24 | 1 | -0/+5 |
| | |||||
* | Check values are strings | Erik Johnston | 2017-07-20 | 1 | -1/+4 |
| | |||||
* | Add update group profile API | Erik Johnston | 2017-07-20 | 1 | -0/+16 |
| | |||||
* | Comments | Erik Johnston | 2017-07-18 | 1 | -1/+1 |
| | |||||
* | Fix permissions | Erik Johnston | 2017-07-18 | 1 | -2/+6 |
| | |||||
* | Add local group server support | Erik Johnston | 2017-07-17 | 1 | -2/+5 |
| | |||||
* | Remove TODO | Erik Johnston | 2017-07-13 | 1 | -1/+0 |
| | |||||
* | raise NotImplementedError | Erik Johnston | 2017-07-13 | 1 | -5/+2 |
| | |||||
* | Comments | Erik Johnston | 2017-07-12 | 1 | -0/+38 |
| | |||||
* | Simplify checking if admin | Erik Johnston | 2017-07-12 | 1 | -53/+19 |
| | |||||
* | Add group summary APIs | Erik Johnston | 2017-07-12 | 1 | -2/+254 |
| | |||||
* | Comment | Erik Johnston | 2017-07-11 | 1 | -5/+8 |
| | |||||
* | Typo | Erik Johnston | 2017-07-11 | 1 | -1/+1 |
| | |||||
* | Comments | Erik Johnston | 2017-07-11 | 2 | -3/+7 |
| | |||||
* | Remove u/ requirement | Erik Johnston | 2017-07-11 | 1 | -2/+3 |
| | |||||
* | Lift out visibility parsing | Erik Johnston | 2017-07-11 | 1 | -20/+21 |
| | |||||
* | Comments | Erik Johnston | 2017-07-11 | 2 | -39/+98 |
| | |||||
* | Initial group server implementation | Erik Johnston | 2017-07-10 | 3 | -0/+502 |