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
F15413162: D17155.diff
Wed, Mar 19, 5:18 PM
F15411980: D17155.id41259.diff
Wed, Mar 19, 10:38 AM
F15379435: D17155.id.diff
Thu, Mar 13, 9:05 PM
F15367965: D17155.id41259.diff
Tue, Mar 11, 10:40 PM
Unknown Object (File)
Sat, Feb 22, 2:54 AM
Unknown Object (File)
Fri, Feb 21, 3:01 PM
Unknown Object (File)
Feb 2 2025, 9:25 AM
Unknown Object (File)
Jan 30 2025, 6:19 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
Branch
project3
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 15141
Build 19884: Run Core Tests
Build 19883: arc lint + arc unit

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.