All problems

Unlinking a Shared Label From One Document Hides It From Others

Level 2 · node · Data · Shared entity deleted during many-to-many unlink

Scenario

In a fictional internal knowledge base, several documents can share the same label. Label definitions are global, while document-to-label links are stored separately. Unlinking a label from one document should affect only that document. The current implementation makes the label disappear from other documents as well.

Requirements

When unlinking a label, remove only the specified document's association. Preserve the label definition and associations on other documents. Unlinking a label that is not associated must not affect other data.

Acceptance criteria

  • The unlinked label disappears from the target document.
  • Other documents using that label remain unchanged.
  • The global label definition remains after unlinking.
  • Unlinking a non-associated label preserves other labels and links.