Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1731987 - Make New compliance policy page consistent with rest of satellite UI.
Summary: Make New compliance policy page consistent with rest of satellite UI.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: SCAP Plugin
Version: 6.6.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.10.0
Assignee: Aditi Puntambekar
QA Contact: Jameer Pathan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-07-22 13:36 UTC by Jameer Pathan
Modified: 2023-09-15 00:17 UTC (History)
7 users (show)

Fixed In Version: tfm-rubygem-foreman_openscap-4.2.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-16 14:08:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
multiline radio (128.02 KB, image/png)
2019-07-31 00:35 UTC, Mirek Długosz
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 27378 0 Normal New Make 'Deployment Options' radio buttons in policy wizard consistent with other pages 2021-01-18 15:59:59 UTC
Red Hat Product Errata RHSA-2021:4702 0 None None None 2021-11-16 14:09:04 UTC

Description Jameer Pathan 2019-07-22 13:36:18 UTC
Description of problem:
Make New compliance policy page consistent with rest of satellite UI.
In satellite 6.6, we have added new tab "Deployment Option" in "New compliance policy" page. This tab contains three radio buttons used for selecting deployment option. Currently each radio button is in it's own "form-group" which is not consistent with rest of Satellite, it makes it hard to automate such page. If we can make this page similar to other, for example Infrastructure > subnets > create subnet page's "Protocol *" option, where all the radio buttons are in same form group and uses label class radio-inline for each radio button.

We can also move the content of "Deployment Option" tab to "Policy Attributes" tab. It can contain name, description and deploy_by option, where deploy_by contains deployment options(ansible, puppet, manual).

Version-Release number of selected component (if applicable):
- Satellite 6.6.0 snap 11

Comment 3 Mirek Długosz 2019-07-22 14:07:35 UTC
I took another look at this page and our code and I believe the most important part here is that usually <input> is children of <label>, while on this page <label> is uncle to <input>. This requires us to add special handling just for this one page, which is good indicator of possible inconsistency in Satellite. That prompted this bugzilla as first approach on fixing the root cause.

We don't really mind if radio boxes are displayed in one line, or one below another.

If there is another page in Satellite with the same radio buttons group HTML structure, please let me know. Might be we are missing support for that and it's really on us to provide it.

Comment 4 Ondřej Pražák 2019-07-23 06:32:50 UTC
Created redmine issue https://projects.theforeman.org/issues/27378 from this bug

Comment 5 Marek Hulan 2019-07-29 11:21:38 UTC
Mirosław, thanks for more detailed description. Though the observation is not entirely correct. We have label for the form field and label for radio button itself. E.g. go to subnet page and see the protocol selection. The label protocol is the main one, each radio has own label. The main one is a sibling, while each radio button has more specific child label. The same is on other forms, e.g. job invocation form.

In this deployment step, there are three main fields which are connected. It wouldn't look great as inline field with three options, also the inline help would be impossible to split per each value. Is this a big issue for automation? If that helps, we can add unique ids to all inputs or their labels.

Comment 6 Mirek Długosz 2019-07-31 00:34:33 UTC
Marek,

Relevant part of our automation is here: https://github.com/SatelliteQE/airgun/blob/master/airgun/widgets.py#L66

This code assumes that <input> element is descendant of <label> element (the one that provides text for this specific radio box, not field in general). Such assumption is true for subnets.
Main problem is associating specific radio box with human-readable label. Looking at https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label , it seems there are two main ways to do this:
1. Make <input> direct child of <label> - this is what Satellite usually does and what our automation assumes
2. Add "id" attribute to <input>, with matching "for" attribute in <label>

My proposal is:
1. Add "id" to <input> and "for" in <label> on discussed page on Satellite side (this will have added benefit of allowing users to click on labels to select radio box - we only need to ensure clicking on info icon does not trigger that action)
2. On QE side, teach automation to work with <labels> associated with <inputs> through id and for attributes.


It will also make it a little easier for us in QE if we group all radio boxes in one <div> (see attached screenshot for visualization). It doesn't need to impact page look in any way, it's only for us to ensure we don't include too many elements by mistake.

Hope it sounds reasonable to you

Comment 7 Mirek Długosz 2019-07-31 00:35:17 UTC
Created attachment 1594878 [details]
multiline radio

Comment 8 Marek Hulan 2019-07-31 06:29:13 UTC
Totally makes sense and should be easy to add.

Comment 9 Lai 2019-08-21 20:00:17 UTC
I'm a bit lost on this.  Are we asking UX team to correct the page to make it consistent with the rest of satellite or are we changing our automation to fit this current page?  If the former, has this been put in UX's sprint to work on yet?

Comment 10 Marek Hulan 2019-09-10 07:00:46 UTC
My understading is, we are adding ids to labels, not changing the way it looks. See comment 5 for why I don't think we should change the layout. I suppose the automation may need some changes after ids are added.

Comment 11 Mirek Długosz 2019-09-13 18:01:52 UTC
Agreed with Marek. In my mind, it was always about shuffling HTML structure and attributes around, with little or no impact on actual look of the page.

Comment 12 Bryan Kearney 2019-11-05 20:43:41 UTC
Upstream bug assigned to apuntamb

Comment 13 Mike McCune 2020-12-09 22:17:38 UTC
Upon review of our valid but aging backlog the Satellite Team has concluded that this Bugzilla does not meet the criteria for a resolution in the near term, and are planning to close in approximately a month. If you have any concerns about this, please contact your Red Hat Account team.  Thank you.

Comment 16 Marek Hulan 2021-01-18 17:07:46 UTC
I've sent a patch implementing the suggestion 1 from the comment 6. Labels are clickable now, little help icons remain to display only the help. That should resolve this BZ.

Comment 17 Bryan Kearney 2021-01-25 14:35:44 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/27378 has been resolved.

Comment 18 Jameer Pathan 2021-08-11 12:31:29 UTC
Verified:

Verified with:
- Satellite 6.10.0 snap 12
- tfm-rubygem-foreman_openscap-4.3.3-1.el7sat.noarch

Test step:
- Go to Host > Policies > New compliance policy
- Inspect page

Observation:
- "id" is present in <input> tag and "for" in <label> tag.

Comment 21 errata-xmlrpc 2021-11-16 14:08:51 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Satellite 6.10 Release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:4702

Comment 22 Red Hat Bugzilla 2023-09-15 00:17:40 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days


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