Commit Graph

10 Commits

Author SHA1 Message Date
Pierre-Louis Mercereau
1266eb7ae0 yarn run test 2020-05-13 22:05:26 +02:00
Pierre-Louis Mercereau
99afcf0ed1 test: remove puppeteer 2020-05-13 20:29:22 +02:00
Johan Eliasson
40ff9a27e3 V1.2.0 migrations (#201)
* allow for anonymous users to signin

* added AUTH_ANONYMOUS_USERS_ACTIVE

* new migrations and metadata for hasura v1.2.0

* new workflow for applying hasuar migrations and metadata

* update on how to apply migrations and metadata

* fix(auth): new_email must be of citext type in GQL queries

* refactor: use node 12 in all dockerfiles

* fix: use hasura v1.2.0 everywhere

* style: remove console.log

* refactor: allow using multiple sets of migrations, and load mock test migrations when test starts

Co-authored-by: Pierre-Louis Mercereau <24897252+plmercereau@users.noreply.github.com>
2020-05-02 15:04:21 +02:00
Pilou
29b4d913d4 Clean docker and migrate (#189)
* feat: autoload migrations and simplify start script

no need to get the migrations from the migration files from the repo and to mount a specific volume
to the Hasura GE service. By default, when HBP starts, it checks the migrations and installs it if
required. This can be disabled by setting AUTO_MIGRATE to false. This system could be extended to
set AUTO_MIGRATE=v1 so it runs another set of migrations that would transform schema and data from
HBP v1 to HBP v2

* fix: include mock migrations used for testing

* fix: run migrations in a separate node script

* refactor: better general repo structure, and migration that works

* ci: change test mock migration folder in GH actions
2020-04-30 15:10:12 +02:00
Pilou
0c6e38d0d3 refactor: split config into logical blocks, and rename env vars for more significance (#178)
close #160
2020-04-19 21:23:18 +02:00
Pierre-Louis Mercereau
931ccf18eb test: create a mock config that adds a specific migration to hasura, with a name column in users 2020-03-31 22:16:47 +02:00
Pierre-Louis Mercereau
0a34f81fa1 test: activation emails and other improvements 2020-03-23 21:22:49 +01:00
Pierre-Louis Mercereau
726c706b1f chore: start the console from the dev script, and fix dev/test scripts 2020-03-23 13:06:00 +01:00
Pierre-Louis Mercereau
361c338ffc test: full test cycle with docker-compose 2020-03-22 22:42:34 +01:00
Pierre-Louis Mercereau
e9c560fbeb test: refactor jest tests into multiple files, and prepare a docker-compose integration test env
HASURA_GRAPHQL_ENDPOINT env var is renamed to HASURA_ENDPOINT as it conflicts with the
cli-migrations version of the hasura docker file
2020-03-22 14:56:02 +01:00