-
Notifications
You must be signed in to change notification settings - Fork 69
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
Reporting - Match Payment widget numbers to the totals seen in reports #9162
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
5c3ec48
Payment widget dates to wp store date
bebe14e
Changelog
efd5add
Merge branch 'develop' into fix/server-5934-payment-widget-data-mismatch
haszari 4c6dcae
Remove unwanted use statement
dbfaffd
Add site timezone date offset to links
d4d90de
Update tests.
300bea0
Merge branch 'develop' into fix/server-5934-payment-widget-data-mismatch
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Significance: patch | ||
Type: fix | ||
Comment: Make the numbers on the payment activity widget match the totals on the clicked detailed reports screen. | ||
|
||
|
This file contains 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 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 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 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.
It looks like this code is undoing logic in
Transactions_List
request class:woocommerce-payments/includes/core/server/request/class-list-transactions.php
Lines 80 to 81 in bebe14e
Should we fix it at the source, i.e. delete that code, rather than reversing it here?
I looked at the other similar request classes and didn't see any doing this timezone adjustment. If
Transactions_List
is inconsistent then we should fix that. We just need to find out:Transactions_List
, i.e. convert to site timezone.I started digging in git-blame to find out when this conversion was added. It looks like it was long ago, it was there when these pagination controllers were implemented for previous integration/platform project:
So 🤞🏻 maybe it's just an old oversight/bug?
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 agree that fixing the main cause ( option (a) is the ideal solution, compared to adding another workaround. Since we have less time now, it would be good to go with option b for now , and create a separate issue where we check
Transactions_List
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.
Just noting that we don't have to ship an intermediate patch (aka "b"). Yes there is urgency to wrap up this project, but there is no hard deadline. If we are adding follow up issues, then that undermines this as a way to wrap up the project.
That said I'm not going to stand in the way of a temporary/short term patch if we're confident it's safe. Logging an issue to investigate fix "a" properly is a bottom line for me … but I am concerned it will languish given other pressures.