aws / aws-parallelcluster-ui

Apache License 2.0
31 stars 20 forks source link

Clicking the Start or Stop button in cluster details leads to no change in the buttons state #39

Closed BarcoMasile closed 1 year ago

BarcoMasile commented 1 year ago

Currently when clicking Start or Stop button on a cluster instance, when loading is terminated the button is still in enabled state.

The issue is rooted in the fact that instances is continuously fetched from the backend, it's content changes, but the selectedInstances keeps a reference to the old/stale value. For instance, if the instance in the instances array goes from status=Running to status=Stopped, this change is never reflected in the selectedInstance.

Workaround

Refresh the page to see the updated button state.

BarcoMasile commented 1 year ago

This issue was fixed in #168 and will be available with next release of PCUI