Skip to content

Commit 34fe282

Browse files
feat(db): Add annotation_ingest_id as nullable column to annotation table (#606)
Add annotation_ingest_id as nullable column to annotation table
1 parent 156ba47 commit 34fe282

File tree

4 files changed

+34
-0
lines changed

4 files changed

+34
-0
lines changed

apiv2/database/migrations/versions/20260302_133429_autogenerated.py

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apiv2/database/models/annotation.py

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apiv2/db_import/importers/annotation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class AnnotationItem(ItemDBImporter):
1515
"release_date": ["dates", "release_date"],
1616
"last_modified_date": ["dates", "last_modified_date"],
1717
"annotation_publication": ["annotation_publications"],
18+
"annotation_ingest_id": ["annotation_ingest_id"],
1819
"annotation_method": ["annotation_method"],
1920
"ground_truth_status": ["ground_truth_status"],
2021
"object_name": ["annotation_object", "name"],

apiv2/schema/schema.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,6 +1008,13 @@ classes:
10081008
- annotation_method
10091009
range: string
10101010
required: true
1011+
annotation_ingest_id:
1012+
name: annotation_ingest_id
1013+
description: An identifier for the annotation to be used during ingestion.
1014+
from_schema: cdp-dataset-config
1015+
range: string
1016+
required: false
1017+
pattern: ^[a-z0-9]+(-[a-z0-9]+)*-[0-9]+$
10111018
ground_truth_status:
10121019
name: ground_truth_status
10131020
description:

0 commit comments

Comments
 (0)