Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge commit 'd8001' (pre v1.54.0rc1) into matrix-org-hotfixes | Olivier Wilkinson (reivilibre) | 2022-03-02 | 1 | -2/+2 |
|\ | |||||
| * | Remove `HomeServer.get_datastore()` (#12031) | Richard van der Hoff | 2022-02-23 | 1 | -2/+2 |
| | | | | | | | | | | | | | | The presence of this method was confusing, and mostly present for backwards compatibility. Let's get rid of it. Part of #11733 | ||||
* | | Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes | Erik Johnston | 2022-02-22 | 1 | -2/+7 |
|\| | |||||
| * | Upgrade mypy to version 0.931 (#12030) | Sean Quah | 2022-02-18 | 1 | -1/+1 |
| | | | | | | Upgrade mypy to 0.931, mypy-zope to 0.3.5 and fix new complaints. | ||||
| * | Prevent duplicate push notifications for room reads (#11835) | lukasdenk | 2022-02-17 | 1 | -1/+6 |
| | | |||||
* | | Merge branch 'release-v1.50' into matrix-org-hotfixes | Olivier Wilkinson (reivilibre) | 2022-01-05 | 1 | -6/+6 |
|\| | |||||
| * | Add type hints to event_push_actions. (#11594) | Patrick Cloke | 2021-12-21 | 1 | -6/+6 |
| | | |||||
* | | Merge branch 'release-v1.49' into matrix-org-hotfixes | Sean Quah | 2021-12-07 | 1 | -1/+2 |
|\| | |||||
| * | Improved push typing (#11409) | Marcus | 2021-11-30 | 1 | -1/+2 |
| | | | | | | Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com> | ||||
* | | Merge branch 'release-v1.45' into matrix-org-hotfixes | Brendan Abolivier | 2021-10-12 | 1 | -2/+2 |
|\| | |||||
| * | disallow-untyped-defs for synapse.push (#11023) | David Robertson | 2021-10-11 | 1 | -2/+2 |
| | | |||||
* | | Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes | Erik Johnston | 2021-09-28 | 1 | -1/+3 |
|\| | |||||
| * | Use direct references for configuration variables (part 4). (#10893) | Patrick Cloke | 2021-09-23 | 1 | -1/+3 |
| | | |||||
* | | Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes | David Robertson | 2021-09-22 | 1 | -1/+1 |
|\| | |||||
| * | Use direct references for some configuration variables (part 2) (#10812) | Patrick Cloke | 2021-09-15 | 1 | -1/+1 |
| | | |||||
* | | Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes | Erik Johnston | 2021-07-16 | 1 | -1/+1 |
|\| | |||||
| * | Use inline type hints in various other places (in `synapse/`) (#10380) | Jonathan de Jong | 2021-07-15 | 1 | -1/+1 |
| | | |||||
* | | Merge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes | Andrew Morgan | 2021-04-19 | 1 | -1/+0 |
|\| | |||||
| * | 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>` | ||||
* | | Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes | Richard van der Hoff | 2021-03-24 | 1 | -2/+2 |
|\| | |||||
| * | Import HomeServer from the proper module. (#9665) | Patrick Cloke | 2021-03-23 | 1 | -1/+1 |
| | | |||||
| * | Fixed code misc. quality issues (#9649) | Ankit Dobhal | 2021-03-22 | 1 | -1/+1 |
| | | | | | | | | | | - Merge 'isinstance' calls. - Remove unnecessary dict call outside of comprehension. - Use 'sys.exit()' calls. | ||||
* | | Merge remote-tracking branch 'origin/release-v1.29.0' into matrix-org-hotfixes | Erik Johnston | 2021-03-04 | 1 | -2/+3 |
|\| | |||||
| * | Fix additional type hints from Twisted upgrade. (#9518) | Patrick Cloke | 2021-03-03 | 1 | -2/+3 |
| | | |||||
* | | Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes | Richard van der Hoff | 2021-02-26 | 1 | -1/+2 |
|\| | |||||
| * | Fix deleting pushers when using sharded pushers. (#9465) | Erik Johnston | 2021-02-22 | 1 | -1/+2 |
| | | |||||
* | | Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes | Richard van der Hoff | 2021-02-17 | 1 | -9/+14 |
|\| | |||||
| * | Update black, and run auto formatting over the codebase (#9381) | Eric Eastwood | 2021-02-16 | 1 | -9/+14 |
| | | | | | | | | | | | | | | - 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 | ||||
* | | Merge branch 'release-v1.25.0' of github.com:matrix-org/synapse into ↵ | Patrick Cloke | 2021-01-05 | 1 | -2/+0 |
|\| | | | | | | | matrix-org-hotfixes | ||||
| * | Fix-up assertions about last stream token in push (#9020) | Patrick Cloke | 2021-01-05 | 1 | -2/+0 |
| | | | | | | The last stream token is always known and we do not need to handle none. | ||||
* | | Merge remote-tracking branch 'origin/release-v1.25.0' into matrix-org-hotfixes | Richard van der Hoff | 2021-01-05 | 1 | -18/+18 |
|\| | |||||
| * | Convert internal pusher dicts to attrs classes. (#8940) | Patrick Cloke | 2020-12-16 | 1 | -18/+18 |
| | | | | | | This improves type hinting and should use less memory. | ||||
* | | Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes | Patrick Cloke | 2020-12-15 | 1 | -16/+1 |
|\| | |||||
| * | Fix handling of stream tokens for push. (#8943) | Patrick Cloke | 2020-12-15 | 1 | -16/+1 |
| | | | | | | | | Removes faulty assertions and fixes the logic to ensure the max stream token is always set. | ||||
* | | Merge branch 'develop' into matrix-org-hotfixes | Patrick Cloke | 2020-12-15 | 1 | -42/+47 |
|\| | |||||
| * | Add type hints for HTTP and email pushers. (#8880) | Patrick Cloke | 2020-12-07 | 1 | -39/+29 |
| | | |||||
| * | Add additional validation to pusher URLs. (#8865) | Patrick Cloke | 2020-12-04 | 1 | -1/+15 |
| | | | | | | | | Pusher URLs now must end in `/_matrix/push/v1/notify` per the specification. | ||||
| * | Apply an IP range blacklist to push and key revocation requests. (#8821) | Patrick Cloke | 2020-12-02 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | Replaces the `federation_ip_range_blacklist` configuration setting with an `ip_range_blacklist` setting with wider scope. It now applies to: * Federation * Identity servers * Push notifications * Checking key validitity for third-party invite events The old `federation_ip_range_blacklist` setting is still honored if present, but with reduced scope (it only applies to federation and identity servers). | ||||
* | | Merge branch 'release-v1.24.0' of github.com:matrix-org/synapse into ↵ | Patrick Cloke | 2020-12-02 | 1 | -2/+11 |
|\| | | | | | | | matrix-org-hotfixes | ||||
| * | Add a config option to change whether unread push notification counts are ↵ | Andrew Morgan | 2020-11-30 | 1 | -2/+11 |
| | | | | | | | | | | | | | | | | per-message or per-room (#8820) This PR adds a new config option to the `push` section of the homeserver config, `group_unread_count_by_room`. By default Synapse will group push notifications by room (so if you have 1000 unread messages, if they lie in 55 rooms, you'll see an unread count on your phone of 55). However, it is also useful to be able to send out the true count of unread messages if desired. If `group_unread_count_by_room` is set to `false`, then with the above example, one would see an unread count of 1000 (email anyone?). | ||||
* | | Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes | Erik Johnston | 2020-10-14 | 1 | -1/+7 |
|\| | |||||
| * | Fix not sending events over federation when using sharded event persisters ↵ | Erik Johnston | 2020-10-14 | 1 | -1/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#8536) * Fix outbound federaion with multiple event persisters. We incorrectly notified federation senders that the minimum persisted stream position had advanced when we got an `RDATA` from an event persister. Notifying of federation senders already correctly happens in the notifier, so we just delete the offending line. * Change some interfaces to use RoomStreamToken. By enforcing use of `RoomStreamTokens` we make it less likely that people pass in random ints that they got from somewhere random. | ||||
* | | Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes | Richard van der Hoff | 2020-10-01 | 1 | -1/+1 |
|\| | |||||
| * | Fixup pusher pool notifications (#8287) | Erik Johnston | 2020-09-09 | 1 | -1/+1 |
| | | | | | | | | | | `pusher_pool.on_new_notifications` expected a min and max stream ID, however that was not what we were passing in. Instead, let's just pass it the current max stream ID and have it track the last stream ID it got passed. I believe that it mostly worked as we called the function for every event. However, it would break for events that got persisted out of order, i.e, that were persisted but the max stream ID wasn't incremented as not all preceding events had finished persisting, and push for that event would be delayed until another event got pushed to the effected users. | ||||
| * | Revert "Fixup pusher pool notifications" | Erik Johnston | 2020-09-09 | 1 | -1/+1 |
| | | | | | | | | This reverts commit e7fd336a53a4ca489cdafc389b494d5477019dc0. | ||||
| * | Fixup pusher pool notifications | Erik Johnston | 2020-09-09 | 1 | -1/+1 |
| | | |||||
* | | Merge branch 'release-v1.20.0' into matrix-org-hotfixes | Richard van der Hoff | 2020-09-07 | 1 | -1/+1 |
|\| | |||||
| * | Stop sub-classing object (#8249) | Patrick Cloke | 2020-09-04 | 1 | -1/+1 |
| | | |||||
* | | Merge branch 'develop' into matrix-org-hotfixes | Richard van der Hoff | 2020-07-31 | 1 | -33/+25 |
|\| | |||||
| * | Convert push to async/await. (#7948) | Patrick Cloke | 2020-07-27 | 1 | -33/+25 |
| | | |||||
* | | Merge branch 'develop' into matrix-org-hotfixes | Richard van der Hoff | 2020-07-09 | 1 | -3/+14 |
|\| | |||||
| * | Hack to add push priority to push notifications (#7765) | reivilibre | 2020-07-01 | 1 | -3/+14 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove obsolete comment about ancient temporary code Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> * Implement hack to set push priority based on whether the tweaks indicate the event might cause effects. * Changelog for 7765 Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> * Antilint * Add tests for push priority Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> * Update synapse/push/httppusher.py Co-authored-by: Brendan Abolivier <babolivier@matrix.org> * Antilint * Remove needless invites from tests. Co-authored-by: Brendan Abolivier <babolivier@matrix.org> | ||||
* | | Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes | Erik Johnston | 2020-06-25 | 1 | -0/+2 |
|\| | |||||
| * | add a comment | Richard van der Hoff | 2020-06-18 | 1 | -0/+2 |
| | | |||||
* | | Merge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes | Erik Johnston | 2020-05-21 | 1 | -8/+3 |
|\| | |||||
| * | remove miscellaneous PY2 code | Richard van der Hoff | 2020-05-15 | 1 | -8/+3 |
| | | |||||
* | | Merge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes | Erik Johnston | 2020-02-18 | 1 | -1/+1 |
|\| | |||||
| * | Reduce amount of logging at INFO level. (#6862) | Erik Johnston | 2020-02-06 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | A lot of the things we log at INFO are now a bit superfluous, so lets make them DEBUG logs to reduce the amount we log by default. Co-Authored-By: Brendan Abolivier <babolivier@matrix.org> Co-authored-by: Brendan Abolivier <github@brendanabolivier.com> | ||||
* | | Merge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes | Erik Johnston | 2019-11-26 | 1 | -3/+2 |
|\| | |||||
| * | Clean up newline quote marks around the codebase (#6362) | Andrew Morgan | 2019-11-21 | 1 | -3/+2 |
| | | |||||
* | | Change /push/v1/notify IP to 10.103.0.7 | Andrew Morgan | 2019-11-26 | 1 | -1/+1 |
| | | |||||
* | | Merge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes | Erik Johnston | 2019-11-19 | 1 | -12/+11 |
|\| | |||||
| * | Support for routing outbound HTTP requests via a proxy (#6239) | Richard van der Hoff | 2019-11-01 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `http_proxy` and `HTTPS_PROXY` env vars can be set to a `host[:port]` value which should point to a proxy. The address of the proxy should be excluded from IP blacklists such as the `url_preview_ip_range_blacklist`. The proxy will then be used for * push * url previews * phone-home stats * recaptcha validation * CAS auth validation It will *not* be used for: * Application Services * Identity servers * Outbound federation * In worker configurations, connections from workers to masters Fixes #4198. | ||||
| * | Update black to 19.10b0 (#6304) | Amber Brown | 2019-11-01 | 1 | -8/+6 |
| | | | | | | * update version of black and also fix the mypy config being overridden | ||||
| * | Merge pull request #6294 from matrix-org/erikj/add_state_storage | Erik Johnston | 2019-10-31 | 1 | -1/+2 |
| |\ | | | | | | | Add StateGroupStorage interface | ||||
| | * | Port to use state storage | Erik Johnston | 2019-10-30 | 1 | -1/+2 |
| | | | |||||
| * | | Remove usage of deprecated logger.warn method from codebase (#6271) | Andrew Morgan | 2019-10-31 | 1 | -2/+2 |
| |/ | | | | | Replace every instance of `logger.warn` with `logger.warning` as the former is deprecated. | ||||
* | | Merge branch 'develop' into matrix-org-hotfixes | Richard van der Hoff | 2019-09-18 | 1 | -1/+12 |
|\| | |||||
| * | Add opentracing span for HTTP push | Erik Johnston | 2019-09-09 | 1 | -1/+12 |
| | | |||||
* | | Merge branch 'release-v1.3.0' of github.com:matrix-org/synapse into ↵ | Brendan Abolivier | 2019-08-13 | 1 | -7/+20 |
|\| | | | | | | | matrix-org-hotfixes | ||||
| * | Handle pusher being deleted during processing. | Erik Johnston | 2019-08-01 | 1 | -7/+20 |
| | | | | | | | | | | Instead of throwing a StoreError lets break out of processing loop and mark the pusher as stopped. | ||||
* | | Merge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes | Erik Johnston | 2019-07-30 | 1 | -9/+9 |
|\| | |||||
| * | Replace returnValue with return (#5736) | Amber Brown | 2019-07-23 | 1 | -9/+9 |
| | | |||||
* | | Merge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes | Erik Johnston | 2019-06-21 | 1 | -116/+110 |
|\| | |||||
| * | Run Black. (#5482) | Amber Brown | 2019-06-20 | 1 | -116/+110 |
| | | |||||
* | | Point pusher to new box | Erik Johnston | 2019-04-15 | 1 | -1/+1 |
| | | |||||
* | | Merge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes | Erik Johnston | 2019-04-02 | 1 | -2/+10 |
|\| | |||||
| * | Make starting pushers faster during start up | Erik Johnston | 2019-04-02 | 1 | -2/+10 |
| | | | | | | | | | | | | | | | | | | | | | | We start all pushers on start up and immediately start a background process to fetch push to send. This makes start up incredibly painful when dealing with many pushers. Instead, let's do a quick fast DB check to see if there *may* be push to send and only start the background processes for those pushers. We also stagger starting up and doing those checks so that we don't try and handle all pushers at once. | ||||
* | | Merge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes | Erik Johnston | 2019-02-22 | 1 | -8/+30 |
|\| | |||||
| * | Correctly handle null data in HttpPusher | Erik Johnston | 2019-02-22 | 1 | -0/+5 |
| | | |||||
| * | Add prometheus metrics for number of badge update pushes. (#4709) | Richard van der Hoff | 2019-02-22 | 1 | -8/+25 |
| | | | | | | | | | | | | We're counting the number of push notifications, but not the number of badges; I'd like to see if they are significant. | ||||
* | | Merge branch 'develop' into matrix-org-hotfixes | Richard van der Hoff | 2019-02-20 | 1 | -8/+8 |
|\| | |||||
| * | Logging improvements for the pusher (#4691) | Richard van der Hoff | 2019-02-20 | 1 | -8/+8 |
| | | |||||
* | | Apply the pusher http hack in the right place (#4692) | Richard van der Hoff | 2019-02-20 | 1 | -6/+5 |
| | | | | | | Do it in the constructor, so that it works for badge updates as well as pushes | ||||
* | | Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes | Richard van der Hoff | 2018-11-06 | 1 | -2/+2 |
|\| | |||||
| * | Clean up event accesses and tests | Erik Johnston | 2018-11-02 | 1 | -2/+2 |
| | | | | | | | | | | This is in preparation to refactor FrozenEvent to support different event formats for different room versions | ||||
* | | Merge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes | Erik Johnston | 2018-10-26 | 1 | -35/+31 |
|\| | |||||
| * | sanity-check the is_processing flag | Richard van der Hoff | 2018-10-24 | 1 | -4/+7 |
| | | | | | | | | ... and rename it, for even more sanity | ||||
| * | Make on_started synchronous too | Richard van der Hoff | 2018-10-22 | 1 | -1/+0 |
| | | | | | | | | | | | | This brings it into line with on_new_notifications and on_new_receipts. It requires a little bit of hoop-jumping in EmailPusher to load the throttle params before the first loop. | ||||
| * | Remove redundant run_as_background_process() from pusherpool | Richard van der Hoff | 2018-10-22 | 1 | -2/+0 |
| | | | | | | | | | | | | | | `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. | ||||
| * | Give pushers their own background logcontext | Richard van der Hoff | 2018-10-22 | 1 | -34/+30 |
| | | | | | | | | | | | | | | | | Each pusher has its own loop which runs for as long as it has work to do. This should run in its own background thread with its own logcontext, as other similar loops elsewhere in the system do - which means that CPU usage is consistently attributed to that loop, rather than to whatever request happened to start the loop. | ||||
* | | Merge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes | Erik Johnston | 2018-09-14 | 1 | -1/+6 |
|\| | |||||
| * | merge (#3576) | Amber Brown | 2018-09-14 | 1 | -1/+6 |
| | | |||||
* | | Merge branch 'develop' into matrix-org-hotfixes | Richard van der Hoff | 2018-07-10 | 1 | -3/+3 |
|\| | |||||
| * | run isort | Amber Brown | 2018-07-09 | 1 | -3/+3 |
| | | |||||
* | | Merge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes | Erik Johnston | 2018-06-25 | 1 | -2/+4 |
|\| | |||||
| * | Remove all global reactor imports & pass it around explicitly (#3424) | Amber Brown | 2018-06-25 | 1 | -2/+4 |
| | | |||||
* | | Send HTTP pushes direct to http-priv rather than via clouldflare | aphrodite | 2018-06-22 | 1 | -1/+6 |
|/ | | | | (This is a heinous hack that ought to be made more generic and pushed back to develop) | ||||
* | fixes | Amber Brown | 2018-05-22 | 1 | -2/+2 |
| | |||||
* | replacing portions | Amber Brown | 2018-05-21 | 1 | -9/+4 |
| | |||||
* | make imports local | Adrian Tschira | 2018-04-28 | 1 | -2/+2 |
| | | | | Signed-off-by: Adrian Tschira <nota@notafile.com> | ||||
* | Improve exception handling for background processes | Richard van der Hoff | 2018-04-27 | 1 | -1/+4 |
| | | | | | | | | | | | | | | | | | | 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. | ||||
* | Better logging when pushes fail | Richard van der Hoff | 2018-01-29 | 1 | -2/+8 |
| | |||||
* | add appid/device_display_name to to pusher logging | Richard van der Hoff | 2018-01-29 | 1 | -2/+2 |
| | |||||
* | Fix logging and add user_id | Richard van der Hoff | 2018-01-22 | 1 | -2/+3 |
| | |||||
* | logging and debug for http pusher | Richard van der Hoff | 2018-01-22 | 1 | -4/+20 |
| | |||||
* | Rename redact_content option to include_content | David Baker | 2017-11-08 | 1 | -1/+2 |
| | | | | | | | | | | | | | | | | | | The redact_content option never worked because it read the wrong config section. The PR introducing it (https://github.com/matrix-org/synapse/pull/2301) had feedback suggesting the name be changed to not re-use the term 'redact' but this wasn't incorporated. This reanmes the option to give it a less confusing name, and also means that people who've set the redact_content option won't suddenly see a behaviour change when upgrading synapse, but instead can set include_content if they want to. This PR also updates the wording of the config comment to clarify that this has no effect on event_id_only push. Includes https://github.com/matrix-org/synapse/pull/2422 | ||||
* | replace 'except:' with 'except Exception:' | Richard van der Hoff | 2017-10-23 | 1 | -3/+3 |
| | | | | what could possibly go wrong | ||||
* | Also include the room_id | David Baker | 2017-09-18 | 1 | -0/+1 |
| | | | | as really it's part of the event ID | ||||
* | Use .get - it's much shorter | David Baker | 2017-09-18 | 1 | -1/+1 |
| | |||||
* | Add support for event_id_only push format | David Baker | 2017-09-18 | 1 | -0/+19 |
| | | | | | | | Param in the data dict of a pusher that tells an HTTP pusher to send just the event_id of the event it's notifying about and the notification counts. For clients that want to go & fetch the body of the event themselves anyway. | ||||
* | Fix TravisCI tests for PR #2301 | Caleb James DeLisle | 2017-06-23 | 1 | -1/+1 |
| | |||||
* | Add configuration parameter to allow redaction of content from push messages ↵ | Caleb James DeLisle | 2017-06-23 | 1 | -1/+1 |
| | | | | for google/apple devices | ||||
* | Fix up push to use get_current_state_ids | Erik Johnston | 2016-08-25 | 1 | -1/+1 |
| | |||||
* | Ignore AlreadyCalled errors on timer cancel | Erik Johnston | 2016-07-31 | 1 | -1/+6 |
| | |||||
* | Create separate methods for getting messages to push | Mark Haines | 2016-07-28 | 1 | -1/+2 |
| | | | | | | | | | | | for the email and http pushers rather than trying to make a single method that will work with their conflicting requirements. The http pusher needs to get the messages in ascending stream order, and doesn't want to miss a message. The email pusher needs to get the messages in descending timestamp order, and doesn't mind if it misses messages. | ||||
* | Use similar naming we use in email notifs for push | David Baker | 2016-06-24 | 1 | -3/+6 |
| | | | | Fixes https://github.com/vector-im/vector-web/issues/1654 | ||||
* | Optionally split out the pushers into a separate process | Mark Haines | 2016-04-21 | 1 | -1/+1 |
| | |||||
* | Add missing yield | Erik Johnston | 2016-04-14 | 1 | -1/+1 |
| | |||||
* | Rename log context | Erik Johnston | 2016-04-14 | 1 | -1/+1 |
| | |||||
* | Make send_badge private | Erik Johnston | 2016-04-14 | 1 | -2/+2 |
| | |||||
* | Add necessary logging contexts | Erik Johnston | 2016-04-14 | 1 | -24/+25 |
| | |||||
* | Add extra Measure | Erik Johnston | 2016-04-14 | 1 | -14/+16 |
| | |||||
* | Run unsafe proces in a loop until we've caught up | David Baker | 2016-04-11 | 1 | -4/+11 |
| | | | | and wrap unsafe process in a try block | ||||
* | Actually check if we;re processing | David Baker | 2016-04-08 | 1 | -0/+2 |
| | |||||
* | Make sure max stream ordering only increases | David Baker | 2016-04-08 | 1 | -1/+1 |
| | |||||
* | Unsafe process should call itself if the max has changed | David Baker | 2016-04-08 | 1 | -0/+3 |
| | |||||
* | Comment why unsafe process is unsafe | David Baker | 2016-04-08 | 1 | -0/+5 |
| | |||||
* | Only pass in what we need | David Baker | 2016-04-07 | 1 | -3/+5 |
| | |||||
* | Wrap process in a flag so we don't process whist already processing. | David Baker | 2016-04-07 | 1 | -0/+9 |
| | |||||
* | Add measure blocks | David Baker | 2016-04-07 | 1 | -5/+10 |
| | |||||
* | Add comments on min_stream_id | David Baker | 2016-04-07 | 1 | -0/+2 |
| | | | | saying that the min stream id won't be completely accurate all the time | ||||
* | Remove code that's now been obsoleted or moved elsewhere | David Baker | 2016-04-07 | 1 | -1/+1 |
| | |||||
* | Send badge count pushes. | David Baker | 2016-04-07 | 1 | -16/+29 |
| | | | | Also fix bugs with retrying. | ||||
* | Make pushers use the event_push_actions table instead of listening on an ↵ | David Baker | 2016-04-06 | 1 | -38/+166 |
| | | | | | | | event stream & running the rules again. Sytest passes, but remaining to do: * Make badges work again * Remove old, unused code | ||||
* | Remove dead code for setting device specific rules. | Mark Haines | 2016-02-18 | 1 | -2/+1 |
| | | | | | | It wasn't possible to hit the code from the API because of a typo in parsing the request path. Since no-one was using the feature we might as well remove the dead code. | ||||
* | Merge branch 'develop' into push_badge_counts | David Baker | 2016-01-19 | 1 | -4/+4 |
|\ | |||||
| * | Rename 'user_name' to 'user_id' in push to make it consistent with the rest ↵ | Mark Haines | 2016-01-13 | 1 | -3/+3 |
| | | | | | | | | of the code | ||||
* | | Use the unread notification count to send accurate badge counts in push ↵ | David Baker | 2016-01-13 | 1 | -7/+7 |
|/ | | | | notifications. | ||||
* | copyrights | Matthew Hodgson | 2016-01-07 | 1 | -1/+1 |
| | |||||
* | Reuse a single http client, rather than creating new ones | Mark Haines | 2015-12-02 | 1 | -4/+3 |
| | |||||
* | Dial down logging for failed pushers | David Baker | 2015-03-06 | 1 | -1/+1 |
| | |||||
* | Add attribute so push gateways can tell if a member event is about the user ↵ | David Baker | 2015-03-06 | 1 | -0/+1 |
| | | | | in question | ||||
* | Send room ID in http notifications so clients know which room to go to if ↵ | David Baker | 2015-02-19 | 1 | -0/+1 |
| | | | | the user responds to the notification. | ||||
* | s/instance_handle/profile_tag/ | David Baker | 2015-02-03 | 1 | -2/+2 |
| | |||||
* | Ignore empty strings for display names & room names in notifications | David Baker | 2015-01-31 | 1 | -2/+2 |
| | |||||
* | Include content in notification pokes | David Baker | 2015-01-29 | 1 | -0/+2 |
| | |||||
* | Change 'from' in notification pokes to 'sender' to match client API v2. Send ↵ | David Baker | 2015-01-29 | 1 | -5/+4 |
| | | | | sender display names where they exist. | ||||
* | Code style fixes. | Mark Haines | 2015-01-29 | 1 | -4/+4 |
| | |||||
* | It is 2015 | David Baker | 2015-01-28 | 1 | -1/+1 |
| | |||||
* | Reset badge count to zero when last active time is bumped | David Baker | 2015-01-28 | 1 | -3/+35 |
| | |||||
* | Support membership events and more camelcase/underscores | David Baker | 2015-01-26 | 1 | -4/+4 |
| | |||||
* | Use push settings! | David Baker | 2015-01-23 | 1 | -4/+5 |
| | |||||
* | use underscores everywhere, not camelcase. | David Baker | 2015-01-20 | 1 | -3/+3 |
| | |||||
* | add instance_handles to pushers so we have a way to refer to them even if ↵ | David Baker | 2015-01-20 | 1 | -1/+2 |
| | | | | the push token changes. | ||||
* | Send room name and first alias in notification poke. | David Baker | 2015-01-15 | 1 | -3/+13 |
| | |||||
* | Honour the 'rejected' return from push gateways | David Baker | 2015-01-13 | 1 | -5/+10 |
| | | | | | | | Add a timestamp to push tokens so we know the last time they we got them from the device. Send it to the push gateways so it can determine whether its failure is more recent than the token. Stop and remove pushers that have been rejected. | ||||
* | after a few rethinks, a working implementation of pushers. | David Baker | 2014-12-18 | 1 | -12/+13 |
| | |||||
* | Update to app_id / app_instance_id (partially) and mangle to be PEP8 compliant. | David Baker | 2014-12-03 | 1 | -33/+42 |
| | |||||
* | More work on pushers. Attempt to do HTTP pokes. Not sure if the actual HTTP ↵ | David Baker | 2014-11-21 | 1 | -4/+51 |
| | | | | pokes work or not yet but the retry semantics are pretty good. | ||||
* | remove random half-line | David Baker | 2014-11-19 | 1 | -1/+0 |
| | |||||
* | Start creating a module to do generic notifications (just prints them to ↵ | David Baker | 2014-11-19 | 1 | -0/+40 |
stdout currently!) |