Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2020-07-30 | Update workers docs (#7990) | Stuart Mumford | 2 | -25/+35 | |
2020-07-30 | Fix invite rejection when we have no forward-extremeties (#7980) | Richard van der Hoff | 2 | -8/+22 | |
Thanks to some slightly overzealous cleanup in the `delete_old_current_state_events`, it's possible to end up with no `event_forward_extremities` in a room where we have outstanding local invites. The user would then get a "no create event in auth events" when trying to reject the invite. We can hack around it by using the dangling invite as the prev event. | |||||
2020-07-30 | Fix typo in docs/workers.md (#7992) | Erik Johnston | 2 | -1/+2 | |
2020-07-30 | Convert federation client to async/await. (#7975) | Patrick Cloke | 18 | -221/+209 | |
2020-07-30 | Convert appservice to async. (#7973) | Patrick Cloke | 8 | -103/+122 | |
2020-07-30 | Convert some of the data store to async. (#7976) | Patrick Cloke | 10 | -207/+190 | |
2020-07-30 | Fix formatting of changelog and upgrade notes v1.18.0 github/release-v1.18.0 release-v1.18.0 | Olivier Wilkinson (reivilibre) | 2 | -2/+1 | |
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> | |||||
2020-07-30 | Ensure that remove_pusher is always async (#7981) | Patrick Cloke | 2 | -1/+2 | |
2020-07-30 | Add deprecation warnings | Olivier Wilkinson (reivilibre) | 2 | -0/+36 | |
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> | |||||
2020-07-30 | 1.18.0 | Olivier Wilkinson (reivilibre) | 4 | -2/+16 | |
2020-07-29 | Update worker docs with recent enhancements (#7969) | Erik Johnston | 14 | -235/+413 | |
2020-07-29 | Ensure the msg property of HttpResponseException is a string. (#7979) | Patrick Cloke | 3 | -7/+17 | |
2020-07-29 | Remove from the event_relations table when purging historical events. (#7978) | Patrick Cloke | 2 | -0/+3 | |
2020-07-29 | Add additional logging for SAML sessions. (#7971) | Patrick Cloke | 2 | -0/+4 | |
2020-07-29 | Add MSC reference to changelog for #7736 | Brendan Abolivier | 1 | -1/+1 | |
2020-07-29 | Re-implement unread counts (#7736) | Brendan Abolivier | 11 | -18/+339 | |
2020-07-29 | Various improvements to the docs (#7899) | Aaron Raimist | 10 | -100/+153 | |
2020-07-28 | Convert storage layer to async/await. (#7963) | Patrick Cloke | 10 | -185/+210 | |
2020-07-28 | Add an option to disable purge in delete room admin API (#7964) | Dirk Klimpel | 4 | -7/+75 | |
Add option ```purge``` to ```POST /_synapse/admin/v1/rooms/<room_id>/delete``` Fixes: #3761 Signed-off-by: Dirk Klimpel dirk@klimpel.org | |||||
2020-07-28 | Move some log lines from default logger to sql/transaction loggers (#7952) | Andrew Morgan | 2 | -8/+11 | |
Idea from matrix-org/synapse-dinsic#49 | |||||
2020-07-28 | Use the JSON module from the std library instead of simplejson. (#7936) | Patrick Cloke | 3 | -1/+14 | |
2020-07-28 | Fix exit code for `check_line_terminators.sh` (#7970) | Richard van der Hoff | 2 | -1/+5 | |
If there are *no* files with CRLF line endings, then the xargs exits with a non-zero exit code (as expected), but then, since that is the last thing to happen in the script, the script as a whole exits non-zero, making the whole thing fail. using `if/then/fi` instead of `&& (...)` means that the script exits with a zero exit code. | |||||
2020-07-28 | Option to allow server admins to join complex rooms (#7902) | lugino-emeritus | 5 | -2/+127 | |
Fixes #7901. Signed-off-by: Niklas Tittjung <nik_t.01@web.de> | |||||
2020-07-28 | 1.18.0rc2 v1.18.0rc2 | Richard van der Hoff | 5 | -4/+17 | |
2020-07-28 | Typing worker needs to handle stream update requests (#7967) | Erik Johnston | 2 | -1/+2 | |
IIRC this doesn't break tests because its only hit on reconnection, or something. Basically, when a process needs to fetch missing updates for the `typing` stream it needs to query the writer instance via HTTP (as we don't write typing notifications to the DB), the problem was that the endpoint (`streams`) was only registered on master and specifically not on the typing writer worker. | |||||
2020-07-28 | Fix typo in metrics docs (#7966) | Erik Johnston | 1 | -1/+1 | |
2020-07-28 | Add script for finding files with unix line terminators (#7965) | Andrew Morgan | 2 | -0/+32 | |
This PRs adds a script to check for unix-line terminators in the repo. It will be used to address https://github.com/matrix-org/synapse/issues/7943 by adding the check to CI. I've changed the original script slightly as proposed in https://github.com/matrix-org/pipelines/pull/81#discussion_r460580664 | |||||
2020-07-27 | Convert the remaining media repo code to async / await. (#7947) | Patrick Cloke | 6 | -107/+131 | |
2020-07-27 | Handle replication commands synchronously where possible (#7876) | Richard van der Hoff | 5 | -86/+113 | |
Most of the stuff we do for replication commands can be done synchronously. There's no point spinning up background processes if we're not going to need them. | |||||
2020-07-27 | Convert a synapse.events to async/await. (#7949) | Patrick Cloke | 13 | -82/+86 | |
2020-07-27 | Convert groups and visibility code to async / await. (#7951) | Patrick Cloke | 4 | -37/+31 | |
2020-07-27 | Convert push to async/await. (#7948) | Patrick Cloke | 10 | -145/+106 | |
2020-07-27 | update changelog v1.18.0rc1 | Richard van der Hoff | 1 | -16/+4 | |
2020-07-27 | 1.18.0rc1 | Richard van der Hoff | 76 | -76/+106 | |
2020-07-27 | Fix error reporting when using `opentracing.trace` (#7961) | Erik Johnston | 3 | -12/+4 | |
2020-07-27 | Fix typing replication not being handled on master (#7959) | Erik Johnston | 4 | -7/+12 | |
Handling of incoming typing stream updates from replication was not hooked up on master, effecting set ups where typing was handled on a different worker. This is really only a problem if the master process is also handling sync requests, which is unlikely for those that are at the stage of moving typing off. The other observable effect is that if a worker restarts or a replication connect drops then the typing worker will issue a `POSITION typing`, triggering master process to try and stream *all* typing updates from position 0. Fixes #7907 | |||||
2020-07-27 | Remove hacky error handling for inlineDeferreds. (#7950) | Patrick Cloke | 3 | -21/+13 | |
2020-07-27 | Convert tests/rest/admin/test_room.py to unix file endings (#7953) | Andrew Morgan | 2 | -1447/+1448 | |
Converts tests/rest/admin/test_room.py to have unix file endings after they were accidentally changed in #7613. Keeping the same changelog as #7613 as it hasn't gone out in a release yet. | |||||
2020-07-27 | Support oEmbed for media previews. (#7920) | Patrick Cloke | 3 | -53/+355 | |
Fixes previews of Twitter URLs by using their oEmbed endpoint to grab content. | |||||
2020-07-24 | Convert state resolution to async/await (#7942) | Patrick Cloke | 18 | -184/+198 | |
2020-07-24 | Fix up types and comments that refer to Deferreds. (#7945) | Patrick Cloke | 9 | -157/+174 | |
2020-07-24 | Do not convert async functions to Deferreds in the interactive_auth_handler ↵ | Patrick Cloke | 2 | -26/+22 | |
(#7944) | |||||
2020-07-24 | Convert more of the media code to async/await (#7873) | Patrick Cloke | 4 | -34/+47 | |
2020-07-24 | Return an empty body for OPTIONS requests. (#7886) | Patrick Cloke | 3 | -25/+12 | |
2020-07-24 | Downgrade warning on client disconnect to INFO (#7928) | Richard van der Hoff | 3 | -61/+3 | |
Clients disconnecting before we finish processing the request happens from time to time. We don't need to yell about it | |||||
2020-07-23 | Convert presence handler helpers to async/await. (#7939) | Patrick Cloke | 3 | -24/+24 | |
2020-07-23 | Update the auth providers to be async. (#7935) | Patrick Cloke | 4 | -112/+118 | |
2020-07-23 | Put a cache on `/state_ids` (#7931) | Richard van der Hoff | 2 | -2/+12 | |
If we send out an event which refers to `prev_events` which other servers in the federation are missing, then (after a round or two of backfill attempts), they will end up asking us for `/state_ids` at a particular point in the DAG. As per https://github.com/matrix-org/synapse/issues/7893, this is quite expensive, and we tend to see lots of very similar requests around the same time. We can therefore handle this much more efficiently by using a cache, which (a) ensures that if we see the same request from multiple servers (or even the same server, multiple times), then they share the result, and (b) any other servers that miss the initial excitement can also benefit from the work. [It's interesting to note that `/state` has a cache for exactly this reason. `/state` is now essentially unused and replaced with `/state_ids`, but evidently when we replaced it we forgot to add a cache to the new endpoint.] | |||||
2020-07-23 | Abort federation requests if the client disconnects early (#7930) | Richard van der Hoff | 2 | -0/+7 | |
For inbound federation requests, if a given remote server makes too many requests at once, we start stacking them up rather than processing them immediatedly. However, that means that there is a fair chance that the requesting server will disconnect before we start processing the request. In that case, if it was a read-only request (ie, a GET request), there is absolutely no point in building a response (and some requests are quite expensive to handle). Even in the case of a POST request, one of two things will happen: * Most likely, the requesting server will retry the request and we'll get the information anyway. * Even if it doesn't, the requesting server has to assume that we didn't get the memo, and act accordingly. In short, we're better off aborting the request at this point rather than ploughing on with what might be a quite expensive request. | |||||
2020-07-23 | Reorder database docs to promote postgresql. (#7933) | Michael Kaye | 2 | -5/+6 | |
2020-07-23 | Convert the federation agent and related code to async/await. (#7874) | Patrick Cloke | 5 | -53/+51 | |
2020-07-22 | Follow-up to admin API to re-activate accounts (#7908) | Patrick Cloke | 3 | -6/+43 | |
2020-07-22 | Convert the message handler to async/await. (#7884) | Patrick Cloke | 10 | -238/+273 | |
2020-07-22 | Update the dates for ACME v1 EOL | Brendan Abolivier | 2 | -2/+4 | |
As per https://community.letsencrypt.org/t/end-of-life-plan-for-acmev1/88430 | |||||
2020-07-22 | Skip serializing /sync response if client has disconnected (#7927) | Richard van der Hoff | 2 | -0/+7 | |
... it's a load of work which may be entirely redundant. | |||||
2020-07-22 | Add debugging to sync response generation (#7929) | Richard van der Hoff | 3 | -2/+19 | |
2020-07-22 | Remove an unused prometheus metric (#7878) | Richard van der Hoff | 2 | -3/+2 | |
2020-07-22 | Track command processing as a background process (#7879) | Richard van der Hoff | 4 | -3/+40 | |
I'm going to be doing more stuff synchronously, and I don't want to lose the CPU metrics down the sofa. | |||||
2020-07-22 | Clean up PreserveLoggingContext (#7877) | Richard van der Hoff | 2 | -16/+14 | |
This had some dead code and some just plain wrong docstrings. | |||||
2020-07-22 | fix an incorrect comment | Richard van der Hoff | 1 | -2/+2 | |
2020-07-21 | Convert room list handler to async/await. (#7912) | Patrick Cloke | 3 | -41/+32 | |
2020-07-21 | Element CSS and logo in email templates (#7919) | Jason Robinson | 4 | -0/+12 | |
Use Element CSS and logo in notification emails when app name is Element. Signed-off-by: Jason Robinson <jasonr@matrix.org> | |||||
2020-07-20 | Lint the contrib/ directory in CI and linting scripts, add synctl to linting ↵ | Andrew Morgan | 11 | -82/+71 | |
script (#7914) Run `isort`, `flake8` and `black` over the `contrib/` directory and `synctl` script. The latter was already being done in CI, but now the linting script does it too. Fixes https://github.com/matrix-org/synapse/issues/7910 | |||||
2020-07-20 | Remove unused code from synapse.logging.utils. (#7897) | Karthikeyan Singaravelan | 2 | -126/+2 | |
2020-07-20 | Fix a typo in the sample config. (#7890) | Adrian | 3 | -2/+3 | |
2020-07-20 | Fix deprecation warning: import ABC from collections.abc (#7892) | Karthikeyan Singaravelan | 5 | -6/+7 | |
2020-07-20 | Change sample config's postgres user to synapse_user (#7889) | Andrew Morgan | 3 | -2/+3 | |
The [postgres setup docs](https://github.com/matrix-org/synapse/blob/develop/docs/postgres.md#set-up-database) recommend setting up your database with user `synapse_user`. However, uncommenting the postgres defaults in the sample config leave you with user `synapse`. This PR switches the sample config to recommend `synapse_user`. Took a me a second to figure this out, so assume this will beneficial to others. | |||||
2020-07-20 | Fix deprecation warning due to invalid escape sequences (#7895) | Karthikeyan Singaravelan | 2 | -4/+5 | |
* Fix deprecation warnings due to invalid escape sequences. * Add changelog Signed-off-by: Karthikeyan Singaravelan <tir.karthi@gmail.com> | |||||
2020-07-17 | Remove Ubuntu Eoan that is now EOL (#7888) | Gary Kim | 2 | -1/+1 | |
2020-07-17 | Fix the trace function for async functions. (#7872) | Patrick Cloke | 2 | -23/+41 | |
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | |||||
2020-07-17 | Add help for creating a user via docker (#7885) | Michael Kaye | 2 | -0/+16 | |
2020-07-17 | Switch to Debian:Slim from Alpine for the docker image (#7839) | Christopher May-Townsend | 3 | -40/+30 | |
As mentioned in #7397, switching to a debian base should help with multi-arch work to save time on compiling. This is unashamedly based on #6373, but without the extra functionality. Switch python version back to generic 3.7 to always pull the latest. Essentially, keeping this as small as possible. The image is bigger though unfortunately. | |||||
2020-07-17 | Stop using 'device_max_stream_id' (#7882) | Erik Johnston | 4 | -5/+3 | |
It serves no purpose and updating everytime we write to the device inbox stream means all such transactions will conflict, causing lots of transaction failures and retries. | |||||
2020-07-17 | Fix TypeError in synapse.notifier (#7880) | Erik Johnston | 2 | -0/+9 | |
Fixes #7774 | |||||
2020-07-17 | Add a default limit (of 100) to get/sync operations. (#7858) | Patrick Cloke | 4 | -4/+18 | |
2020-07-17 | Change "unknown room ver" logging to warning. (#7881) | Erik Johnston | 2 | -1/+2 | |
It's somewhat expected for us to have unknown room versions in the database due to room version experiments. | |||||
2020-07-17 | Convert device handler to async/await (#7871) | Patrick Cloke | 6 | -166/+162 | |
2020-07-17 | Convert synapse.app to async/await. (#7868) | Patrick Cloke | 4 | -41/+37 | |
2020-07-17 | Convert _base, profile, and _receipts handlers to async/await (#7860) | Patrick Cloke | 6 | -59/+53 | |
2020-07-16 | Add admin endpoint to get members in a room. (#7842) | Michael Albert | 5 | -1/+107 | |
2020-07-16 | Consistently use `db_to_json` to convert from database values to JSON ↵ | Patrick Cloke | 22 | -82/+80 | |
objects. (#7849) | |||||
2020-07-16 | Combine nginx federation server blocks (#7823) | Luke Faraone | 1 | -11/+5 | |