Skip to content

[LG-8794] Add Phone Submit step to daily_dropoffs_report#7733

Merged
orenyk merged 1 commit intomainfrom
oyk-add-phone-submit-step
Jan 31, 2023
Merged

[LG-8794] Add Phone Submit step to daily_dropoffs_report#7733
orenyk merged 1 commit intomainfrom
oyk-add-phone-submit-step

Conversation

@orenyk
Copy link
Contributor

@orenyk orenyk commented Jan 31, 2023

Resolves LG-8794

changelog: Internal, Reporting, Add phone submit step to dropoff report

🎫 Ticket

https://cm-jira.usa.gov/browse/LG-8794

Resolves LG-8794

changelog: Internal, Reporting, Add phone submit step to dropoff report
@orenyk
Copy link
Contributor Author

orenyk commented Jan 31, 2023

@zachmargolis quick question - how painful would it be to go backfill the old reports with this count so we don't have a weird data discontinuity? Have we done that before for data.login.gov?

@zachmargolis
Copy link
Contributor

@zachmargolis quick question - how painful would it be to go backfill the old reports with this count so we don't have a weird data discontinuity? Have we done that before for data.login.gov?

Backfilling reports is not that painful because we can queue them up in the background, with a change like this we should definitely backfill

@orenyk
Copy link
Contributor Author

orenyk commented Jan 31, 2023

@zachmargolis quick question - how painful would it be to go backfill the old reports with this count so we don't have a weird data discontinuity? Have we done that before for data.login.gov?

Backfilling reports is not that painful because we can queue them up in the background, with a change like this we should definitely backfill

oh that totally makes sense. Would you just do that as a one-off in the console or is it worth adding a quick Rake task to just re-populate the reports?

@zachmargolis
Copy link
Contributor

oh that totally makes sense. Would you just do that as a one-off in the console or is it worth adding a quick Rake task to just re-populate the reports?

Via the console. Something like this (but going back to the first report created in S3, whenever that was)

# in a write console so we can write to the jobs table
(90.days.ago.to_date..Date.yesterday).each { |date| Reports::DailyDropoffsReport.perform_late(date) }

@orenyk
Copy link
Contributor Author

orenyk commented Jan 31, 2023

Makes sense, thanks! Let me know what you think of the PR - I think this should be good to merge!

Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

The PR looks good but I want to make sure that the changes make sense to Team Ada so let's hold off merging just quite yet?

@benjaminchait
Copy link

@zachmargolis - @orenyk and i just connected, i understand more about what's happening here and it seems reasonable to me!

Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM

@orenyk orenyk merged commit 7c86e54 into main Jan 31, 2023
@orenyk orenyk deleted the oyk-add-phone-submit-step branch January 31, 2023 18:33
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