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

fix(validation): allow any valid nmdc:Database to [/v1]/workflows/activities #497

Merged
merged 1 commit into from
Mar 15, 2024

Conversation

dwinston
Copy link
Collaborator

Documents other than activities may be generated and submittable at the same time.

closes #462

…ivities

Documents other than activities may be generated and submittable at the same time.

closes #462
@@ -78,10 +80,6 @@ async def post_activity(
"""
_ = site # must be authenticated
try:
# verify activities in activity_set are nmdc-schema compliant
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still want to perform this check for certain kinds of activtities rather than dropping entirely

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From @aclum's note:

The typical submission is a mix of data_object_set records and workflow subclass records

@dwinston Could we update line 83 to include data_object_set records?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If another kind of record down the road other than data objects are desirable to bundle with an activities submission, I don’t see a benefit to gating that here. So, I’d rather make its acceptable input equivalent to that of /metadata/json:submit.

@@ -46,10 +46,6 @@ async def post_activity(
"""
_ = site # must be authenticated
try:
# verify activities in activity_set are nmdc-schema compliant
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still want to perform this check for certain kinds of activtities rather than dropping entirely

@shreddd
Copy link
Collaborator

shreddd commented Mar 15, 2024

PS. No need to block on my comments - mostly just checking

@dwinston dwinston merged commit 2af6589 into main Mar 15, 2024
2 checks passed
@PeopleMakeCulture PeopleMakeCulture deleted the 462-allow-data-objects branch March 15, 2024 18:58
dwinston added a commit that referenced this pull request Apr 19, 2024
…ivities (#497)

Documents other than activities may be generated and submittable at the same time.

closes #462
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.

Inconsistent schema validation between /v1/workflows/activities and /metadata/json:validate API endpoints
4 participants