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

Conversation

@0x777
Copy link
Member

@0x777 0x777 commented Oct 6, 2019

Needs hasura/graphql-parser-hs#19 to be merged

I'll be pushing changes to this PR over the next couple of days. A high level overview of actions can be found in this PR's docs.

Updated: 23/10/2019

Tasks done:

  • defining custom types
  • sync actions
  • async actions
  • metadata export/import
  • http endpoint as action handlers
  • relationships

Remaining:

  • pg functions as action handlers
  • async action relationships

update_action:-

type: update_action
args:
  name: action-name
  definition: action-definition # will replaces existing one

The webhook is called over POST. The payload looks like:-

{
  "session_variables": {
    "x-hasura-user-id": "1234"
  },
  "input": {
    "arg1": "value1",
    "arg2": "value2"
  },
  "action": {
    "name": "action-name"
  }
}

The webhook response:

  • On success, should return a 2xx code with JSON body whose value is of the defined output type
  • Should return a 4xx code for an error that should be propagated back to the client. The response JSON body is an object with a compulsory message field (text) and optional code field (text)
  • All other status codes are treated as internal errors and nothing is propagated to the client. The details should be logged as internal in error field and part of extensions in response for the admin role.

Single row mutations:- Implemented the RFC #3731

@netlify
Copy link

netlify bot commented Oct 6, 2019

Deploy preview for hasura-docs ready!

Built with commit 8323c30

https://deploy-preview-3042--hasura-docs.netlify.com

@0x777
Copy link
Member Author

0x777 commented Oct 6, 2019

@hasura-bot
Copy link
Contributor

Review app for commit a786aed deployed to Heroku: https://hge-ci-pull-3042.herokuapp.com
Docker image for server: hasura/graphql-engine:pull3042-a786aed5

@hasura-bot
Copy link
Contributor

Review app for commit af6139e deployed to Heroku: https://hge-ci-pull-3042.herokuapp.com
Docker image for server: hasura/graphql-engine:pull3042-af6139ec

@hasura-bot
Copy link
Contributor

Review app for commit 5d58513 deployed to Heroku: https://hge-ci-pull-3042.herokuapp.com
Docker image for server: hasura/graphql-engine:pull3042-5d58513d

@hasura-bot
Copy link
Contributor

Review app for commit 4bc8106 deployed to Heroku: https://hge-ci-pull-3042.herokuapp.com
Docker image for server: hasura/graphql-engine:pull3042-4bc81068

@hasura-bot
Copy link
Contributor

Review app for commit c86dcc4 deployed to Heroku: https://hge-ci-pull-3042.herokuapp.com
Docker image for server: hasura/graphql-engine:pull3042-c86dcc46

@hasura hasura deleted a comment from wawhal Oct 24, 2019
@hasura hasura deleted a comment from wawhal Oct 24, 2019
@hasura-bot
Copy link
Contributor

Review app for commit ea0f8f7 deployed to Heroku: https://hge-ci-pull-3042.herokuapp.com
Docker image for server: hasura/graphql-engine:pull3042-ea0f8f70

@hasura-bot
Copy link
Contributor

Review app for commit a40b68e deployed to Heroku: https://hge-ci-pull-3042.herokuapp.com
Docker image for server: hasura/graphql-engine:pull3042-a40b68e7

@hasura-bot
Copy link
Contributor

Review app for commit c33372a deployed to Heroku: https://hge-ci-pull-3042.herokuapp.com
Docker image for server: hasura/graphql-engine:pull3042-c33372a8

@hasura-bot
Copy link
Contributor

Review app for commit a0771e0 deployed to Heroku: https://hge-ci-pull-3042.herokuapp.com
Docker image for server: hasura/graphql-engine:pull3042-a0771e0a

@SidhNor
Copy link

SidhNor commented Feb 10, 2020

Thank your for great effort out there. This looks awesome.
When do you think this can realistically get into beta?

@hasura-bot
Copy link
Contributor

Review app for commit a3e2805 deployed to Heroku: https://hge-ci-pull-3042.herokuapp.com
Docker image for server: hasura/graphql-engine:pull3042-a3e2805a

@hasura-bot
Copy link
Contributor

Review app for commit 06b35e6 deployed to Heroku: https://hge-ci-pull-3042.herokuapp.com
Docker image for server: hasura/graphql-engine:pull3042-06b35e62

@hasura-bot
Copy link
Contributor

Review app for commit c96dd6e deployed to Heroku: https://hge-ci-pull-3042.herokuapp.com
Docker image for server: hasura/graphql-engine:pull3042-c96dd6eb

@hasura-bot
Copy link
Contributor

Review app for commit 2e92e3a deployed to Heroku: https://hge-ci-pull-3042.herokuapp.com
Docker image for server: hasura/graphql-engine:pull3042-2e92e3a6

@hasura-bot
Copy link
Contributor

Review app for commit 20e23a1 deployed to Heroku: https://hge-ci-pull-3042.herokuapp.com
Docker image for server: hasura/graphql-engine:pull3042-20e23a1c

@hasura-bot
Copy link
Contributor

Review app for commit e32545e deployed to Heroku: https://hge-ci-pull-3042.herokuapp.com
Docker image for server: hasura/graphql-engine:pull3042-e32545ed

Resolve Conflicts:
	server/src-lib/Hasura/GraphQL/Resolve/Insert.hs
	server/src-lib/Hasura/GraphQL/Resolve/Mutation.hs
	server/src-lib/Hasura/RQL/DML/Insert.hs
	server/src-lib/Hasura/RQL/DML/Update.hs
	server/src-lib/Hasura/RQL/Types/SchemaCache.hs
@hasura-bot
Copy link
Contributor

Review app for commit 9222cae deployed to Heroku: https://hge-ci-pull-3042.herokuapp.com
Docker image for server: hasura/graphql-engine:pull3042-9222cae1

@hasura-bot
Copy link
Contributor

Review app for commit 8a07237 deployed to Heroku: https://hge-ci-pull-3042.herokuapp.com
Docker image for server: hasura/graphql-engine:pull3042-8a07237c

@hasura-bot
Copy link
Contributor

Review app for commit 12dc26e deployed to Heroku: https://hge-ci-pull-3042.herokuapp.com
Docker image for server: hasura/graphql-engine:pull3042-12dc26e4

@0x777 0x777 merged commit b84db36 into hasura:master Feb 13, 2020
@hasura-bot
Copy link
Contributor

Review app https://hge-ci-pull-3042.herokuapp.com is deleted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.