Skip to content

Commit

Permalink
fix: hasura
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgfr committed Aug 19, 2024
1 parent 7cefecf commit abd4599
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,23 @@ array_relationships:
remote_table:
name: answer_statuses
schema: contribution
insert_permissions:
- role: super
permission:
check: {}
columns:
- agreement_id
- description
- display_date
- cdtn_id
- content
- content_service_public_cdtn_id
- content_type
- message_block_generic_no_CDT
- updated_at
- id
- question_id
comment: ""
select_permissions:
- role: super
permission:
Expand All @@ -82,6 +99,7 @@ select_permissions:
- content_service_public_cdtn_id
- content_type
- description
- display_date
- id
- message_block_generic_no_CDT
- question_id
Expand All @@ -92,13 +110,23 @@ update_permissions:
- role: super
permission:
columns:
- agreement_id
- description
- display_date
- cdtn_id
- content
- content_service_public_cdtn_id
- content_type
- description
- message_block_generic_no_CDT
- updated_at
- id
- question_id
filter: {}
check: null
check: {}
set:
updated_at: now()
delete_permissions:
- role: super
permission:
filter: {}
comment: ""
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ configuration:
column_config:
dismissal_process:
custom_name: dismissalProcess
display_date:
custom_name: displayDate
meta_description:
custom_name: metaDescription
meta_title:
Expand All @@ -17,6 +19,7 @@ configuration:
custom_name: updatedAt
custom_column_names:
dismissal_process: dismissalProcess
display_date: displayDate
meta_description: metaDescription
meta_title: metaTitle
reference_label: referenceLabel
Expand Down Expand Up @@ -45,6 +48,7 @@ insert_permissions:
columns:
- description
- dismissal_process
- display_date
- id
- intro
- meta_description
Expand All @@ -59,6 +63,7 @@ insert_permissions:
columns:
- description
- dismissal_process
- display_date
- id
- intro
- meta_description
Expand All @@ -73,6 +78,7 @@ select_permissions:
columns:
- description
- dismissal_process
- display_date
- id
- intro
- meta_description
Expand All @@ -88,6 +94,7 @@ select_permissions:
columns:
- description
- dismissal_process
- display_date
- id
- intro
- meta_description
Expand All @@ -104,6 +111,7 @@ update_permissions:
columns:
- description
- dismissal_process
- display_date
- id
- intro
- meta_description
Expand Down
28 changes: 17 additions & 11 deletions targets/hasura/metadata/databases/default/tables/model_models.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ configuration:
column_config:
created_at:
custom_name: createdAt
display_date:
custom_name: displayDate
file_id:
custom_name: fileId
meta_description:
Expand All @@ -17,6 +19,7 @@ configuration:
custom_name: updatedAt
custom_column_names:
created_at: createdAt
display_date: displayDate
file_id: fileId
meta_description: metaDescription
meta_title: metaTitle
Expand Down Expand Up @@ -47,44 +50,47 @@ insert_permissions:
permission:
check: {}
columns:
- id
- created_at
- updated_at
- title
- display_date
- file_id
- id
- intro
- meta_title
- meta_description
- type
- meta_title
- preview_html
- file_id
- title
- type
- updated_at
select_permissions:
- role: super
permission:
columns:
- created_at
- display_date
- file_id
- id
- intro
- meta_description
- meta_title
- preview_html
- title
- type
- created_at
- updated_at
- file_id
- id
filter: {}
update_permissions:
- role: super
permission:
columns:
- created_at
- intro
- display_date
- file_id
- intro
- meta_description
- meta_title
- preview_html
- title
- type
filter: {}
check: null
check: {}
set:
updated_at: now()

0 comments on commit abd4599

Please sign in to comment.