Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove redundant "coding: utf-8" lines (#9786) | Jonathan de Jong | 2021-04-14 | 1 | -1/+0 |
| | | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>` | ||||
* | Import HomeServer from the proper module. (#9665) | Patrick Cloke | 2021-03-23 | 1 | -1/+1 |
| | |||||
* | Update black, and run auto formatting over the codebase (#9381) | Eric Eastwood | 2021-02-16 | 1 | -5/+4 |
| | | | | | | | - Update black version to the latest - Run black auto formatting over the codebase - Run autoformatting according to [`docs/code_style.md `](https://github.com/matrix-org/synapse/blob/80d6dc9783aa80886a133756028984dbf8920168/docs/code_style.md) - Update `code_style.md` docs around installing black to use the correct version | ||||
* | Allow moving account data and receipts streams off master (#9104) | Erik Johnston | 2021-01-18 | 1 | -5/+22 |
| | |||||
* | Add type hints to the receipts and user directory handlers. (#8976) | Patrick Cloke | 2021-01-04 | 1 | -11/+19 |
| | |||||
* | Allow spam-checker modules to be provide async methods. (#8890) | David Teller | 2020-12-11 | 1 | -5/+2 |
| | | | | Spam checker modules can now provide async methods. This is implemented in a backwards-compatible manner. | ||||
* | Improve appservice handler to send only the most recent read receipts when ↵ | Will Hunt | 2020-11-18 | 1 | -1/+2 |
| | | | | | | | | | | | | | | | | | | | no stream_id is stored. (#8744) * Make this line debug (it's noisy) * Don't include from_key for presence if we are at 0 * Limit read receipts for all rooms to 100 * changelog.d/8744.bugfix * Allow from_key to be None * Update 8744.bugfix * The from_key is superflous * Update comment | ||||
* | Send some ephemeral events to appservices (#8437) | Will Hunt | 2020-10-15 | 1 | -1/+34 |
| | | | Optionally sends typing, presence, and read receipt information to appservices. | ||||
* | Simplify super() calls to Python 3 syntax. (#8344) | Patrick Cloke | 2020-09-18 | 1 | -1/+1 |
| | | | | | | | This converts calls like super(Foo, self) -> super(). Generated with: sed -i "" -Ee 's/super\([^\(]+\)/super()/g' **/*.py | ||||
* | Clean up types for PaginationConfig (#8250) | Erik Johnston | 2020-09-08 | 1 | -15/+0 |
| | | | This removes `SourcePaginationConfig` and `get_pagination_rows`. The reasoning behind this is that these generic classes/functions erased the types of the IDs it used (i.e. instead of passing around `StreamToken` it'd pass in e.g. `token.room_key`, which don't have uniform types). | ||||
* | Stop sub-classing object (#8249) | Patrick Cloke | 2020-09-04 | 1 | -1/+1 |
| | |||||
* | Convert _base, profile, and _receipts handlers to async/await (#7860) | Patrick Cloke | 2020-07-17 | 1 | -10/+6 |
| | |||||
* | 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. | ||||
* | Port receipt and read markers to async/wait | Erik Johnston | 2019-10-29 | 1 | -25/+12 |
| | |||||
* | Remove unnecessary parentheses around return statements (#5931) | Andrew Morgan | 2019-08-30 | 1 | -1/+1 |
| | | | | | 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 :) | ||||
* | Merge pull request #5743 from matrix-org/erikj/log_origin_receipts_mismatch | Erik Johnston | 2019-07-24 | 1 | -13/+22 |
|\ | | | | | Log when we receive receipt from a different origin | ||||
| * | Log when we receive receipt from a different origin | Erik Johnston | 2019-07-23 | 1 | -13/+22 |
| | | |||||
* | | Replace returnValue with return (#5736) | Amber Brown | 2019-07-23 | 1 | -7/+7 |
|/ | |||||
* | Run Black. (#5482) | Amber Brown | 2019-06-20 | 1 | -18/+8 |
| | |||||
* | Batch up outgoing read-receipts to reduce federation traffic. (#4890) | Richard van der Hoff | 2019-03-20 | 1 | -1/+1 |
| | | | | Rate-limit outgoing read-receipts as per #4730. | ||||
* | Move client receipt processing to federation sender worker. | Richard van der Hoff | 2019-03-13 | 1 | -33/+4 |
| | | | | | This is mostly a prerequisite for #4730, but also fits with the general theme of "move everything off the master that we possibly can". | ||||
* | declare a ReadReceipt class | Richard van der Hoff | 2019-03-13 | 1 | -24/+22 |
| | | | | | I'm going to use this in queues and things, so it'll be useful to give it more of a structure. | ||||
* | Clean up read-receipt handling. | Richard van der Hoff | 2019-03-04 | 1 | -59/+44 |
| | | | | | | | Remove a call to run_as_background_process: there is no need to run this as a background process, because build_and_send_edu does not block. We may as well inline the whole of _push_remotes. | ||||
* | Avoid rebuilding Edu objects in worker mode (#4770) | Richard van der Hoff | 2019-03-04 | 1 | -1/+1 |
| | | | | | In worker mode, on the federation sender, when we receive an edu for sending over the replication socket, it is parsed into an Edu object. There is no point extracting the contents of it so that we can then immediately build another Edu. | ||||
* | Run push_receipts_to_remotes as background job (#4707) | Richard van der Hoff | 2019-02-21 | 1 | -34/+34 |
| | | | I suspect the CPU usage metrics for this are going to /dev/null at the moment. | ||||
* | Remove redundant run_as_background_process() from pusherpool | Richard van der Hoff | 2018-10-22 | 1 | -1/+1 |
| | | | | | | | `on_new_notifications` and `on_new_receipts` in `HttpPusher` and `EmailPusher` now always return synchronously, so we can remove the `defer.gatherResults` on their results, and the `run_as_background_process` wrappers can be removed too because the PusherPool methods will now complete quickly enough. | ||||
* | Fix logcontexts for running pushers | Richard van der Hoff | 2018-08-17 | 1 | -10/+8 |
| | | | | | | | First of all, avoid resetting the logcontext before running the pushers, to fix the "Starting db txn 'get_all_updated_receipts' from sentinel context" warning. Instead, give them their own "background process" logcontexts. | ||||
* | run isort | Amber Brown | 2018-07-09 | 1 | -6/+4 |
| | |||||
* | Improve exception handling for background processes | Richard van der Hoff | 2018-04-27 | 1 | -29/+32 |
| | | | | | | | | | | | | | | | | | | 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. | ||||
* | Split out edu/query registration to a separate class | Erik Johnston | 2018-03-13 | 1 | -1/+1 |
| | |||||
* | fix a logcontext leak in read receipt handling | Richard van der Hoff | 2017-10-11 | 1 | -0/+4 |
| | |||||
* | Don't recreate so many sets | Erik Johnston | 2017-03-16 | 1 | -3/+2 |
| | |||||
* | Fix ignored read-receipts | Richard van der Hoff | 2016-12-08 | 1 | -1/+5 |
| | | | | | Don't ignore read-receipts which arrive in the same EDU as a read-receipt for an old event. | ||||
* | Use new federation_sender DI | Erik Johnston | 2016-11-16 | 1 | -2/+2 |
| | |||||
* | Clobber EDUs in send queue | Erik Johnston | 2016-09-09 | 1 | -0/+1 |
| | |||||
* | Use state handler instead of get_users_in_room/get_joined_hosts | Erik Johnston | 2016-08-26 | 1 | -1/+4 |
| | |||||
* | Replaces calls to fetch_room_distributions_into with get_joined_hosts_for_room | Mark Haines | 2016-05-16 | 1 | -6/+5 |
| | |||||
* | Add comments on min_stream_id | David Baker | 2016-04-07 | 1 | -0/+1 |
| | | | | saying that the min stream id won't be completely accurate all the time | ||||
* | Send badge count pushes. | David Baker | 2016-04-07 | 1 | -4/+17 |
| | | | | Also fix bugs with retrying. | ||||
* | Add enviroment variable SYNAPSE_CACHE_FACTOR, default it to 0.1 | Erik Johnston | 2016-03-01 | 1 | -2/+0 |
| | |||||
* | copyrights | Matthew Hodgson | 2016-01-07 | 1 | -1/+1 |
| | |||||
* | Open up /events to anonymous users for room events only | Daniel Wagner-Hall | 2015-11-05 | 1 | -4/+2 |
| | | | | Squash-merge of PR #345 from daniel/anonymousevents | ||||
* | Fix receipts for room initial sync | Erik Johnston | 2015-10-22 | 1 | -7/+1 |
| | |||||
* | Re-enable receipts | Erik Johnston | 2015-08-13 | 1 | -2/+0 |
| | |||||
* | Disable receipts for now | Matrix | 2015-07-22 | 1 | -0/+2 |
| | |||||
* | Don't do any database hits in receipt handling if from_key == to_key | Matrix | 2015-07-18 | 1 | -0/+3 |
| | |||||
* | Docs | Erik Johnston | 2015-07-14 | 1 | -3/+8 |
| | |||||
* | Comments | Erik Johnston | 2015-07-13 | 1 | -4/+12 |
| | |||||
* | Remove spurious comment | Erik Johnston | 2015-07-09 | 1 | -2/+0 |
| | |||||
* | Integer timestamps | Erik Johnston | 2015-07-09 | 1 | -1/+1 |
| | |||||
* | Change format of receipts to allow inclusion of data | Erik Johnston | 2015-07-09 | 1 | -8/+16 |
| | |||||
* | Add a cache to fetching of receipt streams | Erik Johnston | 2015-07-08 | 1 | -24/+7 |
| | |||||
* | Split receipt events up into one per room | Erik Johnston | 2015-07-08 | 1 | -30/+21 |
| | |||||
* | Hook up receipts to v1 initialSync | Erik Johnston | 2015-07-08 | 1 | -1/+44 |
| | |||||
* | Wire together receipts and the notifer/federation | Erik Johnston | 2015-07-07 | 1 | -21/+60 |
| | |||||
* | Fix various typos | Erik Johnston | 2015-07-07 | 1 | -2/+4 |
| | |||||
* | Consolidate duplicate code in notifier | Erik Johnston | 2015-07-02 | 1 | -2/+2 |
| | |||||
* | Add basic ReceiptHandler | Erik Johnston | 2015-07-01 | 1 | -0/+130 |