Bug #38079
openChange of inherited ansible roles is not updated immediately in the UI
Description
1. Create a hostgroup with an arbitrary ansible role assigned
2. Create a host with the hostgroup from step 1
3. Go to the host's page and edit the host, change the host group to a different one and then select the hostgroup from step 1 again (it is actually enough to just open the drop-down and click on the hostgroup from step 1 that is already selected), then click submit
4. Without reloading the page, go to the "Ansible" tab of the host (the sub-tab "Roles" should be selected by default)
Expected results:
the text with a hyperlink "View inherited roles" should be present
Additional info:
Reloading the page, or simply switching to "Ansible->Jobs" Tab and then back to "Ansible->Roles" tab makes the "View inherited roles" visible again. So this is likely a case where the model in the UI is not correctly updated after the submit button is pressed in the host edit window, and it needs either a reload or some other action (like switching from "Ansible->Jobs" to "Ansible-Roles" to update that model. Running the ansible roles seems unaffected fortunately, as far as I can tell the correct roles are always run when clicking on "|Schedule a job v| Run ansible roles".
No data to display