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

[ETL-328] Encode EnrolledParticipants JSON string field as object #17

Merged
merged 7 commits into from
Feb 24, 2023

Conversation

philerooski
Copy link
Contributor

  • Encode .[“CustomFields”][“Symptoms”] from EnrolledParticipants data type as an object.
  • Small fix to S3 bucket template that caused stacks to fail buckets are not granting access to Synapse.

@philerooski philerooski requested a review from a team as a code owner February 24, 2023 04:22
Copy link
Member

@thomasyu888 thomasyu888 left a 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.

Comment on lines 65 to 66
if "Symptoms" in j["CustomFields"]:
if len(j["CustomFields"]["Symptoms"]) > 0:
Copy link
Member

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:

Copy link
Contributor Author

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.

Copy link
Member

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.

@philerooski
Copy link
Contributor Author

Blocked by #16

@philerooski philerooski merged commit 418ddba into main Feb 24, 2023
@philerooski philerooski deleted the etl-328 branch February 24, 2023 23:50
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