Project

General

Profile

Bug #2454

Settings not preloaded in production

Added by Ivan Necas about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

With the new update of Settings code, the possible options are not loaded in production at first run.

Proposed fix:

https://github.com/theforeman/foreman/pull/574

Associated revisions

Revision 05921293 (diff)
Added by Ivan Necas about 6 years ago

Fixes #2454 - Fix loading settings in production

The Setting subclasses are not preloaded in initialization phase in
production.

Also (if Setting.first rescue (false)) is not satisfied when the
settings are not set yet. Using table_exists? instead.

Also, define constants before audited So that the constants are available even
when not migrated yet.

History

#1 Updated by Ivan Necas about 6 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF