Bug 2192564

Summary: Insights page or HostDetail's insights tab Remediate modal does not have consistent data-ouia-component-id
Product: Red Hat Satellite Reporter: Ladislav Vasina <lvasina>
Component: RH Cloud - InsightsAssignee: Shimon Shtein <sshtein>
Status: NEW --- QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: low Docs Contact:
Priority: medium    
Version: 6.13.0CC: ahumbe, aruzicka, ehelms, rlavi
Target Milestone: UnspecifiedKeywords: EasyFix, TestBlocker, Triaged
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: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ladislav Vasina 2023-05-02 09:57:58 UTC
Description of problem:
On the Insights page/Remediate modal or on the hosts/"Your host"/Insights tab/Remediate modal 
* <table> element,
* <tr> element of that table 
* Remediate button
* Cancel button
* If the recommendation has a resolution provided and you can choose some inputs, those inputs too

are changing its "data-ouia-component-id" every time you open this modal.

Version-Release number of selected component (if applicable):
satellite-6.13.0-6.el8sat.noarch
foreman-3.5.1.10-1.el8sat.noarch
Red Hat Enterprise Linux release 8.7 (Ootpa)

How reproducible:
Every time

Steps to Reproduce:
1. Generate insights recommendation:
- on host execute "chmod 777 /etc/ssh/sshd_config;insights-client"
- on the host, delete "best" option in /etc/dnf/dnf.conf
2. Run insights-client on the host
3. Sync recommendations on Configure/Insights page
4. Select some recommendation
5. Click Remediate button
5. Inspect the Remediation modal's elements and its data-ouia-component-id
6. Close the modal
7. Select a new recommendation to remediate or try to remediate the same recommendation

Actual results:
Remediation modal's elements and its data-ouia-component-id are changing

Expected results:
Remediation modal's elements and its data-ouia-component-id should not change and should be consistent.

Additional info:
This problem with the changing "data-ouia-component-id" appears in multiple places in Satellite. So it is going to be a more general problem with OUIA ids not just a problem with Insights page.