Commit Graph

17 Commits

Author SHA1 Message Date
nandhithakamal
fee4de93fc ci: do not build debian-based images
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6729
GitOrigin-RevId: 882fd6e000fbca928f04e2b7bf169c3c205a0f0d
2022-11-04 10:05:25 +00:00
Samir Talwar
4c5a00ab71 Update the .gitignore file to reflect the internal one.
As far as I can tell, there's no need to have two .gitignore files. We can just ship the same one.

The OSS .gitignore file was horrendously out of date anyway.

Please take a look at [the current .gitignore file](https://github.com/hasura/graphql-engine-mono/blob/main/.gitignore) to verify you're happy with this change.

(No open-source commit message.)

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6628
GitOrigin-RevId: b47d6a8cfa9affe6c06b8945e6861de5546ad53c
2022-11-02 13:28:59 +00:00
hasura-bot
a886da2f21 server: address recent graphql-ws related bugs
GITHUB_PR_NUMBER: 7730
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/7730

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2685
Co-authored-by: Sameer Kolhar <6604943+kolharsam@users.noreply.github.com>
GitOrigin-RevId: 55bafd4eb1576e95803350f3ba9c7920a21de037
2021-11-04 12:40:02 +00:00
Swann Moreau
c2261e3bb8 [server] ignore hie.yaml at the root of the repo
with #1983, `hie.yaml` goes at the root of the monorepo, but it's not in the gitignore

not sure if any other fixes will be required to mirror stuff to oss though

https://github.com/hasura/graphql-engine-mono/pull/2092

Co-authored-by: awjchen <13142944+awjchen@users.noreply.github.com>
GitOrigin-RevId: b96c0bfd92113d131ed2265fcf03fe08f068f014
2021-08-16 07:32:33 +00:00
A K
c4e812e2fb
docs: add cloud docs header (#5171) 2020-06-22 21:48:04 +05:30
Brandon Simmons
9e0e42444b Add 'venv' to top gitignore, as standard name convention lsfor python venv's in this project 2019-11-14 18:53:33 -05:00
Brandon Simmons
da78a77fb2 In tests/dev.sh: upgrade ruamel to support python 3.7. Closes #3312
Tested on python 3.5 and 3.7

We make light use of pyenv to set an appropriate python version if
installed. We could easily install a correct version too if we wanted
but that seemed invasive.

The newer ruamel was an annoying upgrade but also offers some
improvements that exposed some test suite issues (fixed later).
2019-11-14 18:53:33 -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
Brandon Simmons
bc4456eccc Add local development swiss army knife script scripts/dev.sh
At the moment we can...

...run tests in isolation, generating coverage report:

    $ dev.sh test

You can pass args to pytest as well. e.g. to run a specific test:

    $ dev.sh test -k "test_jsonb_has_all"

Launch a postgres container with useful dev defaults, with PostGIS,
cleaning up afterwards:

    $ dev.sh postgres

Build and launch graphql-engine in dev mode, connecting with a
`postgres` launched above

    $ dev.sh graphql-engine
2019-07-26 01:17:35 -04:00
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
nizar-m
916caf1575 add flag to disable prepared statements (close #1392) (#1396) 2019-01-18 19:50:41 +05:30
Anon Ray
512ee6fb9f adds basic support for remote schemas/schema stitching (#952) 2018-11-23 18:32:46 +05:30
nizar-m
0ffb0478b9 Tests for server with access control, and some more tests (#710)
* 1) Tests for creating permissions
2) Test for constraint_on with GraphQL insert on_conflict

* Run tests with access key and webhook

* Tests for GraphQL query with quoted columns

* Rewrite test-server.sh so that it can be run locally

* JWT based tests

* Tests with various postgres types

* For tests on select queries, run setup only once per class

* Tests for v1 count queries

* Skip teardown for tests that does not modify data

* Workaround for hpc 'parse error when reading .tix file'

* Move GeoJson tests to the new structure

* Basic tests for v1 queries

* Tests for column, table or operator not found error cases on GraphQL queries

* Skip test teardown for mutation tests which does not change database state, even when it returns 200.
2018-10-28 23:57:49 +05:30
Karthikeya Viswanath
64286f69ed add clear access key button (close #486) (#675) 2018-10-08 19:50:33 +05:30
surendran82
17cbdbd970 add github and social media buttons to docs page (#540) 2018-09-26 19:42:55 +05:30
Anon Ray
acd62c3bf8 add community boilerplates and examples (#430) 2018-09-13 12:00:07 +05:30
aswinmprabhu
2cab15ede4 console: more tests (#35) 2018-07-04 18:27:56 +05:30