Commit Graph

1124 Commits

Author SHA1 Message Date
Shahidh K Muhammed
298d5f96c7
change console codeowner 2019-08-28 14:15:39 +05:30
ziga
5b0a790b59 fix typo in cli (#2617) 2019-08-28 13:33:05 +05:30
Kirankumar Ambati
185292cd2a fix typo in console (#2527) 2019-08-28 13:31:40 +05:30
Alain Armand
ce11953038 learn: fix type bug in reasonml tutorial (#2564)
* Error on line 72

That line throws an error:
```ocaml
53 │         let onlineUsers = Array.map(u => <UserItem user=u />, data##on
       line_users);
  54 │
  55 │         let onlineUsersTitle =

  This has type:
    Js.Array.t({. "id": option(string), "user": option({. "name": string})})
      (defined as
      array({. "id": option(string), "user": option({. "name": string})}))
  But somewhere wanted:
    array({.. "name": string})
  The first object type has no method name

>>>> Finish compiling(exit: 1)
```

Works like this:

```ocaml
let online_users = data##online_users->Belt.Array.keepMap(x => x##user);
let onlineUsers = Array.map(u => <UserItem user=u />, online_users);
```
Or however you want to do it.

* Per pull conversation

added piped version, combining functions.
2019-08-27 16:22:09 +05:30
imsyf
eac5681100 learn: fix typos in apollo-android (#2772) 2019-08-27 15:56:38 +05:30
Praveen Durairaj
774cb986b0 learn: update content, add algolia search (close #2308) (#2731) 2019-08-27 15:28:40 +05:30
Marion Schleifer
73d6ac8508 clarify docs on resolvers (close #2716) (#2784) 2019-08-27 14:38:49 +05:30
Tirumarai Selvan
67d3eb3e27 unlock only locked rows during startup (#2778) 2019-08-26 19:41:38 -05:00
Alexis King
6b9b2b67cb
Support representing single-column Postgres tables as GraphQL enums (close #982) (#2672) 2019-08-26 01:05:56 -05:00
Alexis King
78ec906794 server: Include number of enum tables in metrics 2019-08-26 00:54:56 -05:00
Alexis King
c48904551e Document enum tables and enum table metadata APIs 2019-08-26 00:54:56 -05:00
Alexis King
c46ecc72dc Refactor non-table functions out of Hasura.RQL.DDL.Table 2019-08-26 00:54:56 -05:00
Alexis King
d4dcd28baa Slightly rearrange and cleanup Hasura.SQL.Value 2019-08-26 00:54:56 -05:00
Alexis King
00862fcad8 Centralize handling of expected PostgreSQL errors 2019-08-26 00:54:56 -05:00
Alexis King
7fa1452ca0 server: Rename a whole bunch of things
* PGTypeSimple → PGTypeScalar
* PGScalarTyped → WithScalarType
* PGColValue → PGScalarValue
* PGColInfo → PGColumnInfo
* PGRawColInfo → PGRawColumnInfo
* mkScalarSessionVar → mkTypedSessionVar
2019-08-26 00:54:56 -05:00
Alexis King
ed26da59a6 Add support for GraphQL enum types via enum table references
These changes also add a new type, PGColumnType, between PGColInfo and
PGScalarType, and they process PGRawColumnType values into PGColumnType
values during schema cache generation.
2019-08-26 00:54:56 -05:00
Alexis King
86663f9af7 Rename PGColType to PGScalarType 2019-08-26 00:54:56 -05:00
Alexis King
d1179f7f98 Don’t use Show for converting PGColTypes to SQL 2019-08-26 00:54:56 -05:00
Alexis King
9be6f706e6 Refactor GCtx to split query and mutation root operations
This mostly simplifies the RootFlds type to make it clearer what it’s
used for, but it has the convenient side-effect of preventing some
“impossible” cases using the type system.
2019-08-26 00:54:56 -05:00
José Lorenzo Rodríguez
c7a2320456 Implemented graceful shutdown for HTTP requests (close #2698) (#2717)
* Listens for SIGTERM as the termination signal
* Stops accepting new connections once the signal is received
* Waits for all connections to be drained, before shutting down
* Forcefully kills all pending connections after 30 seconds

Currently this does not send a close message to websocket clients, I'd
like to submit that change as a separate pull request, but at least this
solve my biggest concern which is not getting confirmation for mutations
while restarting the server.
2019-08-26 00:31:27 -05:00
Rikin Kachhia
4bdf965d87
fix table permissions page UX glitches (#2763) 2019-08-23 18:04:41 +05:30
Shahidh K Muhammed
b8b71c1000 update manifests to v1.0.0-beta.5 2019-08-23 14:57:40 +05:30
Arun Kumar Mohan
b4ff745162 fix markdown rendering (learn.hasura.io) (#2746) 2019-08-23 14:35:27 +05:30
Vitalii Tverdokhlib
ed96197dab use readiness probeon k8s manifests (#2752)
according to https://github.com/hasura/graphql-engine/issues/1532
2019-08-23 14:32:03 +05:30
Tirumarai Selvan
98784212e2 allow configuring timeout for remote schema calls (close #2501) (#2753) 2019-08-23 14:27:19 +05:30
Tomasz Skowroński
669bb40e72 add more boilerplates for serverless triggers (#748)
#431
2019-08-23 11:02:22 +05:30
Rakesh Emmadi
8ac78fdaec accept null values in order_by input field (fix #2754) (#2755) 2019-08-22 03:14:27 -05:00
Rikin Kachhia
db0578843e
update console error pages image (#2762) 2019-08-21 16:54:12 +05:30
Rikin Kachhia
d511e2006f
fix auth permission example table syntax (#2756) 2019-08-21 14:04:31 +05:30
Rikin Kachhia
03ea997c3b
add schema permissions summary page + update table permissions page (#2693)
Schema permissions summary page

* show summary of access control for all roles across tables and actions
* allow copy of permissions from one role to others

Table permissions page

* highlight actions and roles as headers in table
* move bulk action selector to end of row
* scroll to edit/bulk section when opened
* pre-select table and action in clone section
2019-08-20 19:12:15 +05:30
Marion Schleifer
2c108daef8 update docs footer + sample apps content (#2734) 2019-08-20 18:09:57 +05:30
Praveen Durairaj
1418b43c52 community: explorer, voyager graphiql-online (close #2128,#2129) (#2737) 2019-08-20 11:30:42 +05:30
Tirumarai Selvan
7009e77c98 get all Set-Cookie headers (fix #2688) (#2739) 2019-08-19 22:24:13 -05:00
Tirumarai Selvan
46f2ecaa65 don't send the request to the client on HTTP throw (#2738) 2019-08-19 21:18:04 -05:00
Rikin Kachhia
47057989af
set console asset version as build timestamp (#2742) 2019-08-19 14:40:41 +05:30
Rakesh Emmadi
3527b085fd allow altering type of a column whose permissions defined only with session variables (close #2070) (#2683)
* allow altering type of a column iff session vars are defined in permissions
* use a sum type to define dependency reason
* set jwt expiry test's expiry time to 4 seconds
* derive Data instance for necessary types to simplify 'hasStaticExp'
2019-08-16 16:35:22 -05:00
Marion Schleifer
b2b337552d update contributing guide (#2706) 2019-08-14 17:38:27 +00:00
Praveen Durairaj
230d8efb40 community: update paths for sample-apps (close #1915) (#2723) 2019-08-14 07:05:44 +00:00
Praveen Durairaj
8af9e33b1a community: update todo-auth0 sample app (close #1290) (#2725) 2019-08-14 07:04:56 +00:00
Marion Schleifer
ffbdabf2d0 open secure-your-endpoint docs in new tab from console (#2709) 2019-08-13 12:09:47 +05:30
Alexis King
2aa66ca6f5 Fix websocket race condition in server test suite (fix #2710) (#2712) 2019-08-12 15:14:29 +05:30
José Lorenzo Rodríguez
e952495235 Use SIGINT as the stopsignal in the dockerfile (#2685)
Haskell expects the signal to be `SIGINT`, but the docker default is
`SIGTERM`.
2019-08-11 01:23:06 -05:00
Charlie Saunders
e90866752e fix some typos in cli (#2708)
* fix typo in manual CLI update message

* fix a typo that was indicated in #2689
2019-08-10 17:13:45 +00:00
Shahidh K Muhammed
3042fd175e
build latest.cli-migrations image on release (close #2591) (#2707) 2019-08-10 12:39:27 +00:00
Apoorv Vardhan
9e18f0d297 community: learn: add angular-graphql tutorial (#2624) 2019-08-10 10:17:51 +00:00
Rikin Kachhia
18822ded9a
update styles of data tables in console for better readability (#2629)
* add row striping
* reduce row vertical padding
* column widths based on content
* table width based on content
* handle display of data represented as objects (e.g. jsonb, geaography)
* display data with correct formatting in row expanded mode
* show pagination section even if numRows < page size
* hide filter/sort/pagination sections for object relationship
2019-08-09 16:27:44 +05:30
Rikin Kachhia
c79385864d
escape PG comment strings in console to allow quotes (close #2641) (#2676) 2019-08-09 16:21:05 +05:30
AlbertGao
2d4f91472f fix error in migration docs (#2691) 2019-08-09 14:53:38 +05:30
Vamshi Surabhi
52bf885f14
refactor schema.hs into multiple modules (#2661)
Mostly moving around things across modules. No change in
functionality.
2019-08-09 14:49:17 +05:30
Kaushlendra Pratap
0b9fdad806 add missing -- prefix from server flags in docs (close #2646) (#2697) 2019-08-09 14:43:37 +05:30