Homec4science

Add "Edge Logic" support to PolicyAwareQuery

Authored by epriestley <git@epriestley.com> on Apr 18 2015, 16:53.

Description

Add "Edge Logic" support to PolicyAwareQuery

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

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T4100, T5595

Differential Revision: https://secure.phabricator.com/D12455

Details

Committed
epriestley <git@epriestley.com>Apr 20 2015, 19:06
Pushed
aubortJan 31 2017, 17:16
Parents
rPH55e49d7e316c: Provide more buildXClause() and buildXClauseParts() on PolicyAwareQuery
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHe27c0b416d45: Add "Edge Logic" support to PolicyAwareQuery (authored by epriestley <git@epriestley.com>).Apr 20 2015, 19:06