Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | User Cursor.__iter__ instead of fetchall | Erik Johnston | 2017-03-23 | 1 | -1/+1 |
| | | | | This prevents unnecessary construction of lists | ||||
* | Remove lock from rotate notifs | Erik Johnston | 2017-02-22 | 1 | -3/+0 |
| | |||||
* | Store looping call | Erik Johnston | 2017-02-21 | 1 | -1/+3 |
| | |||||
* | Fix up notif rotation | Erik Johnston | 2017-02-18 | 1 | -14/+22 |
| | |||||
* | Comment | Erik Johnston | 2017-02-16 | 1 | -1/+4 |
| | |||||
* | Comment | Erik Johnston | 2017-02-16 | 1 | -7/+14 |
| | |||||
* | Store the default push actions in a more efficient manner | Erik Johnston | 2017-02-16 | 1 | -11/+40 |
| | |||||
* | Less aggressive timers | Erik Johnston | 2017-02-14 | 1 | -2/+2 |
| | |||||
* | Aggregate event push actions | Erik Johnston | 2017-02-14 | 1 | -57/+210 |
| | |||||
* | Be more agressive about purging old room event_push_actions | Erik Johnston | 2017-02-01 | 1 | -3/+8 |
| | |||||
* | Comment | Erik Johnston | 2016-11-23 | 1 | -1/+3 |
| | |||||
* | More efficient notif count queries | Erik Johnston | 2016-11-23 | 1 | -8/+31 |
| | |||||
* | Remove where clause | Erik Johnston | 2016-09-12 | 1 | -1/+0 |
| | |||||
* | Add WHERE clause support to index creation | Erik Johnston | 2016-09-12 | 1 | -1/+2 |
| | |||||
* | Change the index to be stream_ordering, highlight | Erik Johnston | 2016-09-12 | 1 | -1/+1 |
| | |||||
* | Remove unused import | Erik Johnston | 2016-09-12 | 1 | -1/+0 |
| | |||||
* | Use register_background_index_update | Erik Johnston | 2016-09-12 | 1 | -24/+4 |
| | |||||
* | Add back in query change | Erik Johnston | 2016-09-12 | 1 | -1/+3 |
| | |||||
* | Merge branch 'develop' of github.com:matrix-org/synapse into ↵ | Erik Johnston | 2016-09-12 | 1 | -3/+1 |
|\ | | | | | | | erikj/make_notif_highlight_query_fast | ||||
| * | Revert "Add index to event_push_actions" | Erik Johnston | 2016-09-12 | 1 | -3/+1 |
| | | |||||
* | | Make reindex happen in bg | Erik Johnston | 2016-09-12 | 1 | -0/+30 |
|/ | |||||
* | Merge remote-tracking branch 'origin/develop' into ↵ | David Baker | 2016-09-09 | 1 | -1/+1 |
|\ | | | | | | | dbkr/make_notif_highlight_query_fast | ||||
| * | Merge pull request #1081 from matrix-org/dbkr/notifications_only_highlight | Matthew Hodgson | 2016-09-09 | 1 | -1/+8 |
| |\ | | | | | | | Implement `only=highlight` on `/notifications` | ||||
| * | | Fix /notifications API when used with `from` param | David Baker | 2016-09-08 | 1 | -1/+1 |
| | | | |||||
* | | | Add index to event_push_actions | David Baker | 2016-09-09 | 1 | -1/+3 |
| |/ |/| | | | | | | | | | and remove room_id caluse so it uses it Mostly from @negativemjark | ||||
* | | Implement `only=highlight` on `/notifications` | David Baker | 2016-09-08 | 1 | -1/+8 |
|/ | |||||
* | Merge branch 'develop' into dbkr/notifications_api | Matthew Hodgson | 2016-08-20 | 1 | -1/+1 |
|\ | |||||
| * | Remove lru option | Erik Johnston | 2016-08-19 | 1 | -1/+1 |
| | | |||||
* | | Merge remote-tracking branch 'origin/develop' into dbkr/notifications_api | David Baker | 2016-08-11 | 1 | -42/+188 |
|\| | |||||
| * | Fix SQL to supply arguments in the same order | Mark Haines | 2016-07-29 | 1 | -1/+1 |
| | | |||||
| * | Create separate methods for getting messages to push | Mark Haines | 2016-07-28 | 1 | -45/+154 |
| | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
| * | Comment get_unread_push_actions_for_user_in_range function | Kegan Dougal | 2016-07-28 | 1 | -2/+26 |
| | | |||||
| * | Use true/false for boolean parameter inclusive to avoid potential for sqli, ↵ | Mark Haines | 2016-07-05 | 1 | -1/+1 |
| | | | | | | | | and possibly make the code clearer | ||||
| * | Use different SQL for postgres and sqlite3 for when using multicolumn indexes | Mark Haines | 2016-07-04 | 1 | -9/+9 |
| | | |||||
| * | Actually we need to order these properly | David Baker | 2016-06-22 | 1 | -2/+12 |
| | | | | | | | | otherwise we'll end up returning the wrong 20 | ||||
| * | Style | David Baker | 2016-06-22 | 1 | -1/+1 |
| | | |||||
| * | Put most recent 20 messages in notif | David Baker | 2016-06-22 | 1 | -3/+4 |
| | | | | | | | | Fixes https://github.com/vector-im/vector-web/issues/1648 | ||||
| * | Limit number of notifications in an email notification | David Baker | 2016-06-01 | 1 | -2/+4 |
| | | |||||
* | | Include the ts the notif was received at | David Baker | 2016-05-24 | 1 | -5/+7 |
| | | |||||
* | | Add GET /notifications API | David Baker | 2016-05-23 | 1 | -0/+28 |
|/ | |||||
* | Remove debug logging | David Baker | 2016-05-23 | 1 | -1/+0 |
| | |||||
* | Oops, missing comma | David Baker | 2016-05-20 | 1 | -1/+1 |
| | |||||
* | Remove stale line | David Baker | 2016-05-20 | 1 | -2/+0 |
| | |||||
* | Handle empty events table | David Baker | 2016-05-20 | 1 | -0/+3 |
| | |||||
* | Make deleting push actions more efficient | David Baker | 2016-05-20 | 1 | -12/+59 |
| | | | | There's no index on received_ts, so manually binary search using the stream_ordering index, and only update it once an hour. | ||||
* | Only delete push actions after 30 days | David Baker | 2016-05-20 | 1 | -5/+37 |
| | |||||
* | Merge pull request #769 from matrix-org/erikj/push_actions_delete | Erik Johnston | 2016-05-13 | 1 | -0/+12 |
|\ | | | | | Delete old pushers | ||||
| * | Delete old pushers | Erik Johnston | 2016-05-03 | 1 | -0/+12 |
| | | |||||
* | | Correct SQL statement for postgres | David Baker | 2016-05-04 | 1 | -2/+3 |
| | | | | | | | | In standard sql, join binds tighter than comma, so we were joining on the wrong table. Postgres follows the standard (apparently). | ||||
* | | Remove unused function | David Baker | 2016-04-29 | 1 | -22/+0 |
| | | |||||
* | | Use explicit join | David Baker | 2016-04-29 | 1 | -3/+3 |
| | | |||||
* | | Oops, actually specify the user id | David Baker | 2016-04-29 | 1 | -1/+3 |
| | | |||||
* | | Remove unnecessary if | David Baker | 2016-04-29 | 1 | -1/+1 |
| | | |||||
* | | Put spaces at start of line | David Baker | 2016-04-29 | 1 | -16/+16 |
| | | |||||
* | | Send a rather basic email notif | David Baker | 2016-04-20 | 1 | -1/+0 |
| | | | | | | | | Also pep8 fixes | ||||
* | | First bits of emailpusher | David Baker | 2016-04-19 | 1 | -7/+50 |
|/ | | | | Mostly logic of when to send an email | ||||
* | Fix query for get_unread_push_actions_for_user_in_range | Erik Johnston | 2016-04-14 | 1 | -1/+2 |
| | |||||
* | pep8 | David Baker | 2016-04-13 | 1 | -1/+1 |
| | |||||
* | Only return unread notifications | David Baker | 2016-04-13 | 1 | -9/+50 |
| | | | | Make get_unread_push_actions_for_user_in_range only return unread event actions, being more true to its name. Done in two separate sql queries to get actions after a read receipt and those in a room wiht no receipt at all. SQL queries by Erik. | ||||
* | Oops, inequality fail | David Baker | 2016-04-07 | 1 | -1/+1 |
| | |||||
* | pep8 | David Baker | 2016-04-06 | 1 | -1/+1 |
| | |||||
* | Make pushers use the event_push_actions table instead of listening on an ↵ | David Baker | 2016-04-06 | 1 | -0/+48 |
| | | | | | | | event stream & running the rules again. Sytest passes, but remaining to do: * Make badges work again * Remove old, unused code | ||||
* | Use google style doc strings. | Mark Haines | 2016-04-01 | 1 | -2/+3 |
| | | | | | | | pycharm supports them so there is no need to use the other format. Might as well convert the existing strings to reduce the risk of people accidentally cargo culting the wrong doc string format. | ||||
* | Bump get_unread_event_push_actions_by_room_for_user cache | Erik Johnston | 2016-03-22 | 1 | -1/+1 |
| | |||||
* | Remove dead code for setting device specific rules. | Mark Haines | 2016-02-18 | 1 | -4/+3 |
| | | | | | | 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. | ||||
* | Rename functions | Erik Johnston | 2016-02-10 | 1 | -2/+2 |
| | |||||
* | Atomically persit push actions when we persist the event | Erik Johnston | 2016-02-09 | 1 | -29/+16 |
| | |||||
* | Actually return something sensible | Erik Johnston | 2016-02-03 | 1 | -1/+1 |
| | |||||
* | We return dicts now. | Erik Johnston | 2016-02-03 | 1 | -1/+1 |
| | |||||
* | Change event_push_actions_rm_tokens schema | Erik Johnston | 2016-02-03 | 1 | -15/+32 |
| | |||||
* | Make LRU cache not default to treecache & add options to use it | David Baker | 2016-01-22 | 1 | -1/+1 |
| | |||||
* | Use new invalidate_many cache invalidation to invalidate the ↵ | David Baker | 2016-01-22 | 1 | -4/+15 |
| | | | | event_push_actions cache appropriately. | ||||
* | Cache get_unread_event_push_actions_by_room_for_user | Erik Johnston | 2016-01-21 | 1 | -1/+2 |
| | |||||
* | Return highlight_count in /sync | Erik Johnston | 2016-01-19 | 1 | -2/+3 |
| | |||||
* | Remove the PushersTable and EventPushActionsTable objects | Mark Haines | 2016-01-12 | 1 | -5/+1 |
| | |||||
* | Delete notifications for redacted events | David Baker | 2016-01-06 | 1 | -0/+12 |
| | |||||
* | Add is_guest flag to users db to track whether a user is a guest user or ↵ | David Baker | 2016-01-06 | 1 | -2/+2 |
| | | | | not. Use this so we can run _filter_events_for_client when calculating event_push_actions. | ||||
* | = not == in sql | David Baker | 2016-01-04 | 1 | -1/+1 |
| | |||||
* | Rename event-actions to event_push_actions as per PR request | David Baker | 2016-01-04 | 1 | -0/+98 |