From a2f56b65aee1e3dc0ddb15c52cdb2745da68cd31 Mon Sep 17 00:00:00 2001 From: Rafael Solorzano <61289255+rafasdc@users.noreply.github.com> Date: Mon, 21 Oct 2024 10:29:10 -0700 Subject: [PATCH 1/2] fix: add missing access to app template 9 table --- ..._template_9_data_001_add_missing_roles.sql | 27 +++++++++++++++++++ ..._template_9_data_001_add_missing_roles.sql | 7 +++++ db/sqitch.plan | 1 + 3 files changed, 35 insertions(+) create mode 100644 db/deploy/tables/application_form_template_9_data_001_add_missing_roles.sql create mode 100644 db/revert/tables/application_form_template_9_data_001_add_missing_roles.sql diff --git a/db/deploy/tables/application_form_template_9_data_001_add_missing_roles.sql b/db/deploy/tables/application_form_template_9_data_001_add_missing_roles.sql new file mode 100644 index 000000000..a28f76d2d --- /dev/null +++ b/db/deploy/tables/application_form_template_9_data_001_add_missing_roles.sql @@ -0,0 +1,27 @@ +-- Deploy ccbc:tables/application_form_template_9_data_001_add_missing_roles to pg + +BEGIN; + +do +$grant$ +begin + +-- Grant cbc_admin permissions +perform ccbc_private.grant_permissions('select', 'application_form_template_9_data', 'cbc_admin'); +perform ccbc_private.grant_permissions('insert', 'application_form_template_9_data', 'cbc_admin'); +perform ccbc_private.grant_permissions('update', 'application_form_template_9_data', 'cbc_admin'); + +-- Grant analyst account permissions +perform ccbc_private.grant_permissions('select', 'application_form_template_9_data', 'ccbc_analyst'); +perform ccbc_private.grant_permissions('insert', 'application_form_template_9_data', 'ccbc_analyst'); +perform ccbc_private.grant_permissions('update', 'application_form_template_9_data', 'ccbc_analyst'); + +-- Grant super_admin account permissions +perform ccbc_private.grant_permissions('select', 'application_form_template_9_data', 'super_admin'); +perform ccbc_private.grant_permissions('insert', 'application_form_template_9_data', 'super_admin'); +perform ccbc_private.grant_permissions('update', 'application_form_template_9_data', 'super_admin'); + +end +$grant$; + +COMMIT; diff --git a/db/revert/tables/application_form_template_9_data_001_add_missing_roles.sql b/db/revert/tables/application_form_template_9_data_001_add_missing_roles.sql new file mode 100644 index 000000000..04735abaf --- /dev/null +++ b/db/revert/tables/application_form_template_9_data_001_add_missing_roles.sql @@ -0,0 +1,7 @@ +-- Revert ccbc:tables/application_form_template_9_data_001_add_missing_roles from pg + +BEGIN; + +-- XXX Add DDLs here. + +COMMIT; diff --git a/db/sqitch.plan b/db/sqitch.plan index e5e0a0156..cd569950f 100644 --- a/db/sqitch.plan +++ b/db/sqitch.plan @@ -725,3 +725,4 @@ grant_read_access_to_service_account 2024-10-04T18:45:20Z Anthony Bushara # release v1.204.0 @1.205.0 2024-11-05T20:57:02Z CCBC Service Account # release v1.205.0 @1.206.0 2024-11-07T16:34:36Z CCBC Service Account # release v1.206.0 +tables/application_form_template_9_data_001_add_missing_roles 2024-10-21T17:22:37Z Rafael Solorzano <61289255+rafasdc@users.noreply.github.com> # grant missing roles access to application template 9 table From 770edb32cb5112c7e35668415068b27bafe81467 Mon Sep 17 00:00:00 2001 From: CCBC Service Account <116113628+ccbc-service-account@users.noreply.github.com> Date: Thu, 7 Nov 2024 22:41:05 +0000 Subject: [PATCH 2/2] chore: release v1.206.1 --- CHANGELOG.md | 6 ++++++ db/sqitch.plan | 1 + package.json | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9264a6d1d..3f1dd5cac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## [1.206.1](https://github.com/bcgov/CONN-CCBC-portal/compare/v1.206.0...v1.206.1) (2024-11-07) + +### Bug Fixes + +- add missing access to app template 9 table ([a2f56b6](https://github.com/bcgov/CONN-CCBC-portal/commit/a2f56b65aee1e3dc0ddb15c52cdb2745da68cd31)) + # [1.206.0](https://github.com/bcgov/CONN-CCBC-portal/compare/v1.205.0...v1.206.0) (2024-11-07) ### Features diff --git a/db/sqitch.plan b/db/sqitch.plan index cd569950f..aab728ae7 100644 --- a/db/sqitch.plan +++ b/db/sqitch.plan @@ -726,3 +726,4 @@ grant_read_access_to_service_account 2024-10-04T18:45:20Z Anthony Bushara # release v1.205.0 @1.206.0 2024-11-07T16:34:36Z CCBC Service Account # release v1.206.0 tables/application_form_template_9_data_001_add_missing_roles 2024-10-21T17:22:37Z Rafael Solorzano <61289255+rafasdc@users.noreply.github.com> # grant missing roles access to application template 9 table +@1.206.1 2024-11-07T22:41:03Z CCBC Service Account # release v1.206.1 diff --git a/package.json b/package.json index 640a4ec8e..96d731ae1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "CONN-CCBC-portal", - "version": "1.206.0", + "version": "1.206.1", "main": "index.js", "repository": "https://github.com/bcgov/CONN-CCBC-portal.git", "author": "Romer, Meherzad CITZ:EX ",