1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-24 15:52:41 +01:00
phorge-phorge/src/applications/project/query
epriestley 8efdc4aabf Replace getPagingValue() with cursor methods
Summary:
Ref T7803. Prior to this change sequence, Query classes conflated paging values (the actual thing that goes in a "x > 3" clause) with cursor values (arbitrary identifiers which track where the user is in a result list).

Although the two can sometimes be the same, the vast majority of implementations are simpler and better when object IDs are used as cursors and paging values are derived from them.

The new stuff handles this in a consistent way, so we're free to separate getPagingValue() from paging. The new method is essentially getResultCursor().

This also implements getPageCursors(), which allows queries to return directional cursors. The inability to do this was a practical limitation blocking the implementation of T7803.

Test Plan:
  - Browsed a bunch of results and paged through queries.
  - Grepped for removed methods.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T7803

Differential Revision: https://secure.phabricator.com/D12383
2015-04-13 11:58:38 -07:00
..
PhabricatorProjectColumnPositionQuery.php Support natural ordering of workboards 2014-08-08 08:11:00 -07:00
PhabricatorProjectColumnQuery.php Rename PhabricatorApplication subclasses 2014-07-23 10:03:09 +10:00
PhabricatorProjectColumnTransactionQuery.php Workboards - add column detail page 2014-03-26 14:40:47 -07:00
PhabricatorProjectQuery.php Replace getPagingValue() with cursor methods 2015-04-13 11:58:38 -07:00
PhabricatorProjectSearchEngine.php Convert all tokenizers to take token/scalar inputs 2015-03-31 14:10:55 -07:00
PhabricatorProjectTransactionQuery.php Add project history and title strings 2013-10-22 13:49:37 -07:00