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

Chore: hash new mobility pass sample data #371

Merged
merged 2 commits into from
Nov 16, 2023
Merged

Conversation

thekaveman
Copy link
Member

@thekaveman thekaveman commented Nov 16, 2023

Part of testing for cal-itp/benefits#1783, needed now because in dev, test, and prod we apply the hash to incoming data.

This just gets the updated file into our repo for tracking / local testing etc. I already updated the sample data files in dev and test.

I hashed the data locally with hashfields

$ python -m venv .venv

$ source .venv/bin/activate

$ pip install hashfields

$ echo "sub,name,type
71162,Box,courtesy_card
32587,Gonzales,courtesy_card
03552,McCulley,courtesy_card
42687,Álvarez,courtesy_card
65149,Álvarez,courtesy_card
65149,Álvarez,courtesy_card
89768,Muñoz,courtesy_card
41782,Núñez,courtesy_card
48727,de Merida,courtesy_card
38246,la Peña,courtesy_card
78077,De Bell,courtesy_card
71650,De la Cruz,courtesy_card
71650,De la Cruz,courtesy_card
71650,De la Cruz,courtesy_card
03218,D'Andrea,courtesy_card
51828,Grafton-Herbert,courtesy_card
1234,Barbara,mobility_pass
2345,Brown,mobility_pass
3456,Calderón,mobility_pass
4567,Van Buren,mobility_pass
4178,Núñez,mobility_pass
0328,D'Andrea,mobility_pass" | hashfields -a sha512 -s type

echo "data" | hashfields -a sha512 -s type
@thekaveman thekaveman requested a review from a team as a code owner November 16, 2023 21:30
@thekaveman thekaveman self-assigned this Nov 16, 2023
@thekaveman thekaveman added this to the SBMTD Mobility Pass milestone Nov 16, 2023
@thekaveman thekaveman merged commit 5ab742e into dev Nov 16, 2023
7 checks passed
@thekaveman thekaveman deleted the chore/hash-sample branch November 16, 2023 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants