Page MenuHomePhabricator

Add "Edge Logic" support to PolicyAwareQuery

Authored by epriestley on Apr 18 2015, 3:07 PM.



Ref T4100. Ref T5595. This allows PolicyAwareQuery to write all the logic for AND, OR, NOT, and NULL (i.e., "not in any projects") queries against any edge type.

It accepts an edge type and a list of constraints (which are basically just operator-value pairs, like <NOT, PHID-X-Y>, meaning the results must not have an edge connecting them to PHID-X-Y).

This doesn't actually do anything yet; see future diffs.

Test Plan

arc unit --everything

Diff Detail

rP Phabricator
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

epriestley retitled this revision from to Add "Edge Logic" support to PolicyAwareQuery.Apr 18 2015, 3:07 PM
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
epriestley updated this revision to Diff 29897.
epriestley updated this revision to Diff 29898.Apr 18 2015, 3:08 PM
  • Minor cleanup.
btrahan edited edge metadata.Apr 20 2015, 4:21 PM
btrahan accepted this revision.
This revision is now accepted and ready to land.Apr 20 2015, 4:21 PM
This revision was automatically updated to reflect the committed changes.