Skip to content
Snippets Groups Projects
Commit 50a93647 authored by Christopher Johnson's avatar Christopher Johnson
Browse files

removes hardcoded phragile uri

adds sprint.phragile-uri config option with global default instead

Bug: T117213
Change-Id: I687f40563382edf89ce782cb8886c9855de2ab87
parent 3fbeaf53
No related branches found
No related tags found
No related merge requests found
......@@ -99,6 +99,12 @@ final class SprintConfigOptions
pht(
"Phragile charts are provided by an external application at https://phragile.wmflabs.org".
"\n\n.")),
$this->newOption('sprint.phragile-uri', 'string', 'https://phragile.wmflabs.org/sprints/')
->setSummary(pht('URI where Phragile is installed.'))
->setDescription(
pht(
'Set the URI where Phragile is installed.'))
->addExample('https://phragile.wmflabs.org/sprints/', pht('Valid Setting')),
);
}
......
......@@ -72,8 +72,8 @@ final class BurndownActionMenuEventListener extends PhabricatorEventListener {
$project = $event->getValue('object');
$projectid = $project->getId();
$phragile_uri = 'https://phragile.wmflabs.org/sprints/'.$projectid;
$phragile_base_uri = PhabricatorEnv::getEnvConfig('sprint.phragile-uri');
$phragile_uri = $phragile_base_uri.$projectid;
$view_uri = '/project/sprint/view/'.$projectid;
$board_uri = '/project/sprint/board/'.$projectid;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment