2013-09-12 22:06:44 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
// Update the "PROJ" search index, to:
|
|
|
|
//
|
|
|
|
// - Populate the index itself, which was added recently.
|
|
|
|
// - Populate the secondary object name index in Maniphest.
|
|
|
|
|
|
|
|
$root = dirname(phutil_get_library_root('phabricator'));
|
|
|
|
|
|
|
|
$command = new PhutilExecPassthru(
|
|
|
|
'php -f %s -- index --type PROJ',
|
|
|
|
$root.'/scripts/search/manage_search.php');
|
|
|
|
$err = $command->execute();
|
|
|
|
if ($err) {
|
2013-09-13 18:38:42 +02:00
|
|
|
// NOTE: Just ignore this. The indexing script fails if there are no projects
|
|
|
|
// yet, and even if it actually fails with something terrible and explosive
|
|
|
|
// it isn't very concerning. The worst case here is that "group by projects"
|
|
|
|
// doesn't work perfectly in Maniphest, and re-running the script later on
|
|
|
|
// can fix it.
|
2013-09-12 22:06:44 +02:00
|
|
|
}
|