himanshumaurya09876 commented on code in PR #4263:
URL: https://github.com/apache/ambari/pull/4263#discussion_r4614639492
##########
ambari-web/latest/src/screens/Hosts/bulkOperations.tsx:
##########
@@ -155,11 +155,33 @@ const getHostsForBulkOperationSuccessCallback = (
return;
}
- if (
- ["SET_RACK_INFO", "ADD", "DELETE", "RECOVER_HOST"].includes(
- operationData.action
- )
- ) {
+ if (operationData.action === "RECOVER_HOST") {
Review Comment:
Thank you for pointing this out. The comment has been reworded to state
plainly that the refetch always executes regardless of the selection mode, and
that this results in one additional request for the Selected/All cases where
the original response was already complete. I agree this is an acceptable
tradeoff in exchange for simpler, uniform behavior.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]