Open huss opened 1 year ago
After talking with @mrathgeber and thinking about this, I have decided that deleting a conversion involving any unit that is compatible with any used meter unit is problematic. This same type of issue (but more complex here) came up about deleting a unit (see issue #1020) and it was decided you cannot delete a unit that is used in places. The same ideas will be used here.
The basic outline of a solution is:
A few notes:
This isn't trivial and I may have missed things. Thoughts and other ideas are welcome.
I will be working on this.
Is your feature request related to a problem? Please describe.
Admins can delete a conversion. This can cause undesirable effects including:
There may be other cases but hopefully this covers them.
Describe the solution you'd like
Checks need to be added to warning the admin. As was done for groups, the default graphic unit is set to no unit if needed but not allowed if there is no remaining default graphic unit. If members of a group become invalid then the change is not allowed (as is done in group edit page).
Describe alternatives you've considered
The admin is on their own and that is not the philosophy of OED.
Additional context
None