Summary: Shows a timeline of all modified settings Fixes T6545 Will show all settings (no pagination, should be not so difficult to add if needed but most installs won't have hundreds of settings changes) I'm not happy by how the PhabricatorConfigTransaction object is instructed to render the config keys but i don't see any other reasonable way. We could always show the keys though. Test Plan: Changed settings and called the history page Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T6545 Differential Revision: https://secure.phabricator.com/D11088
63 lines
1.6 KiB
PHP
63 lines
1.6 KiB
PHP
<?php
|
|
|
|
final class PhabricatorConfigApplication extends PhabricatorApplication {
|
|
|
|
public function getBaseURI() {
|
|
return '/config/';
|
|
}
|
|
|
|
public function getIconName() {
|
|
return 'setup';
|
|
}
|
|
|
|
public function isPinnedByDefault(PhabricatorUser $viewer) {
|
|
return $viewer->getIsAdmin();
|
|
}
|
|
|
|
public function getTitleGlyph() {
|
|
return "\xE2\x98\xBA";
|
|
}
|
|
|
|
public function getApplicationGroup() {
|
|
return self::GROUP_ADMIN;
|
|
}
|
|
|
|
public function canUninstall() {
|
|
return false;
|
|
}
|
|
|
|
public function getName() {
|
|
return 'Config';
|
|
}
|
|
|
|
public function getShortDescription() {
|
|
return pht('Configure Phabricator');
|
|
}
|
|
|
|
public function getRoutes() {
|
|
return array(
|
|
'/config/' => array(
|
|
'' => 'PhabricatorConfigListController',
|
|
'all/' => 'PhabricatorConfigAllController',
|
|
'history/' => 'PhabricatorConfigHistoryController',
|
|
'edit/(?P<key>[\w\.\-]+)/' => 'PhabricatorConfigEditController',
|
|
'group/(?P<key>[^/]+)/' => 'PhabricatorConfigGroupController',
|
|
'welcome/' => 'PhabricatorConfigWelcomeController',
|
|
'database/'.
|
|
'(?:(?P<database>[^/]+)/'.
|
|
'(?:(?P<table>[^/]+)/'.
|
|
'(?:(?:col/(?P<column>[^/]+)|key/(?P<key>[^/]+))/)?)?)?'
|
|
=> 'PhabricatorConfigDatabaseStatusController',
|
|
'dbissue/' => 'PhabricatorConfigDatabaseIssueController',
|
|
'(?P<verb>ignore|unignore)/(?P<key>[^/]+)/'
|
|
=> 'PhabricatorConfigIgnoreController',
|
|
'issue/' => array(
|
|
'' => 'PhabricatorConfigIssueListController',
|
|
'(?P<key>[^/]+)/' => 'PhabricatorConfigIssueViewController',
|
|
),
|
|
),
|
|
);
|
|
}
|
|
|
|
}
|