-
Notifications
You must be signed in to change notification settings - Fork 996
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
feat(graph, graphql, store): Support new Timestamp
scalar
#4758
Conversation
I am very interested in getting this merged! Would be great to discuss how to get this PR ready - more than happy to help. I fixed some of this up and put it onto the branch I am also not sure how best to expose timestamps to AS; the way I did it right now is as seconds since the epoch, but that ties AS to second granularity. That might be a little too coarse in the future. We could do microseconds, but we'd also need some support to deal with timestamps in As I said: let's discuss. |
Thinking about this some more, we should probably expose it in microseconds - an |
Yeah, this makes sense. Thank you @lutter for the help. I'm back on this today, focused on graph-tooling PR. |
0c452f2
to
1e3b06f
Compare
963b5bc
to
f0eb537
Compare
6ce19e4
to
2dcc020
Compare
ed751dc
to
22ed8f5
Compare
f8b471a
to
636d891
Compare
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.
Awesome! This looks good; the two main things I am not sure about are:
- passing timestamps between mappings and graph-node as milliseconds. Should we use microseconds to make sure we never have to change how this works?
- converting inputs to internal timestamp types earlier rather than passing strings around (
r::Value::Timestamp
)
6947c8b
to
11fdb13
Compare
@lutter I've applied all suggestions. Tests seems to pass :) It's also using microseconds now. Thank you for the feedback! |
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.
Yay! I am letting this do one more CI run and will then merge it
TODO
Timestamp
scalar graph-tooling#1522)i64
instead ofstring
graph-tooling