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

Set source_client to field_notes when generating new submission #134

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

pkalita-lbl
Copy link
Collaborator

Fixes #128

This is a follow-on to microbiomedata/nmdc-server#1300.

When a new submission is generated by the Field Notes app (src/data.ts), set the source_client field to field_notes.

I made one of the mock submissions used in tests (src/mocks/fixtures.ts) have a source_client of submission_portal just to ensure that we don't do anything with the source_client field that implicitly assumes a value of field_notes coming from the backend.

Copy link
Collaborator

@eecavanna eecavanna left a comment

Choose a reason for hiding this comment

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

Looks good to me!

FYI @yxu-lanl, I found this straightforward to review after having reviewed the corresponding changes in nmdc-server. Basically, when either the submission portal or the mobile app creates a submission, it will include this information saying what type of client initialized the submission.

@pkalita-lbl pkalita-lbl merged commit 248acae into main Jul 22, 2024
1 check passed
@pkalita-lbl pkalita-lbl deleted the issue-128-set-submission-source-client branch July 22, 2024 15:47
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.

Add "from Field Notes" flag to SubmissionMetadata records
2 participants