Homec4science

Support "parentPHIDs" and "ancestorPHIDs" as constraints in project.search API

Authored by epriestley <git@epriestley.com> on Jan 8 2017, 20:51.

Description

Support "parentPHIDs" and "ancestorPHIDs" as constraints in project.search API

Summary:
Ref T12074. Allows querying for project by direct parent (find only immediate children) or any ancestor (find all descendants) using the API.

There's no proper web UI for this since I'm not sure how useful it is, but you can /project/?parent=PHID-PROJ-... or /project/?ancestor=... for now. We can add UI later if/when use cases arise, but it's not immediately clear to me that this is useful to do from the web.

Test Plan:

  • From API, queried with parentPHIDs and ancestorPHIDs, finding direct children only and all descendants, respectively.
  • From web UI, fiddled with ?parent=... and ?ancestor=... to make sure they work too. This isn't intended to be a user-facing feature.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T12074

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

Details

Committed
epriestley <git@epriestley.com>Jan 8 2017, 22:16
Pushed
aubortJan 31 2017, 17:16
Parents
rPHc0bec6c0ed81: Add "parent" and "ancestor" information to the project.search API
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH9fa7355edc00: Support "parentPHIDs" and "ancestorPHIDs" as constraints in project.search API (authored by epriestley <git@epriestley.com>).Jan 8 2017, 22:16