Page MenuHomePhabricator

Support "phriction.document.search" queries by "parentPaths" or "ancestorPaths"
ClosedPublic

Authored by epriestley on Feb 22 2018, 6:55 PM.
Tags
None
Referenced Files
F19513496: D19125.diff
Jan 13 2026, 1:39 PM
F18836895: D19125.id45829.diff
Oct 27 2025, 3:47 AM
F18836894: D19125.id45825.diff
Oct 27 2025, 3:47 AM
F18836893: D19125.id.diff
Oct 27 2025, 3:46 AM
F18834102: D19125.diff
Oct 26 2025, 6:53 AM
F18827756: D19125.id.diff
Oct 24 2025, 11:59 AM
F18819675: D19125.diff
Oct 22 2025, 8:28 AM
F18779123: D19125.id45829.diff
Oct 11 2025, 12:16 PM
Subscribers
None

Details

Summary

Ref T13090. Ref T13077. This adds parentPaths and ancestorPaths constraints to phriction.document.query. These should be a little more usable than the internal slugPrefix / depth stuff -- that's technically more powerful, but requires callers to know more slug normalization rules. We could perhaps expose minDepth / maxDepth in the future.

Test Plan

Ran valid and invalid parentPaths and ancestorPaths queries for /, aaa/, AAA/, etc. Got sensible-seeming results.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Feb 22 2018, 8:49 PM
This revision was automatically updated to reflect the committed changes.