Problem
A data product can belong to multiple domains, but recursive domain deletion currently treats each domain -> dataProduct containment edge as exclusive ownership.
If a data product belongs to Domain A and Domain B, deleting Domain A recursively can delete the data product even though Domain B still points to it. That removes visibility for a data product that still has a valid domain relationship.
Reproduction
- Create Domain A.
- Create Domain B.
- Create a data product with both Domain A and Domain B in
domains.
- Hard-delete Domain A with
recursive=true.
- Fetch or list the data product under Domain B.
Actual Behavior
The data product is deleted or disappears from the data product listing after deleting only one of its domains.
Expected Behavior
Deleting one domain should detach only that domain relationship. The data product should remain fetchable and visible under its remaining domains. It should be cascade-deleted only when all real domain containment relationships are being removed.
Test Coverage Added In PR
A backend integration repro has been added in DataProductResourceIT#test_deleteOneDomainForMultiDomainDataProduct_preservesDataProductUntilLastDomain.
Related to the domain-move deletion issue tracked in #29137 and PR #29138.
Problem
A data product can belong to multiple domains, but recursive domain deletion currently treats each
domain -> dataProductcontainment edge as exclusive ownership.If a data product belongs to Domain A and Domain B, deleting Domain A recursively can delete the data product even though Domain B still points to it. That removes visibility for a data product that still has a valid domain relationship.
Reproduction
domains.recursive=true.Actual Behavior
The data product is deleted or disappears from the data product listing after deleting only one of its domains.
Expected Behavior
Deleting one domain should detach only that domain relationship. The data product should remain fetchable and visible under its remaining domains. It should be cascade-deleted only when all real domain containment relationships are being removed.
Test Coverage Added In PR
A backend integration repro has been added in
DataProductResourceIT#test_deleteOneDomainForMultiDomainDataProduct_preservesDataProductUntilLastDomain.Related to the domain-move deletion issue tracked in #29137 and PR #29138.