fix: fix refresh power button issue#3441
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes a regression on the Device Details toolbar where clicking the Refresh Power Status icon could return a stale cached power state instead of fetching the latest state from the device (issue #3440).
Changes:
- Update the toolbar power-state refresh flow to call
devicesService.getPowerState()(fresh HTTP request) instead ofgetPowerStateCached(). - Update the inline comment to reflect the intended “bypass cache on refresh” behavior.
4 tasks
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
DevipriyaS17
marked this pull request as ready for review
July 15, 2026 06:36
DevipriyaS17
force-pushed
the
pr-3430
branch
2 times, most recently
from
July 16, 2026 08:46
b342e39 to
755c277
Compare
madhavilosetty-intel
force-pushed
the
pr-3430
branch
from
July 16, 2026 20:04
755c277 to
6f07ed6
Compare
madhavilosetty-intel
approved these changes
Jul 16, 2026
RosieAMT
pushed a commit
that referenced
this pull request
Jul 20, 2026
## [3.60.1](v3.60.0...v3.60.1) (2026-07-20) ### Bug Fixes * fix refresh power button issue ([#3441](#3441)) ([98210d2](98210d2))
|
🎉 This PR is included in version 3.60.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


PR Checklist
What are you changing?
Issue - #3440 Clicking the Refresh Power Status icon does not retrieve the latest power state
Root Cause:
The toolbar was using getPowerStateCached() for power-state reads, which can return a previously cached value instead of issuing a new HTTP request. That is correct for the initial load, but not for a manual refresh.
Behavior:
Fix:
Request URL
https://10.99.115.56/mps/api/v1/amt/power/state/4939adac-fc23-8c93-c2d0-88aedd6e4316
Request Method
GET
Status Code
200 OK
{"powerstate":2,"OSPowerSavingState":2}
Request URL
https://10.99.115.56/mps/api/v1/amt/power/action/4939adac-fc23-8c93-c2d0-88aedd6e4316
Request Method
POST
Status Code
200 OK
{
"Header": {
"To": "http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous",
"RelatesTo": 0,
"Action": "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_PowerManagementService/RequestPowerStateChangeResponse",
"MessageID": "uuid:00000000-8086-8086-8086-00000000014C",
"ResourceURI": "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_PowerManagementService"
},
"Body": {
"ReturnValue": 0,
"ReturnValueStr": "SUCCESS"
}
}
3.Request URL
https://10.99.115.56/mps/api/v1/amt/power/state/4939adac-fc23-8c93-c2d0-88aedd6e4316
Request Method
GET
Status Code
200 OK
Remote Address
{"powerstate":8,"OSPowerSavingState":0}