Bug 2216685 - [RFE] Add ability to unset/reset a Settings option
Summary: [RFE] Add ability to unset/reset a Settings option
Keywords:
Status: NEW
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Settings
Version: 6.13.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-22 08:42 UTC by Pavel Moravec
Modified: 2023-07-05 00:31 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SAT-18780 0 None None None 2023-07-04 11:17:51 UTC
Red Hat Knowledge Base (Solution) 7021543 0 None None None 2023-06-27 12:26:43 UTC

Description Pavel Moravec 2023-06-22 08:42:41 UTC
Description of problem:
From a user perspective, it is tricky-to-impossible to reset a Settings value once modified from its default (if there is a default). User does not know what the default is ("is empty string the same like nil value..?"), some defaults are "hidden" just in source code.

An experienced user can follow (unsupported, not reocmmended in general) procedure "delete the settings row from foreman DB, restart dynflow+foreman services", but that is something we should not recommend to customers.

Please provide an API and/or hammer option to reset a Settings.


Version-Release number of selected component (if applicable):
6.13


How reproducible:
100%


Steps to Reproduce:
1. Change "Entries per page" or "CDN SSL version" settings.
2. Try to unset / reset to defaults.


Actual results:
2. "Entries per page" has some default value unknown to user and there is no way to reset the cusomization (providing there empty string, I get "malformed format string" error). "CDN SSL version" does not even have a default option.


Expected results:
2. e.g. a "hammer settings reset" subcommand available (or some other means for the same).


Additional info:


Note You need to log in before you can comment on or make changes to this bug.