mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 08:42:41 +01:00
2a3c3b2b98
Summary: Ref T10537. More infrastructure: - Put a `bin/nuance` in place with `bin/nuance import`. This has no useful behavior yet. - Allow sources to be searched by substring. This supports `bin/nuance import --source whatever` so you don't have to dig up PHIDs. Test Plan: - Applied migrations. - Ran `bin/nuance import --source ...` (no meaningful effect, but works fine). - Searched for sources by substring in the UI. Reviewers: chad Reviewed By: chad Maniphest Tasks: T10537 Differential Revision: https://secure.phabricator.com/D15436
11 lines
215 B
PHP
11 lines
215 B
PHP
<?php
|
|
|
|
$table = new NuanceSource();
|
|
|
|
foreach (new LiskMigrationIterator($table) as $source) {
|
|
PhabricatorSearchWorker::queueDocumentForIndexing(
|
|
$source->getPHID(),
|
|
array(
|
|
'force' => true,
|
|
));
|
|
}
|