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

1996 patch google symptoms #1999

Merged
merged 37 commits into from
Jul 30, 2024
Merged

1996 patch google symptoms #1999

merged 37 commits into from
Jul 30, 2024

Conversation

aysim319
Copy link
Contributor

@aysim319 aysim319 commented Jul 22, 2024

Description

Added new patching script along with refactoring code/ changing business logic

  • refactored date parsing into seperate module
    • help with readability for the main module
  • changed date logic to only grab the parameter set date range since of grabbing all dates after backfill
    • simplifies business logic and allowing the code to be more easily wrapped to run patches
  • added patching script for backfill with intended issue dates

Associated Issue(s)

@aysim319 aysim319 requested review from dshemetov and nmdefries July 22, 2024 14:22
@aysim319 aysim319 force-pushed the 1996-patch-google-symptoms branch 4 times, most recently from 764f581 to d46933b Compare July 22, 2024 20:04
@nmdefries
Copy link
Contributor

There are a lot of changes here, so I'd recommend doing a comparison of output with this code vs with the old code to make sure they're the same (or vary in expected ways).

@aysim319
Copy link
Contributor Author

aysim319 commented Jul 22, 2024

There are a lot of changes here, so I'd recommend doing a comparison of output with this code vs with the old code to make sure they're the same (or vary in expected ways).

at least for a daily run:
main_receiving.zip
params_used.json
patch_receiving.zip

there seems to be no change in the content of the output
diff -rq main_receiving patch_receiving
Files main_receiving/google_symptoms.log and patch_receiving/google_symptoms.log differ

the log differ due to timestamps

@aysim319 aysim319 force-pushed the 1996-patch-google-symptoms branch from 9dcc0f1 to 689d869 Compare July 22, 2024 23:18
Copy link
Contributor

@nmdefries nmdefries left a comment

Choose a reason for hiding this comment

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

Initial comments and questions. Still looking at logic.

google_symptoms/delphi_google_symptoms/patch.py Outdated Show resolved Hide resolved
google_symptoms/delphi_google_symptoms/patch.py Outdated Show resolved Hide resolved
google_symptoms/delphi_google_symptoms/date_utils.py Outdated Show resolved Hide resolved
google_symptoms/delphi_google_symptoms/date_utils.py Outdated Show resolved Hide resolved
google_symptoms/delphi_google_symptoms/date_utils.py Outdated Show resolved Hide resolved
google_symptoms/delphi_google_symptoms/date_utils.py Outdated Show resolved Hide resolved
google_symptoms/delphi_google_symptoms/date_utils.py Outdated Show resolved Hide resolved
@aysim319 aysim319 force-pushed the 1996-patch-google-symptoms branch from 2059ce6 to 45a2252 Compare July 23, 2024 21:15
Copy link
Contributor

@nmdefries nmdefries left a comment

Choose a reason for hiding this comment

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

Some date padding questions, and a couple processing steps that seem too different between patch and normal production modes.

google_symptoms/delphi_google_symptoms/date_utils.py Outdated Show resolved Hide resolved
google_symptoms/delphi_google_symptoms/date_utils.py Outdated Show resolved Hide resolved
google_symptoms/delphi_google_symptoms/date_utils.py Outdated Show resolved Hide resolved
google_symptoms/delphi_google_symptoms/date_utils.py Outdated Show resolved Hide resolved
google_symptoms/delphi_google_symptoms/date_utils.py Outdated Show resolved Hide resolved
google_symptoms/delphi_google_symptoms/run.py Outdated Show resolved Hide resolved
google_symptoms/delphi_google_symptoms/run.py Outdated Show resolved Hide resolved
google_symptoms/delphi_google_symptoms/run.py Outdated Show resolved Hide resolved
@aysim319 aysim319 force-pushed the 1996-patch-google-symptoms branch 3 times, most recently from 9727acf to f601a1d Compare July 24, 2024 22:45
@aysim319 aysim319 force-pushed the 1996-patch-google-symptoms branch 2 times, most recently from 1938ce7 to f59b925 Compare July 24, 2024 23:23
@aysim319 aysim319 force-pushed the 1996-patch-google-symptoms branch from 1215753 to f4981ea Compare July 30, 2024 16:24
@aysim319 aysim319 force-pushed the 1996-patch-google-symptoms branch from f4981ea to 528a1e3 Compare July 30, 2024 16:30
@aysim319 aysim319 merged commit 4168db5 into main Jul 30, 2024
16 checks passed
@nmdefries
Copy link
Contributor

@aysim319 I think the last set of comments didn't make it into this PR (or maybe I missed the commit?). Could you add those in on a separate PR?

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.

3 participants