Feature #217
closedBefore deleting a Hostgroup, warn that the hostgroup is in use.
Description
Users will go through some effort when they create a Hostgroup, and assign classes and group parameters.
Then they add many hosts to this Hostgroup.
If they delete the Hostgroup (by mistake or mis-communication), this effort may be wasted.
It would be great if Foreman did not allow deletion of Hostgroups that are in use.
This can be done by using "before_destroy Ensure_not_used_by.new(:hosts, :puppetclasses)"
But ideally, the delete link should show a summary of what Hosts (and Group Parameters) will be affected after you click delete and confirm the deletion.
Updated by Ohad Levy over 14 years ago
- Category set to Web Interface
- Target version set to 0.1-5
Would you like to start with the simple solution? (ensure that its not used)
after #200 is done, you could easily change the pop up text when pressing the delete link.
Updated by Ohad Levy over 14 years ago
- Status changed from New to Ready For Testing
- % Done changed from 0 to 100
Applied in changeset 17a015c200d0ffb2505ea125cfdf99da3b7f2050.
Updated by Ohad Levy over 14 years ago
- Status changed from Ready For Testing to Closed