Project

General

Profile

Bug #25908

Unable to create a new setting with the shortcut syntax

Added by Avi Sharvit 9 months ago. Updated 6 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Settings
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

It is impossible to create a new setting by doing `Setting[:foo] = "bar"`.

  • If `Setting[:foo]` already exists, it will work well and will update the setting value.
  • If `Setting[:foo]` does not exist, it will throw an error saying `description` and `default` are mandatory fields.

Associated revisions

Revision daf0a394 (diff)
Added by Avi Sharvit 9 months ago

Fixes #25908 - Remove setting creation shortcut

History

#1 Updated by The Foreman Bot 9 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/6427 added

#2 Updated by Avi Sharvit 9 months ago

  • Status changed from Ready For Testing to Closed

#3 Updated by Tomer Brisker 6 months ago

  • Category changed from Rails to Settings
  • Fixed in Releases 1.22.0 added

Also available in: Atom PDF