Andrew Morgan
136caf4221
Fix existing v2 identity server calls (MSC2140) ( #6013 )
2020-02-25 13:45:26 +00:00
Andrew Morgan
e75de4107d
Merge pull request #6004 from matrix-org/jaywink/autojoin-create-real-users
2020-02-25 11:53:22 +00:00
Andrew Morgan
3c34ddab01
Remove extraneous unittest.DEBUG's
2020-02-25 11:36:04 +00:00
Andrew Morgan
476932cdef
Increase expected state events in tests for new room by one
2020-02-25 11:14:11 +00:00
Andrew Morgan
91e030ae12
Fix and refactor room and user stats ( #5971 )
2020-02-25 10:16:48 +00:00
Andrew Morgan
6c058e3206
Remove unnecessary parentheses around return statements ( #5931 )
2020-02-24 17:54:53 +00:00
Andrew Morgan
b7424f4943
Remove non-functional 'expire_access_token' setting ( #5782 )
2020-02-20 15:41:21 +00:00
Andrew Morgan
f590f77a16
Replace returnValue with return ( #5736 )
2020-02-19 15:11:59 +00:00
Andrew Morgan
29adbe8546
Merge pull request #5589 from matrix-org/erikj/admin_exfiltrate_data
2020-02-17 17:17:59 +00:00
Andrew Morgan
2f450fa149
Implement access token expiry ( #5660 )
2020-02-17 17:17:02 +00:00
Andrew Morgan
84a1465332
Merge pull request #5658 from matrix-org/babolivier/is-json
2020-02-17 16:50:01 +00:00
Andrew Morgan
ee2de6734b
Remove access-token support from RegistrationStore.register ( #5642 )
2020-02-17 16:36:11 +00:00
Andrew Morgan
5e752310be
Remove access-token support from RegistrationHandler.register ( #5641 )
2020-02-17 13:41:58 +00:00
Andrew Morgan
0f0c74493a
Move get_or_create_user to test code ( #5628 )
2020-02-17 13:31:16 +00:00
Andrew Morgan
622d0be1b3
Fix with isort==4.3.21 and black==19.3b0
2020-02-14 14:27:12 +00:00
Andrew Morgan
0295abdcf7
Dinsic Blacking with black==18.6b2
2020-02-11 16:18:29 +00:00
Andrew Morgan
b69732705d
Capatilise letters after a - in new user displaynames ( #14 )
2019-12-02 15:10:23 +00:00
Brendan Abolivier
c49ba3677c
Fixup tests
2019-10-04 12:21:33 +01:00
Brendan Abolivier
d694546453
Lint (again)
2019-10-04 12:10:19 +01:00
Brendan Abolivier
06159a0ee7
Lint
2019-10-04 12:10:19 +01:00
Brendan Abolivier
a6a55039a4
Add test case
2019-10-04 12:10:19 +01:00
Jason Robinson
be618e0551
Only count real users when checking for auto-creation of auto-join room
...
Previously if the first registered user was a "support" or "bot" user,
when the first real user registers, the auto-join rooms were not
created.
Fix to exclude non-real (ie users with a special user type) users
when counting how many users there are to determine whether we should
auto-create a room.
Signed-off-by: Jason Robinson <jasonr@matrix.org >
2019-09-09 14:48:08 +03:00
Erik Johnston
6e834e94fc
Fix and refactor room and user stats ( #5971 )
...
Previously the stats were not being correctly populated.
2019-09-04 13:04:27 +01:00
Andrew Morgan
4548d1f87e
Remove unnecessary parentheses around return statements ( #5931 )
...
Python will return a tuple whether there are parentheses around the returned values or not.
I'm just sick of my editor complaining about this all over the place :)
2019-08-30 16:28:26 +01:00
Richard van der Hoff
8c97f6414c
Remove non-functional 'expire_access_token' setting ( #5782 )
...
The `expire_access_token` didn't do what it sounded like it should do. What it
actually did was make Synapse enforce the 'time' caveat on macaroons used as
access tokens, but since our access token macaroons never contained such a
caveat, it was always a no-op.
(The code to add 'time' caveats was removed back in v0.18.5, in #1656 )
2019-07-30 08:25:02 +01:00
Amber Brown
4806651744
Replace returnValue with return ( #5736 )
2019-07-23 23:00:55 +10:00
Erik Johnston
d86321300a
Merge pull request #5589 from matrix-org/erikj/admin_exfiltrate_data
...
Add basic function to get all data for a user out of synapse
2019-07-15 10:04:02 +01:00
Richard van der Hoff
5f158ec039
Implement access token expiry ( #5660 )
...
Record how long an access token is valid for, and raise a soft-logout once it
expires.
2019-07-12 17:26:02 +01:00
Richard van der Hoff
953dbb7980
Remove access-token support from RegistrationStore.register ( #5642 )
...
The 'token' param is no longer used anywhere except the tests, so let's kill
that off too.
2019-07-10 16:26:49 +01:00
Richard van der Hoff
824707383b
Remove access-token support from RegistrationHandler.register ( #5641 )
...
Nothing uses this now, so we can remove the dead code, and clean up the
API.
Since we're changing the shape of the return value anyway, we take the
opportunity to give the method a better name.
2019-07-08 19:01:08 +01:00
Richard van der Hoff
1af2fcd492
Move get_or_create_user to test code ( #5628 )
...
This is only used in tests, so...
2019-07-08 23:52:26 +10:00
Erik Johnston
c061d4f237
Fixup from review comments.
2019-07-04 11:41:06 +01:00
Erik Johnston
8ee69f299c
Add basic function to get all data for a user out of synapse
2019-07-02 12:09:04 +01:00
Brendan Abolivier
ee0ee97447
Add test case for #5574
...
There's no test that makes sure #5574 didn't break things or works correctly (my bad), so this PR adds a test case that makes sure of it.
2019-06-28 10:29:02 +01:00
Amber Brown
32e7c9e7f2
Run Black. ( #5482 )
2019-06-20 19:32:02 +10:00
Brendan Abolivier
d907e8f599
Merge branch 'master' into dinsic
2019-06-12 14:36:44 +01:00
Brendan Abolivier
3c8262b181
Merge branch 'master' into dinsic
2019-06-11 10:55:53 +01:00
Erik Johnston
75538813fc
Fix background updates to handle redactions/rejections ( #5352 )
...
* Fix background updates to handle redactions/rejections
In background updates based on current state delta stream we need to
handle that we may not have all the events (or at least that
`get_events` may raise an exception).
2019-06-06 00:45:46 +10:00
Amber Brown
4a30e4acb4
Room Statistics ( #4338 )
2019-05-21 11:36:50 -05:00
ReidAnderson
3787133c9e
Limit UserIds to a length that fits in a state key ( #5198 )
2019-05-20 11:20:08 +01:00
Brendan Abolivier
d6e2f9f9da
Merge branch 'babolivier/per_room_profiles' into dinsic
2019-05-17 15:07:41 +01:00
Brendan Abolivier
f608ddbe5c
Merge branch 'release-v0.99.4' into dinsic
2019-05-14 11:43:03 +01:00
Amber Brown
df2ebd75d3
Migrate all tests to use the dict-based config format instead of hanging items off HomeserverConfig ( #5171 )
2019-05-13 15:01:14 -05:00
Amber Brown
b36c82576e
Run Black on the tests again ( #5170 )
2019-05-10 00:12:11 -05:00
Richard van der Hoff
12f9d51e82
Add admin api for sending server_notices ( #5121 )
2019-05-02 11:59:16 +01:00
Richard van der Hoff
40e576e29c
Move admin api impl to its own package
...
It doesn't really belong under rest/client/v1 any more.
2019-05-01 15:44:30 +01:00
Andrew Morgan
7d71975e6a
Merge branch 'develop' into dinsic
2019-04-15 15:22:14 +01:00
Erik Johnston
9bf49abc07
Merge branch 'master' of github.com:matrix-org/synapse into dinsic
2019-04-05 14:10:16 +01:00
Andrew Morgan
4a4d5c4fd6
Fix grammar and document get_current_users_in_room ( #4998 )
2019-04-03 14:32:20 +01:00
Erik Johnston
40e56997bc
Review comments
2019-03-28 13:48:41 +00:00