Actions
Feature #2261
closedOption to prevent selection of a type
Start date:
2024-04-25
Estimated time:
Description
The idea is to implement an option which, when activated, prevents the selection of a type.
This can be useful to e.g. create not selectable categories and can be very useful with type structuring in general because with current implementation every "not selectable" category needs to be an own hierarchy which can in turn produce confusing longer forms.
It is now implemented and selectable can be turned on/off in a type view, restrictions:
- Can only be done with at least editor permissions
- Only types which aren't already used by entities can be changed to unselectable
- This functionality isn't available for value types. These would require more effort and an extra issue would have to be created for it.
Updated by Alexander Watzinger 8 months ago
- Precedes Feature #2105: New file license system added
Updated by Alexander Watzinger 8 months ago
- Subject changed from Option to prevent selecting first level of type hierarchies to Option to prevent selection of a type
- Description updated (diff)
Change of plan: instead having a switch for selectable top level types this can be switched for every type individually which makes it much more flexible. The description was updated accordingly.
Updated by Alexander Watzinger 8 months ago
To do:
- Add table to track non selectable types in schema web
- Add functionality to set/read the flag at individual types
- Prevent selection of these types in UI
- Check prevention of these types in backend
- Adapt type orphans functions to ignore these types
Updated by Alexander Watzinger 8 months ago
Works good so far (in branch feature/type_not_select), remaining to do:
- Adapt type orphan functions to prevent false positives
- Test other types (e.g. value, place, ...)
- Adapt install and upgrade SQL
- Better button labels? Currently "set selectable" and "unset selectable".
- Tests
- Update manual
Updated by Alexander Watzinger 8 months ago
- Description updated (diff)
- Status changed from In Progress to Closed
Implemented and will be part of the next release
Actions