1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-28 09:42:41 +01:00
phorge-phorge/src/applications/maniphest
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
..
__tests__ Improve task subpriority movement algorithm for homogenous blocks 2015-03-26 11:11:23 -07:00
application Fix some odd looking arrays 2015-04-05 22:29:39 +10:00
capability Simplify the implementation of PhabricatorPolicyCapability subclasses 2014-07-25 08:25:42 +10:00
command Implement the "!priority" and "!status" mail commands 2015-04-01 11:51:53 -07:00
conduit Give Conduit params/return/errors protected visibility 2015-04-13 11:58:35 -07:00
config Implement the "!priority" and "!status" mail commands 2015-04-01 11:51:53 -07:00
constants Implement the "!priority" and "!status" mail commands 2015-04-01 11:51:53 -07:00
controller Convert all tokenizers to take token/scalar inputs 2015-03-31 14:10:55 -07:00
edge Modernize Pholio edges 2015-01-02 10:11:41 +11:00
editor Modernize ManiphestTask paging and ordering 2015-04-13 11:58:31 -07:00
event Remove implode_selected_handle_links() 2015-03-31 05:48:20 -07:00
export phutil_utf8_shorten => PhutilUTF8StringTruncator 2014-08-29 15:15:13 -07:00
field Use ApplicationTransactions and CustomField to implement build steps 2014-03-25 16:08:40 -07:00
lipsum Fix some linter violations 2015-01-03 09:11:41 +11:00
mail Expose all application mail receivers 2015-04-01 11:52:02 -07:00
phid Rename PHIDType classes 2014-07-24 08:05:46 +10:00
query Replace getPagingValue() with cursor methods 2015-04-13 11:58:38 -07:00
remarkup Rename PhutilRemarkupRule subclasses 2014-08-05 00:55:43 +10:00
search Maniphest - use subscribers framework properly 2014-12-10 16:27:30 -08:00
storage Remove temporary code 2015-02-10 08:22:23 +11:00
typeahead T5015, Allow Herald rules for Maniphest to act on task status changes 2014-11-12 12:55:24 -08:00
view Policy - update TODO to better tracking task for Maniphest drag and drop policy fix 2015-02-03 12:29:08 -08:00