-
Notifications
You must be signed in to change notification settings - Fork 9
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
Refactor: PaymentProcessor
to TransitProcessor
#2262
Conversation
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
PaymentProcessor
to TransitProcessor
Preview url: https://benefits-2262--cal-itp-previews.netlify.app |
d595159
to
66bda46
Compare
@angela-tran I don't want to step on your toes with #2256 since we both have migrations... I think this PR is ready to open for review, but I can rebase it onto yours and deal with the migrations conflicts here if you'd rather. |
66bda46
to
bff74dc
Compare
Thanks for checking! I'm still working on my PR, so I'm ok if your PR goes in first and I rebase onto In general, I think it's up to each PR to make sure it's working with the latest migrations in |
Things to check locally
@thekaveman Did you mean
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes look good 👍
Noticed a small typo
benefits/core/migrations/0016_refactor_paymentprocessor_transitprocessor.py
Outdated
Show resolved
Hide resolved
fb35314
to
8f0f2a7
Compare
Looks good to me too!
|
migrate existing data from TransitProcessor to Agency, then remove fields from TransitProcessor add Admin help_text to all TransitProcessor related fields
Co-authored-by: Angela Tran <[email protected]>
8f0f2a7
to
3941634
Compare
Closes #2235
The PR contains only the basic renames/refactors and no other changes to logic, tests, etc.
local_fixtures.json
is also updated, you should be able to checkout and runbin/reset_db.sh
and/orbin/init.sh
to recreate the local database with these changes.Things to check locally
main
branchlocal_fixtures.json
(or whatever fixture you are using) to add values to existingPaymentProcessor
fields updated by this PR (client_id
,client_secret_name
,audience
)bin/reset_db.sh
(now your local DB mirrors the structure ofdev
)bin/init.sh
(running this PR's migration on top of existing DB structure)TransitAgency
, confirm data is migratedCan X payment processor
permissions are removed from the databaseCan X transit processor
permissions are added to the databaseCan [view|change] transit processor
permissions