v1.0.0-alpha41
Pre-releaseChangelog
UPDATE (26 Mar 2019 12:20 PM GMT): We have identified an issue with the docker image for alpha41 where a shared library is missing. Please DONT upgrade until we push the fixed image.
UPDATE (26 Mar 2019 01:00 PM GMT): The docker bug has been fixed and a new docker image is pushed. You can now upgrade to this release.
UPDATE (28 Mar 2019 03:15 PM GMT): (#1809) has been moved from bug fixes to breaking changes as it could break queries with variables for which right types are not used.
🚨 🚨 Breaking changes 🚨 🚨
-
To fix a bug that caused event trigger
idto change on metadata replace operations, theidcolumn is dropped from the metadata entirely. This affects the event payloads as it will be missing in thetriggerkey as well. You can find the complete payload reference in docs. (fix #1840) (#1857)Payload before
alpha41:... "trigger": { "id": "e9723071-d6a8-47c3-981b-811e891ac6dd", "name": "email_trigger" } ...
Payload after
alpha41:... "trigger": { "name": "email_trigger" } ...
-
Fixes a long standing bug which didn't enforce type validations for input variables since Postgres allows it. With this fix, if a
Stringvariable is used for anIntinput type, validation error will be thrown. This could break your existing queries if you are not using the right types for variables. (e.g. using$value: Floatwhile the column is ofNumerictype) (close #21) (#1809) -
This is not a breaking change on the server, but a change in behaviour for Console. It now uses inflection to suggest relationship names. For example, if
author_idcolumn inarticletable has a foreign key constraint toidcolumn ofauthortable, the object relationship suggested onarticletable will beauthorinstead ofauthorByAuthorId, and the array relationship onauthortable willarticlesinstead ofarticlesByAuthorId. If you depend on the names generated by console elsewhere, please pay extra attention. This change applies to all releases, not justalpha41since console follows a rolling update strategy. (close #1665) (#1801)
🎁 🎁 New features 🎁 🎁
- Server now supports
ST_DWithinandST_Intersectsspatial predicates for PostGISGEOGRAPHYcolumns directly in GraphQL queries and permissions builder. (close #1674) (#1735) JSON/JSONBcolumns now have apathargument which accepts a JSON Path and the field value returns the value for the path. You can find an example in the docs. (close #1598) (#1661)- CLI now supports creating migration files by reading an SQL file and getting metadata from server. Command details can be found in the docs. (close #1699) (#1761)
metadata applycommand on CLI now accepts a JSON or YAML file. (close #1698) (#1746)- Console now includes OneGraph Explorer. (close #1616) (#1680)
- New favicons for Console and Docs. (close #1485) (#1760)
🐛 🐛 Bug fixes 🐛 🐛
- Over websocket transport, in some cases of query validation errors,
connection_errorwas thrown (which is for protocol errors) instead oferror. This is now fixed to sendGQL_ERRORinstead ofGQL_CONNECTION_ERROR. (fix #1790) (#1792) - Fixes a bug that was introduced in
alpha40which mandated a table/view to have a primary key or a unique constraint if the delete mutation had to return the data in response. This requirement is not there anymore and delete mutations returns the correct data. (fix #1794) (fix #1763) (#1827) - Fixes a bug that skipped validations for relationship definitions on startup (#1849)
- Fixes a bug on console that caused issues with the Track this checkbox in SQL tab. (close #1671, #1627) (#1717)
Other changes
- server: bump stackage to lts 13 and refer to hasura's pg-client-hs (#1747)
- server: use bytestring builder to represent encoded json (makes things faster) (#1800)
- server: add for update skip locked to fetch query (#1798)
- server: specify needed node version, clarify setup instructions (close #1754) (#1815)
- server: reduce server build time on ci (#1836)
- server: Revert "reduce server build time on ci (#1836)"
- server: refactor graphql query execution logic (#1855)
- server: bump haskell-docker-packager version (#1870)
- server: add user information to transactions in ws protocol (fix #1867) (#1869)
- console: change try it out link for remote schema in console #1788
- console: show migration name section only if This is migration is checked (close #1732) (#1762)
- console: reload onegraph schema on header change (#1810)
- console: remove graphiql suggestions on page navigation (#1803)
- console: fix relationship editor bug in console (#1814)
- console: handle capital letters and quotes in Raw SQL Track this (#1811)