Unverified Commit fb14da1f authored by Gary van Woerkens's avatar Gary van Woerkens Committed by GitHub
Browse files

fix: Link local and Github schemas. (#263)

parent aaf91b95
FROM hasura/graphql-engine:v1.3.2.cli-migrations-v2
FROM hasura/graphql-engine:v1.3.3.cli-migrations-v2
ENV HASURA_GRAPHQL_ENABLE_TELEMETRY false
COPY ./migrations /hasura-migrations
COPY ./metadata /hasura-metadata
......@@ -2,274 +2,288 @@
schema: public
name: files
insert_permissions:
- role: user
permission:
check: {}
columns:
- blob_name
- name
- size
- team_slug
- type
- role: user
permission:
check: {}
columns:
- blob_name
- name
- size
- team_slug
- type
select_permissions:
- role: anonymous
permission:
columns:
- blob_name
- created_at
- id
- name
- size
- team_slug
- type
filter: {}
- role: user
permission:
columns:
- size
- blob_name
- name
- team_slug
- type
- created_at
- id
filter: {}
- role: anonymous
permission:
columns:
- blob_name
- created_at
- id
- name
- size
- team_slug
- type
filter: {}
- role: user
permission:
columns:
- size
- blob_name
- name
- team_slug
- type
- created_at
- id
filter: {}
delete_permissions:
- role: user
permission:
filter: {}
- role: user
permission:
filter: {}
- table:
schema: public
name: followups
insert_permissions:
- role: user
permission:
check: {}
columns:
- data
- team_slug
- updated_at
backend_only: false
- role: user
permission:
check: {}
columns:
- data
- team_slug
- updated_at
backend_only: false
select_permissions:
- role: anonymous
permission:
columns:
- created_at
- data
- id
- team_slug
- updated_at
filter: {}
- role: user
permission:
columns:
- created_at
- data
- id
- team_slug
- updated_at
filter: {}
- role: anonymous
permission:
columns:
- created_at
- data
- id
- team_slug
- updated_at
filter: {}
- role: user
permission:
columns:
- created_at
- data
- id
- team_slug
- updated_at
filter: {}
update_permissions:
- role: user
permission:
columns:
- data
- updated_at
filter: {}
check: null
- role: user
permission:
columns:
- data
- updated_at
filter: {}
check: null
- table:
schema: public
name: github_data
insert_permissions:
- role: user
permission:
check: {}
columns:
- admins_and_teams
- role: webhook
permission:
check: {}
columns:
- admins_and_teams
- role: user
permission:
check: {}
columns:
- admins_and_teams
- role: webhook
permission:
check: {}
columns:
- admins_and_teams
select_permissions:
- role: anonymous
permission:
columns:
- id
- admins_and_teams
- created_at
filter: {}
- role: user
permission:
columns:
- admins_and_teams
- created_at
- id
filter: {}
- role: webhook
permission:
columns:
- admins_and_teams
- created_at
- id
filter: {}
- role: anonymous
permission:
columns:
- id
- admins_and_teams
- created_at
filter: {}
- role: user
permission:
columns:
- admins_and_teams
- created_at
- id
filter: {}
- role: webhook
permission:
columns:
- admins_and_teams
- created_at
- id
filter: {}
delete_permissions:
- role: user
permission:
filter: {}
- role: webhook
permission:
filter: {}
- role: user
permission:
filter: {}
- role: webhook
permission:
filter: {}
- table:
schema: public
name: kpis
object_relationships:
- name: post
using:
foreign_key_constraint_on: post_id
- name: post
using:
foreign_key_constraint_on: post_id
insert_permissions:
- role: user
permission:
check: {}
columns:
- name
- post_id
- value
- role: user
permission:
check: {}
columns:
- name
- post_id
- value
select_permissions:
- role: anonymous
permission:
columns:
- id
- created_at
- name
- value
- post_id
filter: {}
limit: 300
- role: user
permission:
columns:
- name
- value
- created_at
- id
- post_id
filter: {}
limit: 300
- role: anonymous
permission:
columns:
- id
- created_at
- name
- value
- post_id
filter: {}
limit: 300
- role: user
permission:
columns:
- name
- value
- created_at
- id
- post_id
filter: {}
limit: 300
update_permissions:
- role: user
permission:
columns:
- name
- value
filter: {}
check: null
- role: user
permission:
columns:
- name
- value
filter: {}
check: null
delete_permissions:
- role: user
permission:
filter: {}
- role: user
permission:
filter: {}
- table:
schema: public
name: posts
array_relationships:
- name: kpis
using:
foreign_key_constraint_on:
column: post_id
table:
schema: public
name: kpis
- name: kpis
using:
foreign_key_constraint_on:
column: post_id
table:
schema: public
name: kpis
remote_relationships:
- definition:
remote_field:
organization:
field:
team:
arguments:
slug: $team_slug
arguments:
login: socialgouv
hasura_fields:
- team_slug
remote_schema: Github
name: team
insert_permissions:
- role: user
permission:
check: {}
columns:
- author
- mood
- needs
- priorities
- team_slug
- term
- role: user
permission:
check: {}
columns:
- author
- mood
- needs
- priorities
- team_slug
- term
select_permissions:
- role: anonymous
permission:
columns:
- team_slug
- created_at
- id
- mood
- priorities
- term
- needs
- author
filter: {}
limit: 50
- role: user
permission:
columns:
- author
- mood
- needs
- priorities
- team_slug
- term
- created_at
- id
filter: {}
limit: 50
- role: anonymous
permission:
columns:
- team_slug
- created_at
- id
- mood
- priorities
- term
- needs
- author
filter: {}
limit: 50
- role: user
permission:
columns:
- author
- mood
- needs
- priorities
- team_slug
- term
- created_at
- id
filter: {}
limit: 50
update_permissions:
- role: user
permission:
columns:
- mood
- needs
- priorities
- term
filter: {}
check: null
- role: user
permission:
columns:
- mood
- needs
- priorities
- term
filter: {}
check: null
delete_permissions:
- role: user
permission:
filter: {}
- role: user
permission:
filter: {}
- table:
schema: public
name: posts_stat
select_permissions:
- role: anonymous
permission:
columns:
- year
- week
- count
filter: {}
limit: 300
- role: user
permission:
columns:
- week
- year
- count
filter: {}
limit: 300
- role: anonymous
permission:
columns:
- year
- week
- count
filter: {}
limit: 300
- role: user
permission:
columns:
- week
- year
- count
filter: {}
limit: 300
- table:
schema: public
name: teams_status
select_permissions:
- role: anonymous
permission:
columns:
- team_slug
- last_post
- kpis_count
- mood
filter: {}
limit: 300
- role: user
permission:
columns:
- kpis_count
- mood
- team_slug
- last_post
filter: {}
limit: 300
- role: anonymous
permission:
columns:
- team_slug
- last_post
- kpis_count
- mood
filter: {}
limit: 300
- role: user
permission:
columns:
- kpis_count
- mood
- team_slug
- last_post
filter: {}
limit: 300
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment