Skip to content

Commit

Permalink
Merge pull request CenterForOpenScience#10533 from cslzchen/feature/c…
Browse files Browse the repository at this point in the history
…edar-bug-fix

[Cedar] Bug-fix: new templates should be added as inactive
  • Loading branch information
cslzchen authored Feb 5, 2024
2 parents 495fb00 + 1b3edfb commit 589ac54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion osf/management/commands/fetch_cedar_metadata_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,12 @@ def ingest_cedar_metadata_templates():
)
updated.add(cedar_id)
else:
# Initial version should be active
# Initial version should also be inactive
CedarMetadataTemplate.objects.create(
schema_name=schema_name,
template=template,
cedar_id=cedar_id,
active=False,
template_version=1
)
newly_added.add(cedar_id)
Expand Down

0 comments on commit 589ac54

Please sign in to comment.