这是indexloc提供的服务,不要输入任何密码
Skip to content

v1.0.0-alpha41

Pre-release
Pre-release

Choose a tag to compare

@hasura-bot hasura-bot released this 26 Mar 06:50
· 9031 commits to master since this release

Changelog

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 id to change on metadata replace operations, the id column is dropped from the metadata entirely. This affects the event payloads as it will be missing in the trigger key 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 String variable is used for an Int input 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: Float while the column is of Numeric type) (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_id column in article table has a foreign key constraint to id column of author table, the object relationship suggested on article table will be author instead of authorByAuthorId, and the array relationship on author table will articles instead of articlesByAuthorId. If you depend on the names generated by console elsewhere, please pay extra attention. This change applies to all releases, not just alpha41 since console follows a rolling update strategy. (close #1665) (#1801)

🎁 🎁 New features 🎁 🎁

  • Server now supports ST_DWithin and ST_Intersects spatial predicates for PostGIS GEOGRAPHY columns directly in GraphQL queries and permissions builder. (close #1674) (#1735)
  • JSON/JSONB columns now have a path argument 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 apply command 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_error was thrown (which is for protocol errors) instead of error. This is now fixed to send GQL_ERROR instead of GQL_CONNECTION_ERROR. (fix #1790) (#1792)
  • Fixes a bug that was introduced in alpha40 which 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)