Skip to content

Feature/x metastore refers to#2

Open
vojtabiberle wants to merge 3 commits intofeature/rfc-metastore-implementationfrom
feature/x-metastore-refersTo
Open

Feature/x metastore refers to#2
vojtabiberle wants to merge 3 commits intofeature/rfc-metastore-implementationfrom
feature/x-metastore-refersTo

Conversation

@vojtabiberle
Copy link
Copy Markdown
Owner

No description provided.

Developer and others added 3 commits January 15, 2026 15:07
Add schema keyword support for declaring relationships between MetaObjects:
- Parse x-metastore.refersTo and onDelete from JSON schemas
- Create meta_refs table for reverse index tracking
- Validate referenced UUIDs exist on create/update (422 on failure)
- Enforce onDelete semantics: restrict (409) or cascade deletions
- Add optional relationship enrichment via ?include=relationships

New files:
- Schema: RefersToParser, RefersToDefinition, OnDeleteBehavior
- Entity: MetaRef with MetaRefRepository
- Services: ReferenceValidator, ReferenceIndexService, DeletePlannerService, RelationshipEnrichmentService
- Exceptions: InvalidRefersToException, ReferenceValidationException, DeleteRestrictedException

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add comprehensive unit tests for DeletePlannerService,
ReferenceIndexService, and RelationshipEnrichmentService.

- Create ReferenceIndexServiceInterface to enable mocking
- Fix bug in ReferenceIndexService: handle arrays at leaf positions
- Add 41 new tests covering delete cascades, reference indexing,
  and relationship enrichment scenarios

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.

1 participant