Skip to content

TEDEFO-5157: allow a node to be shared by multiple business entities - #93

Merged
rouschr merged 1 commit into
developfrom
bugfix/TEDEFO-5157-business-entity-node-many-to-one
Sep 1, 2026
Merged

rouschr merged 1 commit into
developfrom
bugfix/TEDEFO-5157-business-entity-node-many-to-one

Conversation

@rouschr

@rouschr rouschr commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

The rule "Relationships between business entities and nodes are consistent" assumed a 1-to-1 relationship: the node referenced by a business entity's repeatsWithNodeId had to carry a matching businessEntityId back-reference. Since TEDEMD-547 a node (e.g. ND-Organization) can be shared by several business entities, which produced false positives.

Drop the businessEntityId back-reference constraint so the rule only verifies that the referenced node exists.

  • Add tedefo-5157 feature with valid (two entities share a node) and invalid (entity references a non-existent node) test data.
  • Update tedefo-3224 invalid data: its node error relied on a businessEntityId mismatch on an existing node, which is no longer a violation; retarget it to a non-existent node so the rule is still exercised.

The rule "Relationships between business entities and nodes are consistent"
assumed a 1-to-1 relationship: the node referenced by a business entity's
repeatsWithNodeId had to carry a matching businessEntityId back-reference.
Since TEDEMD-547 a node (e.g. ND-Organization) can be shared by several
business entities, which produced false positives.

Drop the businessEntityId back-reference constraint so the rule only verifies
that the referenced node exists.

- Add tedefo-5157 feature with valid (two entities share a node) and invalid
  (entity references a non-existent node) test data.
- Update tedefo-3224 invalid data: its node error relied on a businessEntityId
  mismatch on an existing node, which is no longer a violation; retarget it to
  a non-existent node so the rule is still exercised.
@rouschr
rouschr requested review from rousso and yfanti September 1, 2026 13:34
@rouschr rouschr self-assigned this Sep 1, 2026
@rouschr
rouschr merged commit c053424 into develop Sep 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants