Feature #217
Before deleting a Hostgroup, warn that the hostgroup is in use.
| Status: | Closed | Start: | 04/16/2010 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 100% |
|
| Category: | Web Interface | |||
| Target version: | 0.1-5 | |||
| Backlog: | Difficulity: | |||
| Votes: | 0 |
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.
Associated revisions
Revision 17a015c200d0ffb2505ea125cfdf99da3b7f2050
fixes #217 - Before deleting a Hostgroup, warn that the hostgroup is in use.
History
Updated by Ohad Levy about 3 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 about 3 years ago
- Status changed from New to Ready For Testing
- % Done changed from 0 to 100
Applied in changeset 17a015c200d0ffb2505ea125cfdf99da3b7f2050.
Updated by Ohad Levy about 3 years ago
- Status changed from Ready For Testing to Closed
