Make it easier to ignore setup issues
Summary:
Ref T4331. Ref T5968. Users sometimes have trouble figuring out how to ignore issues. The option is a bit hard to spot, especially if you aren't familiar with interfaces yet.
Make it a button on the issue page itself instead.
Test Plan:
Normal issue:
{F199225}
Ignored issue:
{F199226}
Fatal issue:
{F199227}
Reviewers: btrahan, chad
Reviewed By: chad
Subscribers: epriestley
Maniphest Tasks: T4331, T5968
Differential Revision: https://secure.phabricator.com/D10420
This commit is contained in:
@@ -23,7 +23,7 @@ final class PhabricatorSetupCheckDaemons extends PhabricatorSetupCheck {
|
||||
'The Phabricator daemons are not running, so Phabricator will not '.
|
||||
'be able to perform background processing (including sending email, '.
|
||||
'rebuilding search indexes, importing commits, cleaning up old data, '.
|
||||
'running builds, etc.).'.
|
||||
'and running builds).'.
|
||||
"\n\n".
|
||||
'Use %s to start daemons. See %s for more information.',
|
||||
phutil_tag('tt', array(), 'bin/phd start'),
|
||||
|
||||
@@ -13,7 +13,7 @@ final class PhabricatorConfigIgnoreController
|
||||
|
||||
public function processRequest() {
|
||||
$request = $this->getRequest();
|
||||
$issue_uri = $this->getApplicationURI('issue');
|
||||
$issue_uri = $this->getApplicationURI('issue/'.$this->issue.'/');
|
||||
|
||||
if ($request->isDialogFormPost()) {
|
||||
$this->manageApplication();
|
||||
|
||||
@@ -55,22 +55,10 @@ final class PhabricatorConfigIssueListController
|
||||
->addAttribute($issue->getSummary());
|
||||
if (!$issue->getIsIgnored()) {
|
||||
$item->setBarColor('yellow');
|
||||
$item->addAction(
|
||||
id(new PHUIListItemView())
|
||||
->setIcon('fa-eye-slash')
|
||||
->setWorkflow(true)
|
||||
->setName(pht('Ignore'))
|
||||
->setHref('/config/ignore/'.$issue->getIssueKey().'/'));
|
||||
$list->addItem($item);
|
||||
} else {
|
||||
$item->addIcon('none', pht('Ignored'));
|
||||
$item->addIcon('fa-eye-slash', pht('Ignored'));
|
||||
$item->setDisabled(true);
|
||||
$item->addAction(
|
||||
id(new PHUIListItemView())
|
||||
->setIcon('fa-eye')
|
||||
->setWorkflow(true)
|
||||
->setName(pht('Unignore'))
|
||||
->setHref('/config/unignore/'.$issue->getIssueKey().'/'));
|
||||
$item->setBarColor('none');
|
||||
$ignored_items[] = $item;
|
||||
}
|
||||
|
||||
@@ -107,12 +107,66 @@ final class PhabricatorSetupIssueView extends AphrontView {
|
||||
|
||||
}
|
||||
|
||||
$next = phutil_tag(
|
||||
'div',
|
||||
array(
|
||||
'class' => 'setup-issue-next',
|
||||
),
|
||||
pht('To continue, resolve this problem and reload the page.'));
|
||||
$actions = array();
|
||||
if (!$issue->getIsFatal()) {
|
||||
if ($issue->getIsIgnored()) {
|
||||
$actions[] = javelin_tag(
|
||||
'a',
|
||||
array(
|
||||
'href' => '/config/unignore/'.$issue->getIssueKey().'/',
|
||||
'sigil' => 'workflow',
|
||||
'class' => 'button grey',
|
||||
),
|
||||
pht('Unignore Setup Issue'));
|
||||
} else {
|
||||
$actions[] = javelin_tag(
|
||||
'a',
|
||||
array(
|
||||
'href' => '/config/ignore/'.$issue->getIssueKey().'/',
|
||||
'sigil' => 'workflow',
|
||||
'class' => 'button grey',
|
||||
),
|
||||
pht('Ignore Setup Issue'));
|
||||
}
|
||||
|
||||
$actions[] = javelin_tag(
|
||||
'a',
|
||||
array(
|
||||
'href' => '/config/issue/'.$issue->getIssueKey().'/',
|
||||
'class' => 'button grey',
|
||||
'style' => 'float: right',
|
||||
),
|
||||
pht('Reload Page'));
|
||||
}
|
||||
|
||||
if ($actions) {
|
||||
$actions = phutil_tag(
|
||||
'div',
|
||||
array(
|
||||
'class' => 'setup-issue-actions',
|
||||
),
|
||||
$actions);
|
||||
}
|
||||
|
||||
if ($issue->getIsIgnored()) {
|
||||
$status = phutil_tag(
|
||||
'div',
|
||||
array(
|
||||
'class' => 'setup-issue-status',
|
||||
),
|
||||
pht(
|
||||
'This issue is currently ignored, and does not show a global '.
|
||||
'warning.'));
|
||||
$next = null;
|
||||
} else {
|
||||
$status = null;
|
||||
$next = phutil_tag(
|
||||
'div',
|
||||
array(
|
||||
'class' => 'setup-issue-next',
|
||||
),
|
||||
pht('To continue, resolve this problem and reload the page.'));
|
||||
}
|
||||
|
||||
$name = phutil_tag(
|
||||
'div',
|
||||
@@ -121,15 +175,29 @@ final class PhabricatorSetupIssueView extends AphrontView {
|
||||
),
|
||||
$issue->getName());
|
||||
|
||||
$head = phutil_tag(
|
||||
'div',
|
||||
array(
|
||||
'class' => 'setup-issue-head',
|
||||
),
|
||||
array($name, $status));
|
||||
|
||||
$tail = phutil_tag(
|
||||
'div',
|
||||
array(
|
||||
'class' => 'setup-issue-tail',
|
||||
),
|
||||
array($actions, $next));
|
||||
|
||||
$issue = phutil_tag(
|
||||
'div',
|
||||
array(
|
||||
'class' => 'setup-issue',
|
||||
),
|
||||
array(
|
||||
$name,
|
||||
$head,
|
||||
$description,
|
||||
$next,
|
||||
$tail,
|
||||
));
|
||||
|
||||
$debug_info = phutil_tag(
|
||||
|
||||
Reference in New Issue
Block a user