Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: redefine annotation document ID as nillable/pointer type #57

Merged

Conversation

jhoward-lm
Copy link
Contributor

This PR redefines the Annotation schema's document_id as nillable. This allows clearer delineation between document-specific and node-specific annotations, and the intent is to enable future enhancements (utilize edge-schema to truly separate node/document annotations).

Diff against previous branch in the PR series: link

Depends on #56

Note

Only the following files are manually modified; the rest are auto-generated

  • backends/ent/*.go
  • internal/backends/ent/schema/*.go

/cc @ashearin @lmphil

@jhoward-lm jhoward-lm added enhancement New feature or request go Pull requests that update Go code labels Jan 11, 2025
@jhoward-lm jhoward-lm self-assigned this Jan 11, 2025
@jhoward-lm jhoward-lm force-pushed the annotations-nillable-document-id branch from 91ba173 to bcaeb1d Compare January 13, 2025 17:42
@jhoward-lm jhoward-lm force-pushed the annotations-nillable-document-id branch from bcaeb1d to 7d24206 Compare January 15, 2025 21:21
@jhoward-lm jhoward-lm force-pushed the annotations-nillable-document-id branch from 7d24206 to 73c04b1 Compare January 16, 2025 17:22
@jhoward-lm jhoward-lm merged commit 2acfea8 into protobom:main Jan 16, 2025
2 checks passed
@jhoward-lm jhoward-lm deleted the annotations-nillable-document-id branch January 16, 2025 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants