Commit Graph

5 Commits (0b853678a45df06f5b9453217a9bf72f23ee322d)

Author SHA1 Message Date
Matt Jankowski 1ef014802b
Refactor `Trends::Query` to avoid brakeman sql injection warnings ()
Eugen Rochko fd9a9b07c2
Fix trends returning less results per page when filtered in REST API ()
- Change filtering and pagination to occur in SQL instead of Redis
- Change rank/score displayed on trends in admin UI to be locale-specific
Eugen Rochko 465ee7792f
Fix pagination header on empty trends responses in REST API ()
Eugen Rochko e3a2203061
Add offset pagination to trends in REST API ()
Eugen Rochko 27965ce5ed
Add trending statuses ()
* Add trending statuses

* Fix dangling items with stale scores in localized sets

* Various fixes and improvements

- Change approve_all/reject_all to approve_accounts/reject_accounts
- Change Trends::Query methods to not mutate the original query
- Change Trends::Query#skip to offset
- Change follow recommendations to be refreshed in a transaction

* Add tests for trending statuses filtering behaviour

* Fix not applying filtering scope in controller