Giter Site home page Giter Site logo

hasura / graphql-engine Goto Github PK

View Code? Open in Web Editor NEW
30.8K 330.0 2.7K 4.86 GB

Blazing fast, instant realtime GraphQL APIs on your DB with fine grained access control, also trigger webhooks on database events.

Home Page: https://hasura.io

License: Apache License 2.0

Go 4.42% HTML 0.11% Makefile 0.15% Haskell 31.57% JavaScript 7.36% CSS 1.02% PLpgSQL 0.13% Shell 0.67% Dockerfile 0.04% Python 3.14% TypeScript 49.99% Java 0.02% Ruby 0.01% SCSS 0.64% TSQL 0.01% Procfile 0.01% Nix 0.05% HCL 0.01% MDX 0.37% C++ 0.29%
graphql graphql-server postgres hasura access-control automatic-api api rest-api graphql-api sql-server

graphql-engine's Issues

tests fail with directory already exist error

test log
go test -ldflags "-X github.com/hasura/graphql-engine/cli/version.BuildVersion=pull83-d1c525d" ./...
Error: getting manifests failed: failed copying files to temp dir: destination already exists
--- FAIL: TestValidate (0.24s)
	cli_test.go:69: execution failed: getting manifests failed: failed copying files to temp dir: destination already exists
FAIL
FAIL	github.com/hasura/graphql-engine/cli	0.253s
?   	github.com/hasura/graphql-engine/cli/assets	[no test files]
?   	github.com/hasura/graphql-engine/cli/cmd/hasura	[no test files]
ok  	github.com/hasura/graphql-engine/cli/commands	3.441s
?   	github.com/hasura/graphql-engine/cli/migrate	[no test files]
?   	github.com/hasura/graphql-engine/cli/migrate/api	[no test files]
?   	github.com/hasura/graphql-engine/cli/migrate/cmd	[no test files]
?   	github.com/hasura/graphql-engine/cli/migrate/database	[no test files]
ok  	github.com/hasura/graphql-engine/cli/migrate/database/hasuradb	0.007s [no tests to run]
?   	github.com/hasura/graphql-engine/cli/migrate/database/testing	[no test files]
?   	github.com/hasura/graphql-engine/cli/migrate/source	[no test files]
ok  	github.com/hasura/graphql-engine/cli/migrate/source/file	0.021s
ok  	github.com/hasura/graphql-engine/cli/migrate/source/stub	0.003s
?   	github.com/hasura/graphql-engine/cli/migrate/source/testing	[no test files]
?   	github.com/hasura/graphql-engine/cli/migrate/testing	[no test files]
ok  	github.com/hasura/graphql-engine/cli/util	1.062s
?   	github.com/hasura/graphql-engine/cli/util/fake	[no test files]
ok  	github.com/hasura/graphql-engine/cli/version	0.005s
Makefile:52: recipe for target 'test' failed
make: *** [test] Error 1
Exited with code 2

build/ci-cd system

jobs

  • build

    • server
    • cli
    • console
  • test

    • server
    • cli
    • console
  • deploy

    • server
    • cli
    • console

workflows

pull requests

  • build
  • test

tagged releases

  • build
  • test
  • deploy

release-* branch updates

  • deploy console

server: console assets versioning

If the server version parses as semver, render the console.html template with assets url as vMAJOR.MINOR, for e.g. https://storage.googleapis.com/hasura-graphql-engine/console/v1.0/main.js

If the version fails to parse as semver, render the version itself.

https://storage.googleapis.com/hasura-graphql-engine/console/{{version}}/main.js

fix order by

When the order by column is not included in the fields, currently 500, internal error is thrown

mark cypress output directories

add them to .gitignore inside console/cypress, also should be marked as artifact to refer later in case a build/test fails

cli: server version handling

CLI should support server versions according to the following scheme:

server cli action
non-semver * exact match
vMAJ.MIN >vMAJ.MIN no action
vMAJ.MIN <vMAJ.MIN prompt cli update
- * render 1.0-dev console

change names "raven" in help text of binary

Running graphql-engine -- --help outputs:

raven - Hasura's datastore

Usage: graphql-engine [--host HOST] [-p|--port PORT] [-u|--user USER]
                      [-p|--password PASSWORD] [--database-url DATABASE-URL]
                      [-d|--dbname NAME] COMMAND

Available options:
  -h,--help                Show this help text
  --host HOST              Postgres server host
  -p,--port PORT           Postgres server port
  -u,--user USER           Database user name
  -p,--password PASSWORD   Password of the user
  --database-url DATABASE-URL
                           Postgres database URL. Example
                           postgres://foo:[email protected]:2345/database
  -d,--dbname NAME         Database name to connect to

Available commands:
  serve                    Start the HTTP api server
  export                   Export raven's schema to stdout
  clean                    Clean raven's metadata to start afresh
  execute                  Execute a query

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.