-
-
Notifications
You must be signed in to change notification settings - Fork 273
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
Update GraphQL to v14 #2019
Update GraphQL to v14 #2019
Conversation
Here's why the Dates will always be coerced to their Unix time representation: https://github.com/graphql/graphql-js/blob/d4140766e0d2add0f82b22fe6e6354de4afc0f3c/src/type/scalars.js#L125. I'll be using a custom GraphQL scalar type to represent the datetimes. |
@eloyekunle Looks like a great solution! Do you understand why the |
It's related to expenses. I'm looking into it now. |
@znarf It's fixed now. |
@eloyekunle seems like a warning of a breaking change in the API. What is change in the GraphQL package that is triggering that? Can that be fixed in the API instead of updating the test? |
I pushed a matching branch on frontend to test if the update is breaking anything in e2e tests. https://circleci.com/gh/opencollective/opencollective-frontend/tree/feat%2Fupdate-graphql |
The breaking change was made here: graphql/graphql-js#1382. It means cases where the frontend sends Int values as String need to be changed. |
523c670
to
354a14a
Compare
@eloyekunle Can the breaking change fixed in the API instead of updating the test? |
@znarf Trying to fix it means creating a new scalar type for I've recognized two instances affected in the frontend and opened a PR for it: opencollective/opencollective-frontend#1846. |
@eloyekunle Thank you for your answer. Hope our coverage is great! 🤞 |
The main things to look out for are cases where the Frontend is currently sending I'm sure there'll only be a few (if any) such cases left. |
@eloyekunle What's the behavior if we don't? It's triggering a GraphQL error in the new version? |
Yes, it triggers an error. Something like:
|
Ping @znarf, What's left to merge this? |
@eloyekunle It's good. I usually prefer to merge and deploy changes like that early in the week. |
Related: opencollective/opencollective-frontend#1846
Ref: opencollective/opencollective#1658