Bug 1385528

Summary: [RFE] Mandatory fields|attributes not being automatically set if there's a single option
Product: Red Hat Satellite Reporter: Roman Plevka <rplevka>
Component: WebUIAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: high    
Version: 6.3.0CC: bbuckingham, bkearney, jcallaha, mhulan, oprazak, sgraessl, tbrisker
Target Milestone: UnspecifiedKeywords: FutureFeature
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-04 19:07:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Roman Plevka 2016-10-17 09:25:58 UTC
Description of problem:
There are many places, where user is forced to set an attribute with a single option left.
e.g. New Host -> Location.
If there's only 'Default Location, the field remains 'null' by default and user is forced to manually set it before he's able to proceed with creating new host.

This has several negative effects:
1. It is simply annoying. And time consuming for a user to go through all prerequisites and select the mandatory field.
2. Especially at new-host dialog - user is not forced to choose the Taxonomies as the first step - he can navigate through all the tabs and set whatever fields he likes (including the ones, which don't exist in the Default Location). When he finally sets the location, many of the fields are rendered invalid, requiring user to select them again.

- similar thing happens on OS and provisioning templates. If a new kind of provisioning template is assigned to OS (e.g. PXEGrub template), a 'PXEGrub template' field will appear under OS->Provisioning templates.
Despite the fact, that only a single template has been assigned to the OS, the field is not being set and remains 'Null', causing an error during the actual provisioning.

Version-Release number of selected component (if applicable):
satellite 6.2+

How reproducible:
always

Steps to Reproduce:
1. have a single org and loc (e.g. default ones)
2. Navigate to Hosts -> New Hosts
3. notice the Organization & Location fields are marked as mandatory and are set to 'null' by default despite the fact, there is only 1 possible option for them - Forcing user to set it manually.

Actual results:
the mandatory fields with 1 possible value are not set, causing the values for the rest of the form not being filtered by the taxonomies, allowing user to choose invalid values before he sets the taxonomies themselves.

Expected results:
Set the values automatically everywhere, where possible.


Additional info:
The New Host dialog is not the only place, where similar thing happens.

Comment 2 Ondřej Pražák 2017-11-27 14:34:42 UTC
Created redmine issue http://projects.theforeman.org/issues/21785 from this bug

Comment 3 Bryan Kearney 2018-09-04 18:56:29 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.

Comment 4 Bryan Kearney 2018-09-04 19:07:01 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.