Skip to content

Change embed_linked_nodes from bool to LinkedNodeEmbedding enum#92

Merged
lzehl merged 1 commit intoopenMetadataInitiative:pipelinefrom
apdavison:linked-node-embedding
Apr 2, 2026
Merged

Change embed_linked_nodes from bool to LinkedNodeEmbedding enum#92
lzehl merged 1 commit intoopenMetadataInitiative:pipelinefrom
apdavison:linked-node-embedding

Conversation

@apdavison
Copy link
Copy Markdown
Member

@apdavison apdavison commented Apr 2, 2026

  • Add LinkedNodeEmbedding enum with three values: ALWAYS, NEVER, and IF_NECESSARY
  • IF_NECESSARY embeds linked nodes inline only when they lack an @id, otherwise uses a reference — useful for mixed scenarios where some nodes don't yet have identifiers
  • Boolean True/False values are still accepted for backwards compatibility
  • Update all internal call sites to use the enum
  • Add unit test covering all three enum values

Add LinkedNodeEmbedding enum with ALWAYS, NEVER, and IF_NECESSARY
values. IF_NECESSARY embeds linked nodes only when they lack an @id,
otherwise uses a reference. Boolean True/False still accepted for
backwards compatibility. Update all call sites and add unit test
covering all three enum values.
@apdavison apdavison requested a review from lzehl April 2, 2026 12:18
@lzehl lzehl merged commit 2640bf4 into openMetadataInitiative:pipeline Apr 2, 2026
3 checks 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