summary refs log tree commit diff
path: root/synapse/storage/databases/main/pusher.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Track device IDs for pushers (#13831)Brendan Abolivier2022-09-211-2/+71
| | | Second half of the MSC3881 implementation
* Support enabling/disabling pushers (from MSC3881) (#13799)Brendan Abolivier2022-09-211-24/+45
| | | Partial implementation of MSC3881
* Fix invite notifications for users without pushers (#12840)DeepBlueV7.X2022-05-301-6/+0
| | | | Signed-off-by: Nicolas Werner <nicolas.werner@hotmail.de> Co-authored-by: Brendan Abolivier <github@brendanabolivier.com>
* Add some type hints to datastore (#12485)Dirk Klimpel2022-04-271-15/+34
|
* Replace uses of simple_insert_many with simple_insert_many_values. (#11742)Patrick Cloke2022-01-131-6/+2
| | | | This should be (slightly) more efficient and it is simpler to have a single method for inserting multiple values.
* Improve type hints in storage classes. (#11652)Dirk Klimpel2021-12-291-3/+3
| | | By using cast and making ignores more specific.
* Require Collections as the parameters for simple_* methods. (#11580)Patrick Cloke2021-12-151-22/+1
| | | | Instead of Iterable since the generators are not allowed due to the potential for their re-use.
* Annotate synapse.storage.util (#10892)David Robertson2021-10-081-3/+7
| | | | | Also mark `synapse.streams` as having has no untyped defs Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com>
* Fix remove_stale_pushers job on SQLite. (#10843)reivilibre2021-09-201-2/+2
|
* Fix iteration in _remove_deleted_email_pushers background job. (#10734)Andrew Morgan2021-09-011-1/+2
|
* Remove pushers when deleting 3pid from account (#10581)Azrenbeth2021-08-261-0/+72
| | | | | When a user deletes an email from their account it will now also remove all pushers for that email and that user (even if these pushers were created by a different client)
* Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-141-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 Cloke2021-03-231-1/+1
|
* Make deleting stale pushers a background update (#9536)Erik Johnston2021-03-031-0/+52
|
* Fix SQL delta file taking a long time to run (#9516)Erik Johnston2021-03-021-0/+53
| | | | Fixes #9504
* Ensure pushers are deleted for deactivated accounts (#9285)Erik Johnston2021-02-251-0/+43
|
* Update black, and run auto formatting over the codebase (#9381)Eric Eastwood2021-02-161-2/+5
| | | | | | | - 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
* Don't error if deleting a non-existent pusher. (#9121)Patrick Cloke2021-01-251-1/+3
|
* Ensure we store pusher data as text (#9117)Richard van der Hoff2021-01-151-3/+2
| | | | | I don't think there's any need to use canonicaljson here. Fixes: #4475.
* Convert internal pusher dicts to attrs classes. (#8940)Patrick Cloke2020-12-161-36/+57
| | | This improves type hinting and should use less memory.
* Add `DeferredCache.get_immediate` method (#8568)Richard van der Hoff2020-10-191-1/+1
| | | | | | | | | | | * Add `DeferredCache.get_immediate` method A bunch of things that are currently calling `DeferredCache.get` are only really interested in the result if it's completed. We can optimise and simplify this case. * Remove unused 'default' parameter to DeferredCache.get() * another get_immediate instance
* Use `async with` for ID gens (#8383)Erik Johnston2020-09-231-2/+2
| | | This will allow us to hit the DB after we've finished using the generated stream ID.
* Make StreamIdGen `get_next` and `get_next_mult` async (#8161)Erik Johnston2020-08-251-2/+2
| | | | This is mainly so that `StreamIdGenerator` and `MultiWriterIdGenerator` will have the same interface, allowing them to be used interchangeably.
* Convert pusher databases to async/await. (#8075)Patrick Cloke2020-08-141-49/+46
|
* Convert misc database code to async (#8087)Patrick Cloke2020-08-141-6/+3
|
* Rename database classes to make some sense (#8033)Erik Johnston2020-08-051-0/+356