-
-
Notifications
You must be signed in to change notification settings - Fork 129
fix(graphile-build-pg): add more numeric casting exceptions #661
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
fix(graphile-build-pg): add more numeric casting exceptions #661
Conversation
|
Good catch! We mostly use integration tests, so please add a few columns to graphile-engine/packages/postgraphile-core/__tests__/kitchen-sink-schema.sql Lines 253 to 289 in 16d7b30
Data to here:
And adjust the operations here: And here: Then run And finally validate that these snapshot additions are what you'd expect. |
86525d2 to
e8513ec
Compare
|
@benjie Thanks for the pointers. Also added the reg types to pgtypes plugin so they're not shown as |
a2d7345 to
c3bd244
Compare
|
I can't seem to easily support regrole and regnamespace without breaking support for pg 9.4 |
Is that just for the tests, or functionality? If just tests, skip that for now (or add them to a |
It's just for the tests, seeing that adding the oid type to the pgTypes plugin doesn't cause any breaking behaviour. |
…raphql types with proper description and oid mapping
69145c3 to
cd31450
Compare
cd31450 to
ef3050e
Compare
|
@benjie Looks like I managed to get an all green on the tests. Let me know if something is not quite up to snuff, then I can always rework. |
benjie
left a comment
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.
Looking good 🙌
|
Please do not rebase or edit history from this point forward. I will squash and merge when the time comes. |
|
@wesselvdv @-me when you're ready for a re-review. Though you've reset |
…work_id_seq reset
|
@benjie I added the proper reset for |
benjie
left a comment
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.
Almost there 🙌
packages/postgraphile-core/__tests__/fixtures/queries/pg10.types.graphql
Outdated
Show resolved
Hide resolved
… & add missing reg* fields in mutation
benjie
left a comment
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.
Fantastic 🙌 Thanks!
resolves #660
I couldn't find any test(s) related to this portion of code?