Bug #11749
closednew host puppet environment jquery selector too liberal
Description
When creating a host or hostgroup and selecting just the puppet environment, no puppet classes get loaded on the 'puppet classes' tab. The user has to select a lifecycle env and content view and only then will they be loaded.
Once those are selected the user can change the puppet env at will, but this should not be required
Updated by Eric Helms almost 9 years ago
- Translation missing: en.field_release changed from 70 to 86
Updated by Eric Helms over 8 years ago
- Translation missing: en.field_release changed from 86 to 144
Updated by Eric Helms over 8 years ago
- Translation missing: en.field_release changed from 144 to 168
Updated by Eric Helms over 8 years ago
- Translation missing: en.field_release deleted (
168)
Updated by Justin Sherrill over 8 years ago
- Assignee set to Justin Sherrill
- Priority changed from Normal to High
- Translation missing: en.field_release set to 143
- Difficulty changed from easy to medium
Updated by Justin Sherrill over 8 years ago
- Related to Bug #13988: Hostgroups Puppet Class management issue added
Updated by Justin Sherrill over 8 years ago
- Project changed from Katello to Foreman
- Subject changed from puppet class population on new host/hostgroup page requires lifecycle env/content view selection to new host puppet environment jquery selector too liberal
- Category changed from 83 to Host creation
- Status changed from New to Assigned
This appears to be a result of https://github.com/theforeman/foreman/blob/develop/app/assets/javascripts/application.js#L387
this selector:
$('select[name*=environment_id]')
seems to be matching 'name=host[environment_id]' but its also matching 'name=host[content_facet_attributes][lifecycle_environment_id]'
We should make the selector more restrictive. Moving to foreman
Updated by The Foreman Bot over 8 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/3642 added
Updated by Dominic Cleal over 8 years ago
- Translation missing: en.field_release deleted (
143)
Updated by Justin Sherrill over 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 4eeea97393e19327f39002e86f0fb4f97415cc1a.
Updated by Dominic Cleal over 8 years ago
- Translation missing: en.field_release set to 161