-
Notifications
You must be signed in to change notification settings - Fork 117
[Order Details] Allow failed orders to show receipt if eligible #15558
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
Merged
iamgabrielma
merged 28 commits into
trunk
from
issue/woomob-104-allow-failed-orders-to-open-receipt
May 14, 2025
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
f6c670d
Update eligibility based on order status
iamgabrielma c0b5a70
Handle receipt eligibility when failed order
iamgabrielma 7711057
move funcs to private extension
iamgabrielma c26e0a8
typo: remove internal comment
iamgabrielma e8a3690
clean up dev version
iamgabrielma f353f87
Rename and lint
iamgabrielma 1459a25
Merge branch 'trunk' into issue/woomob-104-allow-failed-orders-to-ope…
iamgabrielma c3dc2dd
dev and beta version checks no longer needed
iamgabrielma 701421c
Move gateway check to use case
iamgabrielma 26ca6d3
refactor isEligibleForFailedPaymentEmailReceipts to closure-based
iamgabrielma c055fe5
update test
iamgabrielma 0aa4a1c
Merge branch 'trunk' into issue/woomob-104-allow-failed-orders-to-ope…
iamgabrielma 66b212a
restore original check for payment eligibility
iamgabrielma 8f20e0f
lint
iamgabrielma c231384
encapsulate meetsOrderStatusRequirement in receipt eligibility use case
iamgabrielma af4010d
update protocol
iamgabrielma 843a4fa
Merge branch 'trunk' into issue/woomob-104-allow-failed-orders-to-ope…
iamgabrielma bff46d4
check for order status requirements on eligibility
iamgabrielma a1bbfac
restore previous implementation
iamgabrielma b7e4771
restore enum name. unnecessary change
iamgabrielma 56ad1d0
clean up
iamgabrielma bb54851
release notes
iamgabrielma d2fda6c
remove unused function
iamgabrielma 9eb0773
rename for consistency
iamgabrielma fcbbcb0
structure tests
iamgabrielma a04d1d7
more explicit on test name
iamgabrielma 2b185a6
remove unnecessary check
iamgabrielma 3862c54
Merge branch 'trunk' into issue/woomob-104-allow-failed-orders-to-ope…
iamgabrielma File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
❓ What are the reasons for removing the check that supports dev and beta versions?
Saw this mentioned in the PR description:
When testing with Woo Beta Tester plugin or for core development, I thought it's common to have the WC version as the dev/beta versions.
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.
Yes, this was very specific to this project: The internals of
VersionHelpers
used in the same function already checks for beta and dev version that might come with Woo Beta Tester, so it will pass the check as expected. This additional check was put in place just for testing, due to how the changes were provided by core folks with specific development branches to be installed in the test site, which sometimes were behind the latest versions.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.
I'm actually having a similar plugin version check in a separate PR and removing this check blocks
-beta/-dev/-alpha/-rc
. From the test cases for the VersionHelpers, this blocking behavior also seems intentional:woocommerce-ios/WooCommerce/WooCommerceTests/Extensions/VersionHelpersTests.swift
Lines 34 to 40 in d6d6c56
If we want to support alpha/beta/dev/rc builds of the same version, I think we do need to keep this check.
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.
Interesting, I see what you mean: Anything tagged as -dev or other for the same version we're checking, is always below the non-tagged version: