Page MenuHomePhabricator

Split Setup Issues into Groups
ClosedPublic

Authored by chad on Feb 10 2015, 1:48 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 3, 7:24 AM
Unknown Object (File)
Thu, Apr 25, 1:31 AM
Unknown Object (File)
Thu, Apr 11, 9:15 PM
Unknown Object (File)
Thu, Apr 11, 9:04 AM
Unknown Object (File)
Tue, Apr 9, 7:44 PM
Unknown Object (File)
Sun, Apr 7, 7:36 PM
Unknown Object (File)
Apr 1 2024, 11:27 AM
Unknown Object (File)
Feb 12 2024, 5:14 AM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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
38

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

38–59

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.