Page MenuHomePhabricator

Config - add phd.variant-config to suppress "Daemon & Web config" error message on a per key basis
ClosedPublic

Authored by btrahan on Jan 14 2015, 9:09 PM.
Tags
None
Referenced Files
F14042498: D11399.id27376.diff
Tue, Nov 12, 3:55 AM
F14012082: D11399.id27379.diff
Fri, Nov 1, 7:14 AM
F14012081: D11399.id27376.diff
Fri, Nov 1, 7:14 AM
F14011946: D11399.diff
Fri, Nov 1, 6:13 AM
F14003362: D11399.diff
Sat, Oct 26, 5:26 AM
F14002106: D11399.id27379.diff
Fri, Oct 25, 3:15 PM
F13976254: D11399.id.diff
Fri, Oct 18, 1:26 PM
F13974153: D11399.id27380.diff
Fri, Oct 18, 4:19 AM
Subscribers

Details

Summary

Fixes T6959.

Test Plan

When I was ready to test the feature, the "Daemon & Web config" error already showed up, from having added phd.variant-config. I went meta and changed the value of phd.variant-config to have phd.variant-config. The config error disappeared. I then changed the conpherence setting about conpherence email prefix and the error showed up again. Removing the conpherence config setting made the error disappear once more.

Diff Detail

Repository
rP Phabricator
Branch
T6959
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 3852
Build 3864: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

btrahan retitled this revision from to Config - add phd.variant-config to suppress "Daemon & Web config" error message on a per key basis.
btrahan updated this object.
btrahan edited the test plan for this revision. (Show Details)
btrahan added a reviewer: epriestley.
src/infrastructure/env/PhabricatorEnv.php
319

This is some unrelated stuff I should maybe remove. I don't have base-uri or production-uri set in my config, so this code throws an exception with just getEvnConfig... (I hit these codepaths trying to make a link in the new phd.variant-config description)

src/applications/config/option/PhabricatorPHDConfigOptions.php
72

This link won't be very useful if the issue doesn't exist, since it will just say "This setup issue has been resolved.". Not sure if it's helpful or not on the balance.

src/infrastructure/env/PhabricatorEnv.php
235

(Unrelated, but I think this should just be sort()?)

319

This is unexpected -- getEnvConfig() should not throw if these values are null, only if they aren't declared anywhere. Do you have a copy of the exception/trace?

src/infrastructure/env/PhabricatorEnv.php
319

I get one of those new fangled purdy error pages without any trace in the logs. Is there something I should do to have the logging occur?

In any case, I'll back these bits out for this diff, as it should be a separate diff anyway.

address other feedback (remove the link and just say "Daemon & Web issue"; change ksort to sort and verify that is okay because "Daemon & Web" issue did not show up)

epriestley edited edge metadata.
This revision is now accepted and ready to land.Jan 14 2015, 9:45 PM
This revision was automatically updated to reflect the committed changes.