1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-13 10:22:42 +01:00
phorge-phorge/src/applications/policy
epriestley ab92242e00 Extend PhabricatorPolicyQuery from PhabricatorOffsetPagedQuery
Summary:
A few goals here:

  - Slightly simplify the Query classtree -- it's now linear: `Query` -> `OffsetPagedQuery` (adds offset/limit) -> `PolicyQuery` (adds policy filtering) -> `CursorPagedPolicyQuery` (adds cursors).
  - Allow us to move from non-policy queries to policy queries without any backward compatibility breaks, e.g. Conduit methods which accept 'offset'.
  - Separate the client limit ("limit") from the datafetch hint limit ("rawresultlimit") so we can make the heurstic smarter in the future if we want. Some discussion inline.

Test Plan: Expanded unit tests to cover offset behaviors.

Reviewers: vrana, btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T603

Differential Revision: https://secure.phabricator.com/D3192
2012-08-08 12:15:58 -07:00
..
__tests__ Extend PhabricatorPolicyQuery from PhabricatorOffsetPagedQuery 2012-08-08 12:15:58 -07:00
constants Move files in Phabricator one level up 2012-06-01 12:32:44 -07:00
exception Move files in Phabricator one level up 2012-06-01 12:32:44 -07:00
filter Move files in Phabricator one level up 2012-06-01 12:32:44 -07:00
interface Move files in Phabricator one level up 2012-06-01 12:32:44 -07:00