Network list not shown when creating a compute profile on a libvirt compute resource
|Assigned To:||Sebastian Gräßl|
|Target version:||Team Daniel - Iteration 9|
|Found in release:||Pull request:||https://github.com/theforeman/foreman/pull/4282, https://github.com/theforeman/foreman/pull/4277|
|Velocity based estimate||-|
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1394817
Description of problem:
When creating one new computer profile using as computer resource one libvirt connection, is not possible see the Network available in dropdown menulist, only after submit and open again we can see the network available to this computer resource / provider.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create one new libvirt computer resource
2. Infrastructure - Computer Profiles - New Computer Profile - <define name> / submit - <select libvirt computer resource>
3. In Network interfaces section, it's possible to see Network type, Network and NIC type, feel free to change Network type, in Network field still as text box.
4. Click on Submit
5. Reopen the same computer profile and check again the Network field, now it's possible to select via dropdown menu list.
dropdown menu list with network availables
Fixes #18468 - Include JS in libvirt compute profile form
is not loaded and selecting of certain attributes fail.
refs #18468 - move compute_resources JS to compute profile index
The CR JS should always be ready and loaded on the compute profile
index, as the new attributes form is rendered into the existing page
after the profile is created.
Because the new attributes form is loaded via the two-pane #content
compute_profiles/show is not automatically loaded into the page.
This fixes the issue for all compute resources, not only Libvirt. It
Turbolinks so it's unloaded later.