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

DIG-1247: Check that submitter_specimen_id refers to a valid specimen #26

Merged
merged 7 commits into from
Aug 17, 2023

Conversation

daisieh
Copy link
Member

@daisieh daisieh commented Aug 17, 2023

Test is included in pytest: test_data_ingest > test_donor_6. I also fixed a few default mappings for moh_template.csv and fixed a typo.

@daisieh daisieh requested a review from yavyx August 17, 2023 03:38
@@ -24,7 +24,7 @@ def __str__(self):
def warn(message):
message = ">".join(STACK_LOCATION) + ": " + message
VALIDATION_MESSAGES.append(f"{message}")
raise MoHValidationError(message)
#raise MoHValidationError(message)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be commented out?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I think it would be better to collate the warnings together and report them at the end, rather than error out when you reach any of them.

Copy link
Contributor

@yavyx yavyx 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 except the commented out warning in mohschema.py (might be intentional not sure)

@daisieh daisieh merged commit 52a8232 into main Aug 17, 2023
@daisieh daisieh deleted the daisieh/mapping-fixes branch August 17, 2023 23:54
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.

2 participants