evazion
93dd952949
pagination: refactor to avoid counting pages in API.
...
Previously the page-based (numbered) paginator would always count the
total_pages, even in API calls when it wasn't needed. This could be very
slow in some cases. Refactor so that total_pages isn't calculated unless
it's called.
While we're at it, refactor to condense all the sequential vs. numbered
pagination logic into one module. This incidentally fixes a couple more
bugs:
* "page=b0" returned all pages rather than nothing.
* Bad parameters like "page=blaha123" and "page=a123blah" were accepted.
2019-10-07 22:01:37 -05:00
..
2019-08-28 23:40:29 -05:00
2018-04-06 18:09:57 -07:00
2018-04-06 18:09:57 -07:00
2019-08-19 00:46:31 -05:00
2019-10-07 22:01:37 -05:00
2019-09-24 03:33:21 -05:00
2019-01-22 17:22:07 -08:00
2018-05-15 14:19:45 -07:00
2016-09-18 14:13:11 +05:00
2018-04-06 18:09:57 -07:00
2019-08-18 11:24:41 -05:00
2019-09-07 22:21:55 -05:00
2018-12-10 17:51:57 -08:00
2018-04-06 18:09:57 -07:00
2019-09-07 22:21:55 -05:00
2018-11-11 20:18:21 -06:00
2019-08-25 20:29:32 -05:00
2019-08-24 22:55:36 -05:00
2019-08-29 00:52:23 -05:00
2018-09-20 19:51:59 -05:00
2019-08-25 20:29:32 -05:00
2018-04-06 18:09:57 -07:00
2018-08-12 14:22:08 -05:00
2019-08-25 20:29:32 -05:00
2019-08-29 20:44:33 -05:00
2019-08-12 02:12:56 -05:00
2018-04-06 18:09:57 -07:00
2019-08-01 21:21:18 -05:00
2019-05-10 17:31:07 -07:00
2019-08-25 20:29:32 -05:00
2019-10-07 22:01:37 -05:00
2019-09-02 12:20:37 -05:00
2019-09-26 22:14:29 -05:00
2018-04-06 18:09:57 -07:00
2019-08-18 11:24:41 -05:00
2019-09-08 23:28:02 -05:00
2019-08-18 11:24:41 -05:00
2019-08-18 11:24:41 -05:00
2018-12-11 17:08:31 -08:00
2019-08-18 11:24:41 -05:00
2019-09-24 03:33:21 -05:00
2019-08-25 20:29:32 -05:00
2018-04-06 18:09:57 -07:00
2018-04-06 18:09:57 -07:00
2019-09-04 23:56:12 -05:00
2019-08-30 20:03:36 -05:00
2019-09-22 23:14:55 -05:00
2019-08-24 22:55:36 -05:00
2019-10-01 22:51:40 -05:00
2018-07-03 17:59:53 -07:00
2017-05-31 16:15:18 -05:00
2018-04-06 18:09:57 -07:00
2019-09-23 03:22:32 -05:00
2018-04-26 15:31:06 -07:00
2018-04-06 18:09:57 -07:00
2019-09-17 01:30:28 -05:00
2018-10-01 19:47:39 -05:00
2019-09-25 17:57:11 -05:00
2018-04-06 18:09:57 -07:00
2018-06-20 11:11:46 -07:00
2019-08-16 20:49:34 -05:00
2018-12-11 17:08:31 -08:00
2019-09-25 21:43:01 -05:00
2018-05-15 14:19:45 -07:00
2019-09-23 00:03:11 -05:00
2019-08-25 20:29:32 -05:00