Description of the Problem
User has selected an account role ARNs from the "Account and roles" steps and after the selection, one of the ARN definition (it could be installer, support, worker etc) has been deleted from the backend due to some reason. User did multiple ARN refresh from wizard step to reload but the widget i.e. ARN fields didn't indicate that the role is missing. The API response from backend clearly shown that the deleted ARNs were not part of response. Hence suspecting that something cached in UI side that fails to load the latest definition based on the new changes.
See the recording. Screencast from 2024-11-15 15-20-00.mp4
How reproducible:
always
Steps to Reproduce:
- Open OCM UI staging.
- Open ROSA wizard.
- Select control plane as "Classic" and click "Next" button
- In Accounts and roles step, select AWS infra account id.
- Select the Installer ARNs.
- Delete one of the selected ARNs(support or worker or any other selected ones) from backend (ex: rosa delete account-roles)
- Click "Refresh ARNs" button and see the behavior.
- Repeat step 7 multiple times and see the behavior.
Actual results:
At step 7, The account role ARNs fields in the OCM UI not updated based on the backend response even after multiple refresh on ARN list from UI. i.e. the delete ARN definition still shown in OCM UI. The backend response doesn't contain deleted ARNs from step 6.
Expected results:
At step 7, The account role ARNs fields should be updated based on the backend response after refresh on ARN action i.e. (click "Refresh" button) from OCM UI