Commit Graph

325 Commits

Author SHA1 Message Date
Rikin Kachhia
048c1de414
docs: add actions docs (#3907) 2020-02-24 21:49:14 +05:30
Rikin Kachhia
0805719523
docs: remove wip actions docs (#3909)
* revert actions docs
2020-02-19 17:49:35 +05:30
Rikin Kachhia
b0d180efa2
docs: use install manifests from stable branch (#3906)
* update docs install manifests to use stable branch

* change the link to master at some more places

Co-authored-by: Shahidh K Muhammed <muhammedshahid.k@gmail.com>
2020-02-19 17:13:08 +05:30
Vamshi Surabhi
b84db36ebb
allow custom mutations through actions (#3042)
* basic doc for actions

* custom_types, sync and async actions

* switch to graphql-parser-hs on github

* update docs

* metadata import/export

* webhook calls are now supported

* relationships in sync actions

* initialise.sql is now in sync with the migration file

* fix metadata tests

* allow specifying arguments of actions

* fix blacklist check on check_build_worthiness job

* track custom_types and actions related tables

* handlers are now triggered on async actions

* default to pgjson unless a field is involved in relationships, for generating definition list

* use 'true' for action filter for non admin role

* fix create_action_permission sql query

* drop permissions when dropping an action

* add a hdb_role view (and relationships) to fetch all roles in the system

* rename 'webhook' key in action definition to 'handler'

* allow templating actions wehook URLs with env vars

* add 'update_action' /v1/query type

* allow forwarding client headers by setting `forward_client_headers` in action definition

* add 'headers' configuration in action definition

* handle webhook error response based on status codes

* support array relationships for custom types

* implement single row mutation, see https://github.com/hasura/graphql-engine/issues/3731

* single row mutation: rename 'pk_columns' -> 'columns' and no-op refactor

* use top level primary key inputs for delete_by_pk & account select permissions for single row mutations

* use only REST semantics to resolve the webhook response

* use 'pk_columns' instead of 'columns' for update_by_pk input

* add python basic tests for single row mutations

* add action context (name) in webhook payload

* Async action response is accessible for non admin roles only if
  the request session vars equals to action's

* clean nulls, empty arrays for actions, custom types in export metadata

* async action mutation returns only the UUID of the action

* unit tests for URL template parser

* Basic sync actions python tests

* fix output in async query & add async tests

* add admin secret header in async actions python test

* document async action architecture in Resolve/Action.hs file

* support actions returning array of objects

* tests for list type response actions

* update docs with actions and custom types metadata API reference

* update actions python tests as per #f8e1330

Co-authored-by: Tirumarai Selvan <tirumarai.selvan@gmail.com>
Co-authored-by: Aravind Shankar <face11301@gmail.com>
Co-authored-by: Rakesh Emmadi <12475069+rakeshkky@users.noreply.github.com>
2020-02-13 23:08:23 +05:30
Phil Freeman
94102c0460
Add downgrade command (close #1156) (#3760)
* Add downgrade command

* Add docs per @lexi-lambda's suggestions

* make tests pass

* Update hdb_version once, from Haskell

* more work based on feedback

* Improve the usage message

* Small docs changes

* Test downgrades exist for each tag

* Update downgrading.rst

* Use git-log to find tags which are ancestors of the current commit

Co-authored-by: Vamshi Surabhi <0x777@users.noreply.github.com>
2020-02-07 16:33:12 +05:30
Anon Ray
c6e34baad8
fix parsing JWK expiry time from headers on startup (fix #3655) (#3779) 2020-02-05 12:37:30 +05:30
Lyndon Maydwell
be6f966ce0
New ENV variable support for disabling CORS headers (close #3782) (#3785) 2020-02-03 16:43:03 +05:30
Marion Schleifer
2b977bb9b9
docs: document explain api (close #870) (#3739) 2020-02-03 12:04:44 +05:30
Rikin Kachhia
5702881d5c
docs: misc updates (#3700)
* added example for select_by_pk query
* improved notes on _or and _and behaviour
* improve distinct and order_by usage note
2020-01-20 17:17:49 +05:30
Phil Freeman
9ed8f717a7 remove hdb_views for inserts (#3598)
* WIP: Remove hdb_views for inserts

* Show failing row in check constraint error

* Revert "Show failing row in check constraint error"

This reverts commit dd2cac29d0.

* Use the better query plan

* Simplify things

* fix cli test

* Update downgrading.rst

* remove 1.1 asset for cli
2020-01-16 10:23:28 +05:30
Marion Schleifer
265cf7f12e docs: add meta descriptions to pages (#3631) 2020-01-14 18:27:45 +05:30
Rikin Kachhia
db6b2aa378
add computed fields support on console (close #3203 #3565) (#3522) 2020-01-13 12:41:30 +05:30
Marion Schleifer
28914022fc docs: add alt tags for all images (#3634) 2020-01-08 18:50:18 +05:30
Don Livanec
fa1805dc59 docs: update url for community wiki tools and boilerplates (#3619) 2020-01-06 12:39:45 +05:30
Phylor
3ca92b9ac1 docs: fix Auth0 integration instructions (fix #2655) (#3214)
Co-authored-by: Praveen Durairaju <praveend.web@gmail.com>
2020-01-06 12:38:03 +05:30
Marion Schleifer
1f0aa79b00 docs: fix color of paragraph anchor (#3629) 2020-01-03 17:22:28 +05:30
Praveen Durairaju
8ee21368f9 docs: add canonical url, fix accessibility (#3599) 2019-12-30 14:32:06 +05:30
Rikin Kachhia
3a7a3bf6bf
refactor docs schema section (#3489) 2019-12-26 17:35:37 +05:30
Marion Schleifer
5eb9f602b3 update docs colour scheme (#3586) 2019-12-26 11:01:02 +05:30
Shahidh K Muhammed
6ef5b438c0
add git clone command to heroku update guide (close #3582) (#3587) 2019-12-24 19:00:54 +05:30
Phil Freeman
c766881125 Support batched queries (fix #1812) (#3490) 2019-12-20 10:04:02 -06:00
Fabian
528f16a1e5 docs(fix) minor typo in auth0 integration guide (#3450)
Variable should be "userId" not "id", will throw an error by GraphQL server otherwise.
2019-12-19 16:50:10 +05:30
Aravind Shankar
756d8abd54 add rename_relationship metadata api docs (#3389) 2019-12-17 22:04:49 +05:30
Rikin Kachhia
deeae45b9e
add boolean expressions syntactic sugar notes in docs (#3510) 2019-12-17 19:52:39 +05:30
Tirumarai Selvan
eeb0c7acdd add note about abac to auth docs (#3537) 2019-12-17 14:01:33 +05:30
Rikin Kachhia
6f3e88abb7
replace crisp with intercom in docs (#3515) 2019-12-17 12:34:36 +05:30
Kevin Menard
5634dbfa16 add notes about auth0-spa-js to auth0 docs (#3367) 2019-12-17 12:15:52 +05:30
Rikin Kachhia
4ef9bc4309
add cursor pagination section to docs (#3498) 2019-12-16 18:16:13 +05:30
Rikin Kachhia
8a22625767
add learn.hasura.io link to docs header (#3516) 2019-12-15 18:32:59 +05:30
Rikin Kachhia
a66bcb7f27
update queries docs pages (#3483) 2019-12-15 18:32:10 +05:30
Rikin Kachhia
2264db6426
add dedicated version and health api docs pages (#3482) 2019-12-15 18:30:22 +05:30
Brandon Simmons
55bc9d57ef Fix documentation of HASURA_GRAPHQL_PG_CONNECTIONS (#3495) 2019-12-12 14:10:04 -06:00
Marion Schleifer
f265ab1060 add docs example for the _exists operator (#3402) 2019-12-10 19:01:20 +05:30
Marion Schleifer
46ac68952f add replace nested objects example to update docs (#2962) 2019-12-10 16:07:20 +05:30
Tirumarai Selvan
3cd656f3c7 check db connection in healthz endpoint (close #2645) (#3440)
* check db connection in healthz endpoint
* use Spock.text to automatically set Content-Type
* update docs
2019-12-03 13:18:10 -06:00
larainfo
22eec2241f add docs example for inserting an object with an array field (close #3018) (#3019) 2019-12-03 19:48:35 +05:30
Rikin Kachhia
88f7564c54
update cli docs (#3424) 2019-12-02 16:27:17 +05:30
Gordon Johnston
f03bbfd704 fix property name in metadata docs (#3419)
* Fix property name

The key for the 'relationship' property is 'relationship' and not 'name'. The example is correct but the syntax table was wrong.

* fix second table
2019-11-29 18:04:07 +05:30
Marion Schleifer
95f96ee889 update docs for relational inserts and upserts (close #1310, #2293) (#2889) 2019-11-28 20:20:47 +05:30
Marion Schleifer
935abc2b39 add docs for seed data migration (close #2431) (#2870) 2019-11-28 17:49:00 +05:30
Rikin Kachhia
a81318e1ca
update offline console docs (#3416) 2019-11-25 17:00:41 +05:30
Marion Schleifer
64eb726568 update upsert column requirements in docs (#3413) 2019-11-25 15:05:36 +05:30
Marion Schleifer
9dd0606128 add pagination with aggregated data section to docs (close #277) (#2874) 2019-11-21 14:12:56 +05:30
Tirumarai Selvan
d8af6915d4 move oidc error note to relevant position in auth0 docs guide (#3385) 2019-11-20 18:45:02 +05:30
Rakesh Emmadi
9b8e6b42d1 functions can access session info via input arg (close #2322) (#3143) 2019-11-20 12:17:06 +05:30
Tirumarai Selvan
2d5cdab60f add run_sql api read_only arg to docs (#3370) 2019-11-20 11:57:49 +05:30
jjangga0214
f34a80c760 add install note for community npm package for cli (close #2720)(#3095) 2019-11-20 11:50:28 +05:30
Tirumarai Selvan
aedcb319cf add local dev note via ngrok to auth0 docs guide (#3372) 2019-11-20 11:42:44 +05:30
Kevin Menard‮
a08c3cc06a fix docs on how to roll back all migrations (#3368) 2019-11-19 12:00:24 +05:30
Rakesh Emmadi
cbbcb5d1cf document catalog versions and down migrations from beta.8 to beta.10 (#3360) 2019-11-15 20:42:01 +05:30