Skip to content

feat(autopatching): delete removed records #1038

@MR2011

Description

@MR2011

Task Description

The current autopatching/closing process removes ComponentInstances and their associated IssueMatches that are no longer present. However, additional related records also need to be deleted to maintain data integrity:

  • If a ComponentVersion associated with a deleted ComponentInstance no longer has any connections to other ComponentInstances, it should be removed.
  • Before deleting the ComponentVersion, ensure that all entries in ComponentVersionIssue related to this ComponentVersion are deleted.
  • Finally, check if the Component linked to the deleted ComponentVersion has any remaining associations with other ComponentVersions. If not, the Component should also be deleted.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions