Closed mjumbewu closed 3 years ago
We now have a dashboard to track data validation issues. Most of the charts on this dashboard should be empty, with the exception of the Route Z question.
https://metabase.k8s.calitp.jarv.us/dashboard/28-payments-data-validation
Is your feature request related to a problem? Please describe. Littlepay data has several apparent integrity issues.
Describe the solution you'd like We can have a dashboard where we can lay out the things we assume to be invariants in the Littlepay data. If there are things that violate those invariants, we know we have a problem. Likewise, if there are no violations, then we can assume that our invariants and the data are in line with each other.
Describe alternatives you've considered We already have a notebook to run tests against Littlepay data, but a dashboard is an easier way to get a quick view on our assumptions.
Additional context Assumptions/metrics:
device_transactions.littlepay_device_transaction
is a unique ID. How manylittlepay_device_transaction
values are not unique?micropayments.micropayment_id
field is a unique ID. How manymicropayment_id
values are not unique?route_id = 'Route Z'
. How many device transactions only haveRoute Z
data?customer_id
values?device_transactions
associated with a singlemicropayments
record implies a tap on/off situation, and that these trips should have device transactions labeled astap on
andtap off
, How many apparently variable-length trips have device transactions labeled assingle
?Filters: