Olivier Wilkinson (reivilibre)
7589a0311c
Antilint again :(
2020-08-27 10:41:33 +01:00
Olivier Wilkinson (reivilibre)
bf51d2ffc7
Also fix simple_select_onecol_txn
2020-08-27 09:10:07 +01:00
Olivier Wilkinson (reivilibre)
7cfecf3b17
Antilint
2020-08-27 09:02:05 +01:00
Olivier Wilkinson (reivilibre)
e6890c77df
Fix the tests after removing event_id column
2020-08-27 09:00:47 +01:00
Olivier Wilkinson (reivilibre)
b1fd67bdf0
Fix wrong type signatures (even if str is Iterable[str]…)
2020-08-27 08:53:23 +01:00
Olivier Wilkinson (reivilibre)
ad7124d3c8
Merge branch 'develop' into rei/2528_catchup_fed_outage
2020-08-27 08:49:00 +01:00
Olivier Wilkinson (reivilibre)
843403f2d4
Remove review question
2020-08-27 08:32:45 +01:00
Olivier Wilkinson (reivilibre)
b0bdadd0bf
Antilint
2020-08-27 08:25:39 +01:00
Olivier Wilkinson (reivilibre)
3e308f9e0c
Don't explicitly store the event_id
2020-08-27 08:22:02 +01:00
Olivier Wilkinson (reivilibre)
de5caf0928
Catch-up on all cases except federation denial
2020-08-27 07:01:32 +01:00
Olivier Wilkinson (reivilibre)
ef4680df22
Last successful stream ordering is about destinations
2020-08-26 21:01:48 +01:00
Olivier Wilkinson (reivilibre)
92517e95fc
Assertion on bug
2020-08-26 21:01:06 +01:00
Olivier Wilkinson (reivilibre)
16eec5cbfa
The early bird gets the early return
...
(hopefully with a worm as the return value)
2020-08-26 20:49:50 +01:00
Olivier Wilkinson (reivilibre)
c1a2b680c4
Behaviour confirmed reasonable-seeming
2020-08-26 20:31:57 +01:00
Olivier Wilkinson (reivilibre)
33874d4e54
SQL column doc
2020-08-26 20:23:41 +01:00
Olivier Wilkinson (reivilibre)
d77e444a85
NOT NULL, foreign key (events)
2020-08-26 20:20:43 +01:00
Olivier Wilkinson (reivilibre)
2c740a79d3
Foreign key on rooms, SQL comment
2020-08-26 20:16:23 +01:00
reivilibre
84dbc43ce1
Apply suggestions from Rich's code review
...
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com >
2020-08-26 20:13:15 +01:00
reivilibre
56aaa17c8e
Apply suggestions from Rich's code review
...
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com >
2020-08-26 20:08:51 +01:00
Andrew Morgan
b8f20e4276
Remove remaining is_guest argument uses from get_room_data calls ( #8181 )
...
#8174 removed the `is_guest` parameter from `get_room_data`, at the same time that #8157 was merged using it, colliding together to break unit tests on develop.
This PR removes the `is_guest` parameter from the call in the broken test.
Uses the same changelog as #8174 .
2020-08-26 17:26:56 +01:00
Patrick Cloke
6fe12c9512
Do not propagate typing notifications from shadow-banned users. ( #8176 )
2020-08-26 12:05:36 -04:00
Andrew Morgan
e0d6244beb
Remove unused parameter from, and add safeguard in, get_room_data ( #8174 )
...
Small cleanup PR.
* Removed the unused `is_guest` argument
* Added a safeguard to a (currently) impossible code path, fixing static checking at the same time.
2020-08-26 15:07:35 +01:00
Christopher May-Townsend
ed18f32e1b
Add required Debian dependencies to allow docker builds on the arm platform ( #8144 )
...
Signed-off-by: Christopher May-Townsend <chris@maytownsend.co.uk >
2020-08-26 15:03:20 +01:00
Patrick Cloke
98125bba7a
Allow running mypy directly. ( #8175 )
2020-08-26 09:59:37 -04:00
Richard van der Hoff
88b9807ba4
Update the test federation client to handle streaming responses ( #8130 )
...
Now that the server supports streaming back JSON responses, it would be nice to
show the response as it is streamed, in the test tool.
2020-08-26 14:11:38 +01:00
Patrick Cloke
2e6c90ff84
Do not propagate profile changes of shadow-banned users into rooms. ( #8157 )
2020-08-26 08:49:01 -04:00
Erik Johnston
e3c91a3c55
Make SlavedIdTracker.advance have same interface as MultiWriterIDGenerator ( #8171 )
2020-08-26 13:15:20 +01:00
Patrick Cloke
4c6c56dc58
Convert simple_select_one and simple_select_one_onecol to async ( #8162 )
2020-08-26 07:19:32 -04:00
Patrick Cloke
56efa9ec71
Fix rate limiting unit tests. ( #8167 )
...
These were passing on the release-v1.19.1 branch but started failing once merged
to develop.
2020-08-26 07:19:20 -04:00
Erik Johnston
eba98fb024
Add functions to MultiWriterIdGen used by events stream ( #8164 )
2020-08-25 17:32:30 +01:00
Patrick Cloke
5099bd68da
Do not allow send_nonmember_event to be called with shadow-banned users. ( #8158 )
2020-08-25 10:52:15 -04:00
Brendan Abolivier
6e1c64a668
Merge tag 'v1.19.1rc1' into develop
...
Synapse 1.19.1rc1 (2020-08-25)
==============================
Bugfixes
--------
- Fix a bug introduced in v1.19.0 where appservices with ratelimiting disabled would still be ratelimited when joining rooms. ([\#8139](https://github.com/matrix-org/synapse/issues/8139 ))
- Fix a bug introduced in v1.19.0 that would cause e.g. profile updates to fail due to incorrect application of rate limits on join requests. ([\#8153](https://github.com/matrix-org/synapse/issues/8153 ))
2020-08-25 15:48:11 +01:00
Brendan Abolivier
0a4e541dc5
Changelog fixes
v1.19.1rc1
2020-08-25 15:29:57 +01:00
Brendan Abolivier
b79d69796c
1.19.1rc1
2020-08-25 15:24:39 +01:00
Erik Johnston
2231dffee6
Make StreamIdGen get_next and get_next_mult async ( #8161 )
...
This is mainly so that `StreamIdGenerator` and `MultiWriterIdGenerator`
will have the same interface, allowing them to be used interchangeably.
2020-08-25 15:10:08 +01:00
Andrew Morgan
74bf8d4d06
Wording fixes to 'name' user admin api filter ( #8163 )
...
Some fixes to wording I noticed after merging #7377 .
2020-08-25 15:03:24 +01:00
Andrew Morgan
79ac619403
Fix missing double-backtick in RST document
2020-08-25 14:24:06 +01:00
Manuel Stahl
97962ad17b
Search in columns 'name' and 'displayname' in the admin users endpoint ( #7377 )
...
* Search in columns 'name' and 'displayname' in the admin users endpoint
Signed-off-by: Manuel Stahl <manuel.stahl@awesome-technologies.de >
2020-08-25 14:18:14 +01:00
Patrick Cloke
5758dcf30c
Add type hints for state. ( #8140 )
2020-08-24 14:25:27 -04:00
Patrick Cloke
cbd8d83da7
Stop shadow-banned users from sending non-member events. ( #8142 )
2020-08-24 13:58:56 -04:00
Brendan Abolivier
420484a334
Allow capping a room's retention policy ( #8104 )
2020-08-24 18:21:04 +01:00
Christopher May-Townsend
64e8a4697a
Add healthcheck for default localhost 8008 port on /health endpoint. ( #8147 )
2020-08-24 18:15:18 +01:00
Patrick Cloke
3f8f96be00
Fix flaky shadow-ban tests. ( #8152 )
2020-08-24 13:08:33 -04:00
Brendan Abolivier
393a811a41
Fix join ratelimiter breaking profile updates and idempotency ( #8153 )
2020-08-24 18:06:04 +01:00
Will Hunt
2df82ae451
Do not apply ratelimiting on joins to appservices ( #8139 )
...
Add new method ratelimiter.can_requester_do_action and ensure that appservices are exempt from being ratelimited.
Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com >
Co-authored-by: Erik Johnston <erik@matrix.org >
2020-08-24 14:53:53 +01:00
Brendan Abolivier
3f49f74610
Don't fail /submit_token requests on incorrect session ID if request_token_inhibit_3pid_errors is turned on ( #7991 )
...
* Don't raise session_id errors on submit_token if request_token_inhibit_3pid_errors is set
* Changelog
* Also wait some time before responding to /requestToken
* Incorporate review
* Update synapse/storage/databases/main/registration.py
Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com >
* Incorporate review
Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com >
2020-08-24 11:33:55 +01:00
Will Hunt
cbbf9126cb
Do not apply ratelimiting on joins to appservices ( #8139 )
...
Add new method ratelimiter.can_requester_do_action and ensure that appservices are exempt from being ratelimited.
Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com >
Co-authored-by: Erik Johnston <erik@matrix.org >
2020-08-21 15:07:56 +01:00
Richard van der Hoff
09fd0eda81
Micro-optimisations to get_auth_chain_ids ( #8132 )
2020-08-21 10:06:45 +01:00
Patrick Cloke
3f91638da6
Allow denying or shadow banning registrations via the spam checker ( #8034 )
2020-08-20 15:42:58 -04:00
Patrick Cloke
e259d63f73
Stop shadow-banned users from sending invites. ( #8095 )
2020-08-20 15:07:42 -04:00