@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Allow Conduit to query project slugs.

Summary: Ref T4418. Allow Conduit to query projects by their slugs.

Test Plan: This functionality mostly already existed, it just wasn't exposed to the Conduit endpoint.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Maniphest Tasks: T4418

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

authored by

Joshua Spence and committed by
epriestley
6df8c4a4 d1626a3b

+7 -2
+7 -2
src/applications/project/conduit/ConduitAPI_project_query_Method.php
··· 24 24 return array( 25 25 'ids' => 'optional list<int>', 26 26 'phids' => 'optional list<phid>', 27 + 'slugs' => 'optional list<string>', 27 28 'status' => 'optional '.$status_const, 28 29 29 30 'members' => 'optional list<phid>', ··· 38 39 } 39 40 40 41 public function defineErrorTypes() { 41 - return array( 42 - ); 42 + return array(); 43 43 } 44 44 45 45 protected function execute(ConduitAPIRequest $request) { ··· 60 60 $phids = $request->getValue('phids'); 61 61 if ($phids) { 62 62 $query->withPHIDs($phids); 63 + } 64 + 65 + $slugs = $request->getValue('slugs'); 66 + if ($slugs) { 67 + $query->withSlugs($slugs); 63 68 } 64 69 65 70 $members = $request->getValue('members');