mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
fc82118848
Summary: Fixes T10681. Adds a search API endpoint and an edit API endpoint for Phurl URLs. I still need to add the ability to search by name, alias, URL, and maybe description. Test Plan: Test the methods through `/conduit/method/phurls.search/` and `/conduit/method/phurls.edit/` Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin, epriestley, yelirekim Maniphest Tasks: T10681 Differential Revision: https://secure.phabricator.com/D16600
11 lines
216 B
PHP
11 lines
216 B
PHP
<?php
|
|
|
|
$table = new PhabricatorPhurlURL();
|
|
|
|
foreach (new LiskMigrationIterator($table) as $url) {
|
|
PhabricatorSearchWorker::queueDocumentForIndexing(
|
|
$url->getPHID(),
|
|
array(
|
|
'force' => true,
|
|
));
|
|
}
|