V3 API enable should check dependencies #2065
Labels
feature
New feature
priority: undecided
Undecided priority to be assigned after discussion
under discussion
Requires consideration before a decision is made whether/how to implement
Background & Feature
Originating in #2055 (comment), the idea is that when enabling an entity, all its dependencies should be checked to be enabled as well.
Feature
Since V3 API considers entity disable/enable as a single state (going forward), dependencies of all entity versions must be checked.
Example
DatasetA
v1 hasschemaA
v2 and mapping CR that is tied tomappingTableA
v6 and also definespropertyDefinionA
DatasetA v2 has
schemaBv3, no mapping CR and defines
propertyDefintionB`.DatasetA
is disabled.When trying to (re)enable it,
schemaA
in v2,schemaB
v3,mappingTableA
v6,propertyDefintionA|B
(all versions) must be check to be enabled in order for DatasetA to be correctly enabled.Proposed Solution [Optional]
Solution Ideas:
disabled
state (not tied to validation itself) based on just unique entity namesThe text was updated successfully, but these errors were encountered: