1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-26 00:32:42 +01:00

When Owners packages are archived, annotate them in tokenizer results

Summary: Fixes T13512. Archived packages in Owners are missing hinting, but should have it.

Test Plan:
Before:

{F7369122}

After:

{F7369128}

Maniphest Tasks: T13512

Differential Revision: https://secure.phabricator.com/D21134
This commit is contained in:
epriestley 2020-04-17 06:11:34 -07:00
parent 925d2b051c
commit 83eb7447a1

View file

@ -39,10 +39,16 @@ final class PhabricatorOwnersPackageDatasource
$name = $package->getName();
$monogram = $package->getMonogram();
$results[] = id(new PhabricatorTypeaheadResult())
$result = id(new PhabricatorTypeaheadResult())
->setName("{$monogram}: {$name}")
->setURI($package->getURI())
->setPHID($package->getPHID());
if ($package->isArchived()) {
$result->setClosed(pht('Archived'));
}
$results[] = $result;
}
return $this->filterResultsAgainstTokens($results);