Anon Ray
02d80c9ac6
read cookie while initialising websocket connection ( fix #1660 ) ( #1668 )
...
* read cookie while initialising websocket connection (fix #1660 )
* add tests for cookie on websocket init
* fix logic for tests
* enforce cors, and flag to force read cookie when cors disabled
- as browsers don't enforce SOP on websockets, we enforce CORS policy
on websocket handshake
- if CORS is disabled, by default cookie is not read (because XSS
risk!). Add special flag to force override this behaviour
* add log and forward origin header to webhook
- add log notice when cors is disabled, and cookie is not read on
websocket handshake
- forward origin header to webhook in POST mode. So that when CORS is
disabled, webhook can also enforce CORS independently.
* add docs, and forward all client headers to webhook
2019-03-04 13:16:53 +05:30
Vamshi Surabhi
f794653b69
update event triggers on rename operations ( #1684 )
2019-03-01 19:29:24 +05:30
Rakesh Emmadi
377290a058
breaking: correct (de)serialisation of postgres numeric types in json ( fix #1523 ) ( #1662 )
2019-03-01 17:15:04 +05:30
comerc
e3e1200bae
fix a typo in todo-auth0-jwt sample app ( #1334 )
2019-03-01 16:07:12 +05:30
Selvaganesh
95587bc028
added nodejs8 aws lambda boilerplate ( #790 )
2019-03-01 15:38:51 +05:30
Praveen Durairaj
039f16b906
update instructions for directory change ( #1539 )
2019-03-01 15:24:26 +05:30
Rakesh Emmadi
6c20ca8a55
allow renaming tables, columns and relationships ( close #79 ) ( #1542 )
2019-03-01 14:47:22 +05:30
Rishichandra Wawhal
00227728cb
add "*" for insert and delete columns when creating and modifying trigger ( close #1629 ) ( #1673 )
...
This PR adds "*" as columns for insert and delete so that there are no column dependencies on event triggers and users can drop/modify columns whenever they want.
```
{
"type": "bulk",
"args": [{
"type": "create_event_trigger",
"args": {
"name": "test",
"table": {
"name": "user",
"schema": "public"
},
"webhook": "http://httpbin.org/post ",
"insert": {
"columns": "*"
},
"update": {
"columns": ["col1", "col2"]
},
"delete": {
"columns": "*"
}
"headers": []
}
}]
}
```
2019-03-01 11:13:10 +05:30
Rikin Kachhia
214cdeb388
update console permissions ( #1658 )
...
* removed trash icon to remove all permissions to avoid confusion. Same action can be done via the bulk section
* colour coded permissions symbols for better visual feedback
2019-02-28 20:22:08 +05:30
Rikin Kachhia
2783561e1b
update console browse rows section ( close #1622 ) ( #1642 )
...
* Update browse rows UI
* Make columns draggable
* Make columns collapsible
* Allow multiple columns sort using column headers
* Add no sort option while toggling
2019-02-28 20:19:53 +05:30
nizar-m
1fa66dc622
add option to disable metadata and graphql apis ( close #1088 ) ( #1650 )
2019-02-28 19:23:03 +05:30
Shahidh K Muhammed
097bfb6bfa
revert "forward response headers from remote servers ( #1664 )"
...
This reverts commit c19fe35f4e
.
2019-02-28 17:20:56 +05:30
Anon Ray
c19fe35f4e
forward response headers from remote servers ( fix #1654 ) ( #1664 )
2019-02-28 17:15:07 +05:30
Rishichandra Wawhal
a002d3ad2a
refactor console code, update react to 16.8.2 ( close #1467 ) ( #1608 )
2019-02-28 17:13:06 +05:30
Nathan Waters
9cfdef3645
add fuzzy match search example to custom function docs ( #1555 )
2019-02-28 15:30:16 +05:30
Jonathan Chhabra
7d61422888
add section for unauthorized role in auth0 guide ( #1484 )
2019-02-28 15:08:16 +05:30
Shahidh K Muhammed
fdd5784bf7
test server upgrade from last release ( close #570 ) ( #1667 )
2019-02-27 20:42:47 +05:30
Shahidh K Muhammed
1be8faebea
update pull request template ( #1672 )
2019-02-27 16:56:31 +05:30
Rikin Kachhia
e5290d4281
fix console sidebar links highlighting ( #1657 )
2019-02-26 12:34:14 +05:30
Rikin Kachhia
56a08a16b5
make button texts consistent across event trigger and remote schemas ( close #1634 ) ( #1666 )
2019-02-26 12:23:36 +05:30
Tirumarai Selvan
32ef67a20c
remove stale folder for gatsby nextjs boilerplates ( #1652 )
2019-02-25 12:52:09 +05:30
Rakesh Emmadi
c731fde1e3
enforce column presets of update permission with upserts ( fix #1647 ) ( #1653 )
2019-02-23 16:06:42 +05:30
Tirumarai Selvan
7851015cb2
refactor event processing logic ( #1639 )
2019-02-22 17:55:36 +05:30
Rakesh Emmadi
0833d35088
generate scalar types for SQL function arguments ( fix #1632 ) ( #1633 )
...
Also involved a refactor of the internals to localise the context needed for each field
2019-02-22 15:57:38 +05:30
Anne Ogborn
6eae576e79
update dependencies needed for apollo in apollo-subscriptions guide ( close #1643 ) ( #1644 )
2019-02-22 12:00:52 +05:30
Rikin Kachhia
626af8939f
handle empty header key in console APIExplorer ( #1641 )
2019-02-22 11:59:23 +05:30
Pilou
e7fba40fad
added auth-jwt-roles boilerplate ( #1570 )
...
Added a boilerplate from [this original repository](https://github.com/platyplus/authentication-server ) based on the discussions in [this issue](https://github.com/hasura/graphql-engine/issues/1420 ) and [this issue](https://github.com/hasura/graphql-engine/issues/1446 ).
[skip ci]
2019-02-21 16:42:47 +05:30
Praveen Durairaj
5fc2df2766
add nextjs-8-serverless sample app ( #1640 )
2019-02-21 15:27:20 +05:30
Shahidh K Muhammed
d3b994885e
add google cloud gke cloud sql deployment guide to docs ( close #1386 ) ( #1628 )
2019-02-20 14:09:50 +05:30
Rikin Kachhia
5a1fc5d46c
update console unable to connect to server msg ( #1625 )
2019-02-19 18:11:57 +05:30
Praveen Durairaj
6ef0b4dfdf
fix console hot reloading and upgrade to babel 7 ( #1618 )
2019-02-19 14:00:48 +05:30
Igor Pashev
7ccc91ec4f
remove grep from server makefile ( #1614 )
...
awk can do all the job.
2019-02-19 12:20:54 +05:30
Praveen Durairaj
76b51216fc
fix ace editor cursor to match with the text ( #1620 )
2019-02-19 10:01:23 +05:30
Rikin Kachhia
875076939c
update cli install instructions in migrations docs ( #1607 )
2019-02-17 17:15:34 +05:30
Rishichandra Wawhal
386ab81b96
make events and remote-schema tabs independent of update checker ( #1604 )
...
* fix a bug where update check request failure would stop remote-schemas and event triggers tab from loading
* update graphiql test for with and without admin secret
* remove dev data api url from localDev env
2019-02-17 17:14:52 +05:30
Rikin Kachhia
75674859b3
update console permissions ( close #1503 , #1529 , #1567 , #1470 ) ( #1605 )
...
* show roles from all tables/views in the schema
* show operators and set values based on field type in permission builder
* add support for jsonb and postgis operators in permission builder
* add note for permissions for relationships
* enable only one Save permissions button if apply to other roles is selected
2019-02-17 16:06:29 +05:30
Rakesh Emmadi
7334c65087
update operators in metadata api docs ( #1610 )
2019-02-15 18:18:18 +05:30
Rikin Kachhia
c90b03dbc7
fix docs content ( #1603 )
2019-02-14 16:44:25 +05:30
Shahidh K Muhammed
12ecea16d0
update manifests to v1.0.0-alpha38
2019-02-14 15:10:02 +05:30
nizar-m
f83a8e591f
rename access-key to admin-secret ( close #1347 ) ( #1540 )
...
Rename the admin secret key header used to access GraphQL engine from X-Hasura-Access-Key to X-Hasura-Admin-Secret.
Server CLI and console all support the older flag but marks it as deprecated.
2019-02-14 15:07:47 +05:30
Tirumarai Selvan
51dd6157e1
remove wreq and set response timeout ( close #1477 ) ( #1501 )
2019-02-14 13:07:59 +05:30
Aravind Shankar
d489f2d90f
added a cli flag to skip update checks ( close #1586 ) ( #1600 )
...
adds a global flag `--skip-update-check`
2019-02-14 11:46:36 +05:30
Anon Ray
199a24d050
add support for multiple domains in cors config ( close #1436 ) ( #1536 )
...
Support for multiple domains (as CSV) in the `--cors-domain` flag and `HASURA_GRAPHQL_CORS_DOMAIN` env var.
Following are all valid configurations (must include scheme and optional port):
```shell
HASURA_GRAPHQL_CORS_DOMAIN="https://*.foo.bar.com:8080 "
HASURA_GRAPHQL_CORS_DOMAIN="https://*.foo.bar.com , http://*.localhost , https://example.com "
HASURA_GRAPHQL_CORS_DOMAIN="*"
HASURA_GRAPHQL_CORS_DOMAIN="http://example.com , http://*.localhost , http://localhost:3000 , https://*.foo.bar.com , https://foo.bar.com "
```
**Note**: top-level domains are not considered as part of wildcard domains. You have to add them separately. E.g - `https://*.foo.com ` doesn't include `https://foo.com `.
The default (if the flag or env var is not specified) is `*`. Which means CORS headers are sent for all domains.
2019-02-14 11:28:38 +05:30
Vamshi Surabhi
68bb898b24
Update CONTRIBUTING.md
2019-02-14 10:47:27 +05:30
Vamshi Surabhi
392a37f12a
Update CONTRIBUTING.md
2019-02-14 10:46:14 +05:30
Rakesh Emmadi
2054bdc44e
do not allow overloading already tracked functions ( #1563 )
2019-02-14 09:35:18 +05:30
Rakesh Emmadi
cba732d439
support column presets in update mutation ( closes #1449 , closes #1464 ) ( #1473 )
...
Also restricts altering type of columns which are used in presets
2019-02-11 18:15:30 +05:30
Rishichandra Wawhal
61aa39ee35
fix add-column button overflow in modify table ( #1518 )
2019-02-11 16:27:51 +05:30
Rishichandra Wawhal
ca7e2167e5
fix a bug where div keys repetition caused buggy render ( #1578 )
2019-02-11 16:27:26 +05:30
Praveen Durairaj
9c914f5637
add react-static-graphql sample app ( #1569 )
2019-02-08 15:14:35 +05:30