Commit Graph

133 Commits

Author SHA1 Message Date
rakeshkky
e347ef3e45 fix explain queries with role permissions, fix #4816 2020-05-22 14:40:57 +05:30
gautambt
7ef710974c
docs: fix errors in cognito docs (#4843) 2020-05-22 13:34:41 +05:30
Marion Schleifer
ef78875be6
docs: improve actions documentation (#4743) 2020-05-21 22:57:11 +05:30
gautambt
642c421cc4
docs: add integration guide for AWS Cognito (#4822) 2020-05-21 19:18:46 +05:30
Marion Schleifer
93bb34290e
docs: update troubleshooting section with reference on debugging errors (close #4052) (#4825) 2020-05-21 15:08:38 +05:30
Tirumarai Selvan
9c55940b6d
flush log buffer on exception in mkWaiApp ( fix #4772 ) (#4801)
* flush log buffer on exception in mkWaiApp

* add comment to explain the introduced change

* add changelog
2020-05-21 13:43:44 +05:30
dsandip
a8699bb442
docs: add page for procuring custom docker images and binaries (#4828) 2020-05-21 12:52:18 +05:30
Karthikeyan Chinnakonda
ac3076796c
Allowlist metadata Import bug (#4762)
fix bug which was not allowing the allowlist to be imported
2020-05-20 11:46:26 +05:30
Rikin Kachhia
fb175f21e8
docs: add disabling dev mode to production checklist (#4715) 2020-05-19 13:25:59 +05:30
Tirumarai Selvan
6597e986f2
flush logger on shutdown (#4800)
* flush logger on shutdown

* use rmLoggerSet instead of flushLogStr

* add changelog
2020-05-19 13:19:30 +05:30
Auke Booij
20cbe9cfd3
server: fix an introspection query caching issue (fix #4547) (#4661)
Introspection queries accept variables, but we need to make sure to
also touch the variables that we ignore, so that an introspection
query is marked not reusable if we are not able to build a correct
query plan for it.

A better solution here would be to deal with such unused variables
correctly, so that more introspection queries become reusable.

An even better solution would be to type-safely track *how* to reuse
which variables, rather than to split the reusage marking from the
planning.

Co-authored-by: Tirumarai Selvan <tiru@hasura.io>
2020-05-18 14:27:56 +02:00
Rakesh Emmadi
6069cc95e3
docs: add single object mutations docs (close #4622) (#4625) 2020-05-18 16:43:57 +05:30
Dien Vu
6b5a61cff6
docs: a sample Caddyfile for Caddy 2 to enable https section (#4710) 2020-05-18 13:56:02 +05:30
Rikin Kachhia
7a7ff29e08
console: fix undercores not being displayed in raw sql (close #4754) (#4799) 2020-05-18 13:46:08 +05:30
Aleksandra Sikora
78aa346d72
console: fix displaying boolean values in Edit Row tab (#4682) 2020-05-15 14:36:45 +05:30
Aleksandra Sikora
8a2d90cfb1
console: fix bulk selected rows state in data browser (close #4654) (#4673) 2020-05-14 18:55:57 +05:30
Aleksandra Sikora
1cbb765acd
console: fix rows limit display in permissions editor if set to zero (fix #4559) (#4750) 2020-05-14 15:35:00 +05:30
Brandon Simmons
ff62d5e0bf Migrate to GHC 8.10, upgrade dependencies. Closes #4517
This also seems to squash a stubborn space leak we see with
subscriptions (linking to canonical #3388 for reference).

This may also fix some of the "Unexpected exception" websockets
exceptions we are now surfacing (see e.g. #4344)

Also: dev.sh: fix hpc reporting

Initial work on this done by Vamshi.
2020-05-13 19:13:02 -04:00
Tirumarai Selvan
cc8e2ccc78
Scheduled triggers (close #1914) (#3553)
server: add scheduled triggers 

Co-authored-by: Alexis King <lexi.lambda@gmail.com>
Co-authored-by: Marion Schleifer <marion@hasura.io>
Co-authored-by: Karthikeyan Chinnakonda <karthikeyan@hasura.io>
Co-authored-by: Aleksandra Sikora <ola.zxcvbnm@gmail.com>
2020-05-13 18:03:16 +05:30
Auke Booij
2735d284c1
server: use a new version of graphql-parser-hs to avoid loss of precision (#4741)
Fixes #4733.  See also hasura/graphql-parser-hs#29.
2020-05-13 12:10:46 +02:00
Auke Booij
4d10a610f4
server: fix mishandling of GeoJSON inputs in subscriptions (fix #3239) (#4551)
* Add support for multiple top-level fields in a subscription to improve testability of subscriptions

* Add an internal flag to enable multiple subscriptions

* Add missing call to withConstructorFn in live queries (fix #3239)

Co-authored-by: Alexis King <lexi.lambda@gmail.com>
2020-05-13 10:09:44 +02:00
Marion Schleifer
9a16e25769
docs: add page on query performance (close #2316) (#3693) 2020-05-12 21:20:35 +05:30
Antoine Leblanc
201dcca59a
console: restore partial support for foreign tables (fix #4714) (#4742) 2020-05-12 17:18:35 +05:30
Jigyasu Arya
f993a6c907
console: fix checkbox for forwarding client headers in actions (close #4595) (#4669) 2020-05-12 15:22:23 +05:30
Fadi Khadra
cd1c562073
console: allow modifying default value for PK (close #4075) (#4679) 2020-05-12 11:46:48 +05:30
Anon Ray
3dd72bf66c
docs: fix info on excluding scheme in CORS config (#4685) 2020-05-11 18:56:08 +05:30
Marion Schleifer
d335743e4b
docs: add section on actions vs remote schemas (close #4093) (#4284)
* add section on actions vs remote schemas

* fix language

* add changelog

* update actionvs vs remote schemas

Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
Co-authored-by: Tirumarai Selvan <tiru@hasura.io>
2020-05-11 18:42:58 +05:30
Rikin Kachhia
c2fdcd0471
console: optimise count fetch in data browser (#4692)
* in table-browse-rows, make intelligent count

* update changelog

* simplify getting estimatedCount

* prevent doubled requests

* hide estimated count

* update changelog

* Update CHANGELOG.md

Co-authored-by: Rishichandra Wawhal <rishi@hasura.io>
Co-authored-by: Aleksandra Sikora <ola.zxcvbnm@gmail.com>
2020-05-06 23:37:56 +05:30
Can Taşpınar
9d815598cc
cli: include new commands in help text (fix #4623) (#4626) 2020-05-05 09:21:20 +05:30
surendran82
5998d22231
console: add read replica support section to pro popup (#4118) 2020-05-02 14:41:40 +05:30
Rikin Kachhia
c2df714e5d
docs: update migrations docs (#3403) 2020-04-29 13:30:26 +05:30
Rikin Kachhia
35a50bb28b
docs: update actions documentation (#4586) 2020-04-29 13:16:02 +05:30
Tirumarai Selvan
7f0e47c44e
ready changelog for v1.2 (#4591) 2020-04-29 11:56:19 +05:30
Shraddha Agrawal
88685736c7
Merge branch 'master' into init-current-directory 2020-04-28 18:35:00 +05:30
Shraddha Agrawal
d95d6378e8
cli: add support for servers with self-signed certs (fix #4564) (#4582)
Co-Authored-By: Marion Schleifer <marion@hasura.io>
2020-04-28 17:29:57 +05:30
Shraddha Agrawal
1002d20a0a
Merge branch 'master' into init-current-directory 2020-04-28 02:27:23 +05:30
Marion Schleifer
3ba344befb
docs: data validations (close #4085) (#4260) 2020-04-28 00:32:15 +05:30
Auke Booij
ee7c7b1672
server: allow computed fields to have access to Hasura's session variables (fix #3846) (#4486)
* Allow computed fields to have access to Hasura's session variables

* Inform about session args for computed fields in changelog and docs

* Add tests for session arguments for computed fields (and the respective errors)

Co-authored-by: Tirumarai Selvan <tiru@hasura.io>
Co-authored-by: Marion Schleifer <marion@hasura.io>
Co-authored-by: Rakesh Emmadi <12475069+rakeshkky@users.noreply.github.com>
2020-04-27 17:07:03 +02:00
Aravind
98906e6c5f
Merge branch 'master' into init-current-directory 2020-04-27 16:51:16 +05:30
Rishichandra Wawhal
74563402d4
console: update and freeze graphiql explorer to support operation transforms (#4567) 2020-04-27 16:46:09 +05:30
Aleksandra Sikora
4746be2018
console: fix table columns type comparision during column edit (close #4125) (#4393) 2020-04-27 16:13:22 +05:30
Aleksandra Sikora
79a3b6131d
console: make graphiql panel use whole height (#4553) 2020-04-27 14:32:39 +05:30
Shraddha Agrawal
9c06c2998a update CHANGELOG.md 2020-04-26 22:35:39 +05:30
Shraddha Agrawal
38529b3960
cli: remove irrelevant flags from init command (close #4508) (#4549) 2020-04-25 11:33:13 +05:30
Shahidh K Muhammed
41d3595aab
tag release v1.2.0-beta.5 (#4555) 2020-04-24 19:56:51 +05:30
Antoine Leblanc
66e18b7dee
console: support materialized views (close #91) (#4270) 2020-04-24 15:13:42 +05:30
Rakesh Emmadi
d52bfcda4e
backend only insert permissions (rfc #4120) (#4224)
* move user info related code to Hasura.User module

* the RFC #4120 implementation; insert permissions with admin secret

* revert back to old RoleName based schema maps

An attempt made to avoid duplication of schema contexts in types
if any role doesn't possess any admin secret specific schema

* fix compile errors in haskell test

* keep 'user_vars' for session variables in http-logs

* no-op refacto

* tests for admin only inserts

* update docs for admin only inserts

* updated CHANGELOG.md

* default behaviour when admin secret is not set

* fix x-hasura-role to X-Hasura-Role in pytests

* introduce effective timeout in actions async tests

* update docs for admin-secret not configured case

* Update docs/graphql/manual/api-reference/schema-metadata-api/permission.rst

Co-Authored-By: Marion Schleifer <marion@hasura.io>

* Apply suggestions from code review

Co-Authored-By: Marion Schleifer <marion@hasura.io>

* a complete iteration

backend insert permissions accessable via 'x-hasura-backend-privilege'
session variable

* console changes for backend-only permissions

* provide tooltip id; update labels and tooltips;

* requested changes

* requested changes

- remove className from Toggle component
- use appropriate function name (capitalizeFirstChar -> capitalize)

* use toggle props from definitelyTyped

* fix accidental commit

* Revert "introduce effective timeout in actions async tests"

This reverts commit b7a59c19d6.

* generate complete schema for both 'default' and 'backend' sessions

* Apply suggestions from code review

Co-Authored-By: Marion Schleifer <marion@hasura.io>

* remove unnecessary import, export Toggle as is

* update session variable in tooltip

* 'x-hasura-use-backend-only-permissions' variable to switch

* update help texts

* update docs

* update docs

* update console help text

* regenerate package-lock

* serve no backend schema when backend_only: false and header set to true

- Few type name refactor as suggested by @0x777

* update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* fix a merge bug where a certain entity didn't get removed

Co-authored-by: Marion Schleifer <marion@hasura.io>
Co-authored-by: Rishichandra Wawhal <rishi@hasura.io>
Co-authored-by: rikinsk <rikin.kachhia@gmail.com>
Co-authored-by: Tirumarai Selvan <tiru@hasura.io>
2020-04-24 14:40:53 +05:30
Rakesh Emmadi
6f100e0009
improve debug information in actions errors response (close #4031) (#4432)
* config options for internal errors for non-admin role, close #4031

More detailed action debug info is added in response 'internal' field

* add docs

* update CHANGELOG.md

* set admin graphql errors option in ci tests, minor changes to docs

* fix tests

Don't use any auth for sync actions error tests. The request body
changes based on auth type in session_variables (x-hasura-auth-mode)

* Apply suggestions from code review

Co-Authored-By: Marion Schleifer <marion@hasura.io>

* use a new sum type to represent the inclusion of internal errors

As suggested in review by @0x777
-> Move around few modules in to specific API folder
-> Saperate types from Init.hs

* fix tests

Don't use any auth for sync actions error tests. The request body
changes based on auth type in session_variables (x-hasura-auth-mode)

* move 'HttpResponse' to 'Hasura.HTTP' module

* update change log with breaking change warning

* Update CHANGELOG.md

Co-authored-by: Marion Schleifer <marion@hasura.io>
Co-authored-by: Tirumarai Selvan <tiru@hasura.io>
2020-04-24 13:25:51 +05:30
Rakesh Emmadi
b51a8ece4d
fix creating relationships for custom object types with fields reusing Postgres scalars (fix #4447) (#4455)
* fix creating relationships for custom object types with fields reusing Postgres scalars, close #4447

* fix changelog entry

* rearrange entries

Co-authored-by: Tirumarai Selvan <tiru@hasura.io>
2020-04-24 10:58:42 +05:30
Rishichandra Wawhal
2e7e54fc2e
console: preserve the returning field set in a derived action (#4530) 2020-04-23 18:27:42 +05:30