Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14396962
D10594.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
4 KB
Referenced Files
None
Subscribers
None
D10594.diff
View Options
diff --git a/src/applications/config/controller/PhabricatorConfigDatabaseController.php b/src/applications/config/controller/PhabricatorConfigDatabaseController.php
--- a/src/applications/config/controller/PhabricatorConfigDatabaseController.php
+++ b/src/applications/config/controller/PhabricatorConfigDatabaseController.php
@@ -28,9 +28,6 @@
case PhabricatorConfigStorageSchema::STATUS_OKAY:
$icon = 'fa-check-circle green';
break;
- case PhabricatorConfigStorageSchema::STATUS_NOTE:
- $icon = 'fa-info-circle blue';
- break;
case PhabricatorConfigStorageSchema::STATUS_WARN:
$icon = 'fa-exclamation-circle yellow';
break;
diff --git a/src/applications/config/controller/PhabricatorConfigDatabaseIssueController.php b/src/applications/config/controller/PhabricatorConfigDatabaseIssueController.php
--- a/src/applications/config/controller/PhabricatorConfigDatabaseIssueController.php
+++ b/src/applications/config/controller/PhabricatorConfigDatabaseIssueController.php
@@ -145,12 +145,6 @@
new PhutilNumber($counts[PhabricatorConfigStorageSchema::STATUS_WARN]));
}
- if (isset($counts[PhabricatorConfigStorageSchema::STATUS_NOTE])) {
- $errors[] = pht(
- 'Detected %s minor issue(s) with the scheamata.',
- new PhutilNumber($counts[PhabricatorConfigStorageSchema::STATUS_NOTE]));
- }
-
$title = pht('Database Issues');
$table_box = id(new PHUIObjectBoxView())
diff --git a/src/applications/config/controller/PhabricatorConfigDatabaseStatusController.php b/src/applications/config/controller/PhabricatorConfigDatabaseStatusController.php
--- a/src/applications/config/controller/PhabricatorConfigDatabaseStatusController.php
+++ b/src/applications/config/controller/PhabricatorConfigDatabaseStatusController.php
@@ -710,10 +710,6 @@
$status = PhabricatorConfigStorageSchema::getIssueStatus($issue);
switch ($status) {
- case PhabricatorConfigStorageSchema::STATUS_NOTE:
- $icon = PHUIStatusItemView::ICON_INFO;
- $color = 'blue';
- break;
case PhabricatorConfigStorageSchema::STATUS_WARN:
$icon = PHUIStatusItemView::ICON_WARNING;
$color = 'yellow';
diff --git a/src/applications/config/schema/PhabricatorConfigStorageSchema.php b/src/applications/config/schema/PhabricatorConfigStorageSchema.php
--- a/src/applications/config/schema/PhabricatorConfigStorageSchema.php
+++ b/src/applications/config/schema/PhabricatorConfigStorageSchema.php
@@ -12,12 +12,10 @@
const ISSUE_NULLABLE = 'nullable';
const ISSUE_KEYCOLUMNS = 'keycolumns';
const ISSUE_UNIQUE = 'unique';
- const ISSUE_SUBNOTE = 'subnote';
const ISSUE_SUBWARN = 'subwarn';
const ISSUE_SUBFAIL = 'subfail';
const STATUS_OKAY = 'okay';
- const STATUS_NOTE = 'note';
const STATUS_WARN = 'warn';
const STATUS_FAIL = 'fail';
@@ -60,9 +58,6 @@
foreach ($this->getSubschemata() as $sub) {
switch ($sub->getStatus()) {
- case self::STATUS_NOTE:
- $issues[self::ISSUE_SUBNOTE] = self::ISSUE_SUBNOTE;
- break;
case self::STATUS_WARN:
$issues[self::ISSUE_SUBWARN] = self::ISSUE_SUBWARN;
break;
@@ -122,8 +117,6 @@
return pht('Key on Wrong Columns');
case self::ISSUE_UNIQUE:
return pht('Key has Wrong Uniqueness');
- case self::ISSUE_SUBNOTE:
- return pht('Subschemata Have Notices');
case self::ISSUE_SUBWARN:
return pht('Subschemata Have Warnings');
case self::ISSUE_SUBFAIL:
@@ -155,8 +148,6 @@
return pht('This schema is on the wrong columns.');
case self::ISSUE_UNIQUE:
return pht('This key has the wrong uniqueness setting.');
- case self::ISSUE_SUBNOTE:
- return pht('Subschemata have setup notices.');
case self::ISSUE_SUBWARN:
return pht('Subschemata have setup warnings.');
case self::ISSUE_SUBFAIL:
@@ -170,20 +161,18 @@
switch ($issue) {
case self::ISSUE_MISSING:
case self::ISSUE_SURPLUS:
- case self::ISSUE_SUBFAIL:
case self::ISSUE_NULLABLE:
+ case self::ISSUE_SUBFAIL:
return self::STATUS_FAIL;
case self::ISSUE_SUBWARN:
case self::ISSUE_COLUMNTYPE:
- return self::STATUS_WARN;
- case self::ISSUE_SUBNOTE:
case self::ISSUE_CHARSET:
case self::ISSUE_COLLATION:
case self::ISSUE_MISSINGKEY:
case self::ISSUE_SURPLUSKEY:
case self::ISSUE_UNIQUE:
case self::ISSUE_KEYCOLUMNS:
- return self::STATUS_NOTE;
+ return self::STATUS_WARN;
default:
throw new Exception(pht('Unknown schema issue "%s"!', $issue));
}
@@ -192,10 +181,8 @@
public static function getStatusSeverity($status) {
switch ($status) {
case self::STATUS_FAIL:
- return 3;
- case self::STATUS_WARN:
return 2;
- case self::STATUS_NOTE:
+ case self::STATUS_WARN:
return 1;
case self::STATUS_OKAY:
return 0;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 9:07 AM (18 h, 20 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6920993
Default Alt Text
D10594.diff (4 KB)
Attached To
Mode
D10594: Remove the "note" database issue status
Attached
Detach File
Event Timeline
Log In to Comment