data-infra
data-infra copied to clipboard
Refactor: Benefits Amplitude events
:construction: WIP :construction:
Description
We recently completed a big refactor of the models in Benefits, see cal-itp/benefits#1666 for more background.
The last piece of this refactor is updating our new and historic analytics events. The following PRs update the logic for generating new events:
- [ ] cal-itp/benefits#2379
- [ ] cal-itp/benefits#2391
- [ ] cal-itp/benefits#2401
And this PR is for the warehouse side, to handle the new fields and adjust historical data already captured in GCS.
We don't want to merge this PR until all of the above PRs are merged and released to our prod
environment.
Closes cal-itp/benefits#2247 Closes cal-itp/benefits#2248 Closes cal-itp/benefits#2249
Type of change
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] Documentation
How has this been tested?
Include commands/logs/screenshots as relevant.
Post-merge follow-ups
Document any actions that must be taken post-merge to deploy or otherwise implement the changes in this PR (for example, running a full refresh of some incremental model in dbt). If these actions will take more than a few hours after the merge or if they will be completed by someone other than the PR author, please create a dedicated follow-up issue and link it here to track resolution.
- [ ] Go through any charts etc. using the deprecated fields, and update to the new fields
- [ ] Go through any charts etc. using old values for e.g.
eligibility_verifier
, and update to the new values - [ ] Delete the deprecated fields