Commit Graph

752 Commits

Author SHA1 Message Date
Shahidh K Muhammed
058fc61a05 update manifests to v1.0.0-alpha41 2019-03-26 10:33:01 +05:30
Vamshi Surabhi
739ff80a51 refactor graphql query execution logic (#1855) 2019-03-25 23:55:25 +05:30
Tirumarai Selvan
36781199d0 breaking: drop id from event_triggers table (fix #1840) (#1857) 2019-03-25 22:40:52 +05:30
Karthik Venkateswaran
d93e3b533c use inflection to suggest relationship names (close #1665) (#1801)
This breaks existing behaviour on how relationship names are generated.
2019-03-25 20:25:24 +05:30
Toan Nguyen
560c31f9fd add a json path argument to query values inside json columns (close #1598) (#1661) 2019-03-25 19:15:35 +05:30
Shahidh K Muhammed
b8700cce70
add spatial predicates for geography columns (close #1674) (#1735)
This PR adds support for PostGIS spatial predicates on geography columns. The predicates are _st_d_within and _st_intersects.
2019-03-25 17:59:52 +05:30
Rikin Kachhia
1ba382193e update console and docs favicons (close #1485) (#1760) 2019-03-25 15:42:56 +05:30
Vamshi Surabhi
d61c90f1b7
validate relationship definitions on startup (#1849) 2019-03-25 14:26:29 +05:30
Shahidh K Muhammed
2274e2748b Revert "reduce server build time on ci (#1836)"
This reverts commit cbd6bb1f15.
2019-03-25 09:49:23 +05:30
Anon Ray
cbd6bb1f15 reduce server build time on ci (#1836)
Due to a misconfiguration in the caching logic, a server was building dependencies on every build. This fixes it to reduce server build time.
2019-03-22 18:11:15 +05:30
Rakesh Emmadi
5bafdce9a3 fix delete mutation returning incorrect data (fix #1794) (fix #1763) (#1827)
From `alpha-40` we've been using a `WHERE` clause to fetch required rows and generate mutation response. This has a few limitations like the requirement of a primary key/unique constraint. This also returns inconsistent data on `delete` mutation as mentioned in #1794. 
Now, we're using `VALUES (..)` (refer [here](https://www.postgresql.org/docs/current/sql-values.html)) expression to form virtual table rows in `SQL` to generate mutation response.

Internal changes:-
- Not to use primary key/unique constraint columns:-
  - Revert back to `ConstraintName` from `TableConstraint` in `TableInfo` type
  - Remove `tcCols` field in `TableConstraint` type
  - Modify `table_info.sql` and `fetchTableMeta` function `SQL`
- A test case to perform `delete` mutation and returning relational objects.
2019-03-22 12:38:42 +05:30
Praveen Durairaj
420dde77dc add auth0 tutorial link to react-apollo-todo landing page (#1819) 2019-03-22 12:28:20 +05:30
Tirumarai Selvan
ed9a5b962a add rest-wrapper remote schema boilerplate (#1826) 2019-03-20 16:15:45 +05:30
Praveen Durairaj
2ee9820c22 update whatsapp clone sample app (#1822) 2019-03-20 15:03:04 +05:30
Praveen Durairaj
42b1d16625 add quasar framework sample app (#1825) 2019-03-20 12:42:50 +05:30
Vamshi Surabhi
ac1749c764 add type, variable information to input value's ast (close #21) (#1809) 2019-03-20 12:01:49 +05:30
Aravind Shankar
8043ddeebf accept a json or yaml file for metadata apply command (close #1698) (#1746) 2019-03-20 10:40:06 +05:30
dsandip
a01ec9b2e2 Change license for core GraphQL Engine to Apache 2.0 (#1821) 2019-03-19 16:23:36 +05:30
Praveen Durairaj
3502dab419 update dockerfile (#1820)
update dockerfile for whatsapp-clone auth-server [skip ci]
2019-03-19 15:47:29 +05:30
Rikin Kachhia
2bc2c40532
handle capital letters and quotes in Raw SQL Track this (#1811) 2019-03-19 14:23:19 +05:30
Rishichandra Wawhal
97ac88edb5 fix relationship editor bug in console (#1814) 2019-03-19 14:22:31 +05:30
Praveen Durairaj
6223852e9d add whatsapp-clone sample app (#1730)
This is a forked version of Urigo's [WhatsApp Clone](https://github.com/Urigo/WhatsApp-Clone-server), integrated with Hasura.
Hasura GraphQL APIs are used in place of custom resolvers. A simple JWT server replaces the original auth server. Image uploads use the same Cloudinary APIs.
[Original React Client](https://github.com/Urigo/WhatsApp-Clone-Client-React) has been updated to match Hasura APIs and typescript definitions have been generated using GraphQL Code Generator.
2019-03-19 12:15:41 +05:30
Rishichandra Wawhal
2777b45335 add onegraph explorer to graphiql online (close #1816 ) (#1817) 2019-03-19 12:14:04 +05:30
Shahidh K Muhammed
a5890623c4
specify needed node version, clarify setup instructions (close #1754) (#1815) 2019-03-19 10:42:50 +05:30
Anon Ray
6e464a1342 pg permission docs: make hasura user owner of system schemas (fix #1697) (#1727)
There was a postgres permission issue in the docs. The hasura user
  needed to be owner of the system schemas (hdb_catalog), otherwise it
  won't be able to table schema changes during version upgrades.
2019-03-19 10:06:40 +05:30
Tirumarai Selvan
8615c306ec add for update skip locked to fetch query (#1798) 2019-03-19 10:00:44 +05:30
Karthik Venkateswaran
ead7e614a0 remove graphiql suggestions on page navigation (#1803) 2019-03-18 23:45:47 +05:30
Rishichandra Wawhal
bcb3fb4fab reload onegraph schema on header change (#1810) 2019-03-18 23:21:42 +05:30
Aravind Shankar
040bef2fd5 add options to create migration from files from sql and server (close #1699) (#1761) 2019-03-18 22:10:04 +05:30
Vamshi Surabhi
24dcefb142
use bytestring builder to represent encoded json (#1800) 2019-03-18 21:52:21 +05:30
Rakesh Emmadi
4970fde767 document unique/primary key constraint requirement for mutation response (#1776) 2019-03-18 13:51:58 +05:30
Rishichandra Wawhal
3d81e02026 add onegraph explorer to console (close #1616) (#1680) 2019-03-18 11:05:35 +05:30
Anon Ray
961f1af528 send error not connection_error on query validation errors (fix #1790) (#1792) 2019-03-17 17:30:54 +05:30
Rikin Kachhia
df8216b576
show migration name section only if This is migration is checked (close #1732) (#1762) 2019-03-16 15:11:59 +05:30
Tirumarai Selvan
a26716cb0a change try it out link for remote schema in console #1788 2019-03-15 14:55:53 +05:30
Rishichandra Wawhal
fb9df2ac94 fix constructor initialization in graphql2chartjs (#1787) 2019-03-15 14:11:33 +05:30
Shahidh K Muhammed
7ef7e99661
npm audit fix for packages in community folder (#1785) 2019-03-15 12:34:29 +05:30
Vamshi Surabhi
c7346fd55a bump stackage to lts 13 and refer to hasura's pg-client-hs (#1747) 2019-03-14 20:25:33 +05:30
Rishichandra Wawhal
a9cd694eff add graphql2chartjs to community tools (#1669) 2019-03-14 14:30:41 +05:30
Tanmai Gopal
75ec309e8a update auth0 jwt guide to add debug instructions (close #1769) (#1771) 2019-03-14 14:10:13 +05:30
Rikin Kachhia
f736ad2b47
fix console raw SQL track this logic (close #1671, #1627) (#1717)
* Track this will be disabled if SQL contains a create function statement
* Track this will be disabled if SQL contains a create table/view statement for a table/view which is already tracked
2019-03-13 15:35:49 +05:30
Rikin Kachhia
6c2f64b68a
update docs (#1748)
* increase roles TOC depth
* update enum docs page
* open external links in docs in new tabs
* update nested object sort docs
2019-03-13 15:34:40 +05:30
Rikin Kachhia
c753426934
add image zoom in docs (close #1483) (#1752) 2019-03-13 15:33:45 +05:30
Praveen Durairaj
36cb6f8b13 remove localStorage usage with auth0 (#1690)
Auth0 best practices recommend to not store tokens in localStorage. [Reference](https://auth0.com/docs/security/store-tokens#don-t-store-tokens-in-local-storage)

Updated code to make use of [checkSession](https://auth0.com/docs/libraries/auth0js/v9#using-checksession-to-acquire-new-tokens) which makes use of cookies.
2019-03-13 12:34:36 +05:30
Shahidh K Muhammed
50b02e950b update manifests to v1.0.0-alpha40 2019-03-12 12:05:46 +05:30
Rakesh Emmadi
e32f5a1fb1 sync metadata cache across multiple instances connected to same db (closes #1182) (#1574)
1. Haskel library `pg-client-hs` has been updated to expose a function that helps listen to `postgres` notifications over a `channel` in this [PR](https://github.com/hasura/pg-client-hs/pull/5)
2. The server records an event in a table `hdb_catalog.hdb_cache_update_event` whenever any `/v1/query` (that changes metadata) is requested. A trigger notifies a `cache update` event via `hasura_cache_update` channel
3. The server runs two concurrent threads namely `listener` and `processor`. The `listener` thread listens to events on `hasura_cache_update` channel and pushed into a `Queue`. The `processor` thread fetches events from that `Queue` and processes it. Thus server rebuilds schema cache from database and updates.
2019-03-12 11:16:27 +05:30
Shahidh K Muhammed
a5b4c5ffd6
change console code-owner to rikinsk 2019-03-08 11:24:09 +05:30
Shahidh K Muhammed
a83adf6503 skip ciignore check for release branches 2019-03-07 21:47:27 +05:30
surendran82
6a4a33f304 add quickstart content to console remote schema and event triggers pages (#1630) 2019-03-07 18:34:43 +05:30
Shahidh K Muhammed
a1089c1ec5
support ciignore for master builds too (#1708) 2019-03-07 17:48:06 +05:30