Commit 27ecedd1 authored by epriestley's avatar epriestley
Browse files

Use some more human-readable Conduit keys in updated API methods

Ref T12074. This uses more consistent Conduit keys for constraint names.

This is a minor compatibility break on watchers/members but since these methods are more useful now this is probably a good time to try to get away with it, and a more consistent API is better in the long run. I need to issue compatibility guidance for the milestones thing anyway and that one isn't avoidable, so try to rip the bandage off all in one go.

Test Plan: Reviewed new constraint names from console, called methods using them.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T12074

Differential Revision:
parent b08c9b3f
......@@ -20,6 +20,7 @@ final class PhabricatorProjectColumnSearchEngine
id(new PhabricatorPHIDsSearchField())
->setAliases(array('project', 'projects', 'projectPHID')),
......@@ -24,10 +24,12 @@ final class PhabricatorProjectSearchEngine
id(new PhabricatorUsersSearchField())
->setAliases(array('member', 'members')),
id(new PhabricatorUsersSearchField())
->setAliases(array('watcher', 'watchers')),
id(new PhabricatorSearchSelectField())
......@@ -55,11 +57,13 @@ final class PhabricatorProjectSearchEngine
id(new PhabricatorPHIDsSearchField())
->setLabel(pht('Parent Projects'))
->setAliases(array('parent', 'parents', 'parentPHID'))
->setDescription(pht('Find direct subprojects of specified parents.')),
id(new PhabricatorPHIDsSearchField())
->setLabel(pht('Ancestor Projects'))
->setAliases(array('ancestor', 'ancestors', 'ancestorPHID'))
pht('Find all subprojects beneath specified ancestors.')),
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment