Homec4science

When multiple web hosts are in service, don't require setup warnings to be…

Authored by epriestley <git@epriestley.com> on Apr 26 2016, 16:33.

Description

When multiple web hosts are in service, don't require setup warnings to be dismissed on each one

Summary:
Fixes T10876. Currently, we can end up with a setup warning banner sticking on each web device, since the state is stored in local cache.

Instead:

  • When we actually run the setup checks, save the current state in the database.
  • Before we show a cached banner, make sure the database still says the checks are a problem.

This could lead to some inconsistencies if setup checks legitimately pass on some hosts but not on others. For example, if you have git installed on one machine but not on another, we may raise a setup warning ("No Git Binary!") about it on one host only.

For now, assume users have their operational environments in some sort of reasonable shape and can install the same stuff everywhere. In the future, we could split the issues into "global" and "per-host" issues if we run into problems with this.

Test Plan:
This is somewhat tricky to test locally since you really need multiple webservers to test it properly, but I:

  • Created some setup issues, saw banner.
  • Ignored/cleared them, saw banner go away.
  • Verified database cache writes were occurring properly.

Then I sort of faked it like this:

  • Created a setup issue.
  • Manually set the database cache value to [] ("no issues").
  • Reloaded page.
  • No more banner.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10876

Differential Revision: https://secure.phabricator.com/D15802

Details

Committed
epriestley <git@epriestley.com>Apr 26 2016, 19:03
Pushed
aubortJan 31 2017, 17:16
Parents
rPH8606fb588f8e: Port "Staging Area" repository section to new management UI
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH3fda965288cc: When multiple web hosts are in service, don't require setup warnings to be… (authored by epriestley <git@epriestley.com>).Apr 26 2016, 19:03