Skip to content

Maintain redefinition consistency through deletion handling and validation #2587

Todo
0 of 5 issues completed
Todo

Description

@adaussy

Functional goal

Help users evolve reusable models without unintentionally losing local configuration or leaving unnoticed inconsistencies in dependent redefinition trees.

Deleting a source feature can affect configurations elsewhere in the model. Users must understand that impact and choose whether to remove the dependent configuration or preserve it for subsequent restructuring.

Validation complements this workflow by identifying inconsistencies and providing understandable diagnostics. Downstream applications must be able to reuse the relevant rules within their own validation interface.

Description

Before deleting an element, identify all redefinitions that depend on that element or its descendants. Let the user choose whether to delete the affected redefinition trees or preserve their local configuration.

Review existing consistency validation rules, improve their diagnostic messages, and add missing rules where necessary. Identify the relevant rules so downstream applications can reuse them.

Acceptance criteria

  • Deletion impact analysis runs before source references are removed.
  • A dialog offers a global choice to preserve or delete affected redefinition trees.
  • Preserving the trees retains their local configuration.
  • Validation checks the validity of existing redefinition references and their compatibility with the local context.
  • Diagnostics identify the affected elements and explain the detected inconsistency.
  • Validation reports problems without modifying the model.
  • Relevant validation rules are documented for reuse by downstream applications.
  • Tests cover deletion choices and validation diagnostics.

Sub-issues

Sub-issues

0 of 5 Issues completed
Loading 5 sub-issues

Metadata

Metadata

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions