Page MenuHomePhabricator

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

Authored by epriestley on Jan 8 2017, 7:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 17, 1:40 AM
Unknown Object (File)
Fri, Dec 13, 3:50 AM
Unknown Object (File)
Thu, Dec 5, 10:45 AM
Unknown Object (File)
Tue, Dec 3, 5:49 PM
Unknown Object (File)
Oct 25 2024, 7:25 PM
Unknown Object (File)
Oct 23 2024, 1:11 PM
Unknown Object (File)
Oct 18 2024, 10:58 PM
Unknown Object (File)
Oct 12 2024, 10:25 PM
Subscribers
None

Details

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.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Jan 8 2017, 8:25 PM
This revision was automatically updated to reflect the committed changes.