Bug 2247887

Summary: On the all hosts page, the power status for each host should not be checked when the power column is not selected in "Manage columns"
Product: Red Hat Satellite Reporter: matt jia <mjia>
Component: HostsAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.13.4Keywords: Regression
Target Milestone: Unspecified   
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: 2023-11-04 05:05:34 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:
Embargoed:

Description matt jia 2023-11-04 05:01:19 UTC
Description of problem:

It appears BZ#2238367 does not fix the issue completely. When loading 'All hosts' page with power unselected in "Manage columns", the API calls for checking power are still made:

~~~
26392:2023-11-04T15:57:02 [I|app|9a177947] Started GET "/api/v2/hosts/xxx.redhat.com/power" for x.x.x.x at 2023-11-04 15:57:02 +1100
26393:2023-11-04T15:57:02 [I|app|9a177947] Processing by Api::V2::HostsController#power_status as JSON
26394:2023-11-04T15:57:02 [I|app|9a177947]   Parameters: {"apiv"=>"v2", "id"=>"xxx.redhat.com"}
26395:2023-11-04T15:57:02 [D|tax|9a177947] Current location set to PNQ2
26396:2023-11-04T15:57:02 [D|tax|9a177947] Current organization set to APAC-MNA-LAB
26469:2023-11-04T15:57:03 [D|app|9a177947] Body: {"id":3,"state":"on","title":"On"}
26470:2023-11-04T15:57:03 [I|app|9a177947] Completed 200 OK in 1191ms (Views: 0.2ms | ActiveRecord: 2.7ms | Allocations: 61384)
~~~

Comment 1 matt jia 2023-11-04 05:05:34 UTC

*** This bug has been marked as a duplicate of bug 2219648 ***