Graphql API - contributionsCollection
and strange datetime related behavior
#121029
Unanswered
aliok
asked this question in
API and Webhooks
Replies: 1 comment 1 reply
-
Hmm, my first thought was that there was a fixed offset in the way PR dates were stored vs queried. But I tried to bisect some times that would return that PR vs not return it and found that crossing day boundaries gave false positives, but there's also a false negative in the time range. Here's my results:
I'll look into this more, it's an interesting puzzle 🕵️ |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Bug
Body
I want to fetch contributions of a user in a datetime range.
Output:
This is good. There's only 1 PR available and its creation time fits in the given datetime range.
Problem 1
Now, change the
to
value to 1 second before:Output:
No PRs found! PR's creation datetime is in the given range though!
Problem 2
Change the
from
to some datetime after the PR creation date:Output:
That PR is still found, even though its creation date is not in the given range.
Beta Was this translation helpful? Give feedback.
All reactions