Ref/linkml ingestion#16
Merged
Merged
Conversation
The doc still described registry_version as a field on RegistryClass/ RegistryProperty (excluded from the hash) from before it was moved to ProvenanceEntry. Fixed the build_registry_entities() section and the data model table, and added a note pointing at test_required_does_not_affect_property_identity as the end-to-end proof that usage constraints like required do not leak into identity. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…be set The whole-registry version only gets computed at the very end of a submission, in export_json.py - seed.py/ingest_linkml.py/align.py all run before that, so there is no correct value to stamp on ProvenanceEntry at ingest time yet. Passing the current pre-bump version would record the wrong version (the one being replaced, not the one the entity is part of). The consistent fix would be computing the bump once up front and threading it through every step, but that is a workflow restructuring decision, not a mechanical fix - left unresolved and documented rather than guessed at. schema_submission.yml intentionally still does not pass --registry-version to ingest_linkml.py/align.py. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
export_snapshot()'s class query still asked for n.registry_version, which was removed from RegistryClass when that field moved to ProvenanceEntry - export_json.py and align.py were fixed for the earlier field renames (class_uri, description, etc.) before that move happened, so this one slipped through. LadybugDB raised "Cannot find property registry_version for n" on every real GA run past that point (reported from a live failure on issue #11). Removed the column from the query and the per-class registry_version key from the exported JSON - there's no longer a meaningful class-level value to put there (see docs/ingestion.md's open question on when ProvenanceEntry.registry_version even gets populated). Verified against the exact failing command (seed -> ingest bbqs -> align -> export --bump minor --issue 11 --agent djarecka --schema my_schema1) plus the full pytest suite. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
# Conflicts: # neuro_ghost/export_json.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixing GA ingestion