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

Change order number to Order relation on Refund #306

Merged
merged 4 commits into from
Jun 9, 2021

Conversation

Zales0123
Copy link
Member

Partially fixes #193

Time has shown, such a low coupling was not the best approach from the technical and DX point of view. We still have time to change it, before the stable release, so let's do it :) If in the future we decide it's reasonable to lose this coupling (and we can justify it and implement it properly), it would be easier to be done without major BC breaks 🖖 🚀

@Zales0123 Zales0123 added Enhancement Minor issues and PRs improving the current solutions (optimizations, typo fixes, etc.). DX Issues and PRs aimed at improving Developer eXperience. labels Jun 8, 2021
@Zales0123 Zales0123 requested a review from a team as a code owner June 8, 2021 09:21
@GSadee GSadee merged commit 7c0fb07 into Sylius:master Jun 9, 2021
@GSadee
Copy link
Member

GSadee commented Jun 9, 2021

Thank you, Mateusz! 🥇

@Zales0123 Zales0123 deleted the relate-refund-with-order branch June 9, 2021 07:06
Zales0123 added a commit that referenced this pull request Jun 10, 2021
…efundPayment (GSadee)

This PR was merged into the 1.0-dev branch.

Discussion
----------

Partially fixes #193

Similar to #306 

Commits
-------

91173ec [RefundPayment] Change order number to Order relation on RefundPayment
eee327c [RefundPayment] Add migration for changing the order relation
d278a5d [RefundPayment] Add note in UPGRADE file about changing the order relation
545d719 [Behat] Fix FailedRefundPaymentFactory after changing the order relation
8a526ab [RefundPayment] Fixes after static analysis
f464e20 [RefundPayment] Adjust DefaultRelatedPaymentIdProvider after changing the order relation
371a21c [RefundPayment] Adjust routing and twig after changing the order relation
4b25791 [RefundPayment] Introduce custom repository
GSadee added a commit to Sylius/InvoicingPlugin that referenced this pull request Jun 14, 2021
This PR was merged into the 1.0-dev branch.

Discussion
----------

Similar to Sylius/RefundPlugin#306 and Sylius/RefundPlugin#307.

Should be easier to operate on the Invoice with a proper relation rather than just an order number

Commits
-------

081b080 Add Order relation on Invoice (and remove order number field)
e480edc Use order instead of order number in invoice repository
0ab7fed Final fixes
ce949d3 Mention changes in the UPGRADE file
8411c18 Remove unneeded point in UPGRADE file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DX Issues and PRs aimed at improving Developer eXperience. Enhancement Minor issues and PRs improving the current solutions (optimizations, typo fixes, etc.).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RFC] It's not possible to distinguish between refund requests; Incorrect DB design?
3 participants