-
Notifications
You must be signed in to change notification settings - Fork 1
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
[ETL-328] Encode EnrolledParticipants JSON string field as object #17
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏼 LGTM! Just a minor comment.
src/glue/jobs/s3_to_json.py
Outdated
if "Symptoms" in j["CustomFields"]: | ||
if len(j["CustomFields"]["Symptoms"]) > 0: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: This can be rolled up into one if statement:
if "Symptoms" in j["CustomFields"] and len(j["CustomFields"]["Symptoms"]) > 0:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It could be, but then I would need to add another if "Symptoms" in j["CustomFields"]
statement on line 80 and that would be redundant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, that makes sense - I should've been more thorough.
Blocked by #16 |
.[“CustomFields”][“Symptoms”]
from EnrolledParticipants data type as an object.