docbrown/app
rhymes 80e6cf4801 Notifications: increase efficiency and fix pagination offset issue (#3986)
* Increase efficiency and fix pagination offset issue

Right now we filter recently aggregated notifications at runtime, which worked before when there was no pagination, but now filtering is not a good idea combined with offset pagination because it throws off the calculations.

The filtering should be done in the SQL query before paginating, which is what we've switched to. I added a bunch of scopes to make the code clearer as well.

To avoid nesting tags I've also updated the HTML and the JS logic to insert it in the right place.

* Add explanation for hiding the load more button for new users
2019-09-10 09:43:45 -04:00
..
assets Notifications: increase efficiency and fix pagination offset issue (#3986) 2019-09-10 09:43:45 -04:00
black_box Add watercooler as sidebar tag and watercooler flare (#3465) 2019-07-12 14:24:33 -04:00
controllers Notifications: increase efficiency and fix pagination offset issue (#3986) 2019-09-10 09:43:45 -04:00
dashboards Add random variants to onboarding for a/b testing (#3742) 2019-08-18 18:30:22 -04:00
decorators Sponsorship: business logic (step 2) (#3440) 2019-07-10 16:40:56 -04:00
errors Add API Analytics Endpoints (#2293) 2019-04-04 10:52:45 -04:00
fields Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
helpers Dispatch events to the webhook endpoints #3715 (#3872) 2019-09-07 13:17:45 -04:00
javascript Images uploads: fix UI for multiple images (#3958) 2019-09-07 10:57:14 -04:00
jobs Dispatch events to the webhook endpoints #3715 (#3872) 2019-09-07 13:17:45 -04:00
labor Fix edge case for rewarding when unpublished (#3987) 2019-09-09 12:33:50 -04:00
lib Add hackers.town to allowed Mastodon instances (#3642) 2019-08-06 10:37:35 -04:00
liquid_tags Fix rubocop lints (#3922) [ci skip] 2019-09-03 10:09:48 -04:00
mailers Improve mod roundrobin notification and internal tooling (#3855) 2019-08-27 21:54:09 -04:00
models Notifications: increase efficiency and fix pagination offset issue (#3986) 2019-09-10 09:43:45 -04:00
observers Add comment markdown to warned_user_ping (#3750) 2019-08-22 22:04:45 -04:00
policies Listing Drafts and Deletion (#3540) 2019-09-01 13:54:54 -04:00
sanitizers Add support for mark element in markdown (#2089) 2019-03-18 17:10:58 -04:00
serializers/webhook Use a sortable unique ID for the event_id (#3972) 2019-09-09 10:15:12 -04:00
services Use a sortable unique ID for the event_id (#3972) 2019-09-09 10:15:12 -04:00
uploaders Set max file size limit for profile images (#3313) 2019-06-28 12:06:25 -04:00
view_objects Dispatch events to the webhook endpoints #3715 (#3872) 2019-09-07 13:17:45 -04:00
views Notifications: increase efficiency and fix pagination offset issue (#3986) 2019-09-10 09:43:45 -04:00