Page MenuHomePhabricator

Add "Edge Logic" support to PolicyAwareQuery
ClosedPublic

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

Details

Summary

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

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

Event Timeline

epriestley updated this revision to Diff 29897.Apr 18 2015, 3:07 PM
epriestley retitled this revision from to Add "Edge Logic" support to PolicyAwareQuery.
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 29898.Apr 18 2015, 3:08 PM
  • Minor cleanup.
btrahan accepted this revision.Apr 20 2015, 4:21 PM
btrahan edited edge metadata.
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.