-
Notifications
You must be signed in to change notification settings - Fork 91
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
api: Convert timezones before txn query #1543
api: Convert timezones before txn query #1543
Conversation
also add a test in handler to validate this works. |
Codecov Report
@@ Coverage Diff @@
## develop #1543 +/- ##
===========================================
+ Coverage 68.20% 68.34% +0.14%
===========================================
Files 38 38
Lines 7438 7440 +2
===========================================
+ Hits 5073 5085 +12
+ Misses 1934 1926 -8
+ Partials 431 429 -2
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
I echo this sentiment. We can see that previously the coverage was lacking as all the Before/AfterTimes were UTC. So we ought to be able to add a test case that failed previously and is now fixed thanks to this PR. |
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.
LGTM. Optionally, it would be great to change or add one of the cases in handlers_test.go
to be non-UTC
@shiqizng @tzaffi So the handlers output would be unchanged, but when you get the resulting sql query for postgres it would go from |
I wonder if the fixtures test is a good place to add this. I'm not proposing to add it to this PR because the |
the existing tests are missing cases for |
|
||
round := uint64(1) | ||
/////////// | ||
// Given // A block at with 8 transactions at ts 1671036853. |
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.
typo.
Summary
Fixes #458
Test Plan
Added unit tests.