Page MenuHomePhabricator

Split Setup Issues into Groups
ClosedPublic

Authored by chad on Feb 10 2015, 1:48 AM.
Tags
None
Referenced Files
F14065256: D11726.diff
Tue, Nov 19, 3:45 AM
F14052824: D11726.diff
Fri, Nov 15, 11:04 AM
F14040733: D11726.diff
Mon, Nov 11, 12:47 PM
F14040079: D11726.id28270.diff
Mon, Nov 11, 7:20 AM
F14024060: D11726.diff
Thu, Nov 7, 5:27 AM
F14016319: D11726.id28270.diff
Mon, Nov 4, 7:52 AM
F14002397: D11726.id.diff
Fri, Oct 25, 6:37 PM
F14002396: D11726.id28270.diff
Fri, Oct 25, 6:37 PM
Subscribers

Details

Summary

Groups setup issues into Important, PHP, MySQL, and Base for easier parsing on initial installations.

Test Plan

Test my internal server and various issues.

pasted_file (852×949 px, 198 KB)

Diff Detail

Repository
rP Phabricator
Branch
setup-issue-group
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 4415
Build 4428: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

chad retitled this revision from to Split Setup Issues into Groups.
chad updated this object.
chad edited the test plan for this revision. (Show Details)
chad added reviewers: epriestley, btrahan.
epriestley edited edge metadata.

I think we can simplify this by moving most of the logic to newIssue(), see inline. Basically:

  • Have newIssue() do $issue->setGroup($this->getDefaultGroup()).
  • Remove all setGroup(self::getGroup()).
  • If any SetupCheck classes raise issues outside of their group (maybe some of the PHP stuff?), they can call setGroup() explicitly to change the group.
  • Maybe consider defining constants on the base SetupCheck class, like GROUP_PHP, GROUP_MYSQL, etc., so this stuff is easier to grep for.
src/applications/config/check/PhabricatorAuthSetupCheck.php
5–7

Maybe call this getDefaultGroup(), since the check itself isn't in a group, per se, and could issue warnings into multiple groups.

40

You can just have newIssue() do this by default. Then specific checks can call it explicitly to override the default if they need to.

src/applications/config/controller/PhabricatorConfigIssueListController.php
35

Maybe call these "Other Setup Issues"? The phrase "Base Setup Issues" isn't very clear to me.

40–43

Maybe don't render these boxes when there are no issues? That is, if you have no MySQL issues, just don't show the group?

Then we'd need to show something if you have no issues at all. But this seems cleaner and less overwhelming in the case where there are only a few issues, to me.

This revision now requires changes to proceed.Feb 10 2015, 2:16 PM

Mind rolling secure for me please?

chad edited edge metadata.
  • Update per comments
This revision is now accepted and ready to land.Feb 10 2015, 8:51 PM
This revision was automatically updated to reflect the committed changes.