-
-
Notifications
You must be signed in to change notification settings - Fork 15
Refactor: Unify transaction flow #1258
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
base: main
Are you sure you want to change the base?
Conversation
We previously duplicated transaction processing for Cash payments and "normal" transaction flow. This commit unifies them thereby simplying the overall flow.
|
Hey @beesaferoot From what I understand, currently, when using We need to add a migration for this right? Note that the seeded data doesn't have this problem. |
Didn't realize this side effect until you mentioned it, but yes, it is intended. I don't think we need a migration, the token is rightly tied to the right appliance (device) having the same result as previous cash processing logic. |
I understand it's not strictly required. But I think I'd still like to have it. Else we will be in the situation where some (older) tokns don't have |
With our use of Token with relation to transactions, I can't foresee issues entirely based on missing However, I could look into this to be on the safe side. To populate the missing device ids don't we need to still resort to the action above? |
|
Added a migration to backfill empty device ids on the Token table. |
We previously duplicated transaction processing for Cash payments and "normal" transaction flow. This PR unifies them, thereby simplifying the overall flow.
Closes #1257
Brief summary of the change made
Are there any other side effects of this change that we should be aware of?
Describe how you tested your changes?
Pull Request checklist
Please confirm you have completed any of the necessary steps below.