docbrown/app/assets
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
..
images Add Stack Exchange Liquid tag (#3637) 2019-08-14 15:01:47 -04:00
javascripts Notifications: increase efficiency and fix pagination offset issue (#3986) 2019-09-10 09:43:45 -04:00
stylesheets Notifications: increase efficiency and fix pagination offset issue (#3986) 2019-09-10 09:43:45 -04:00