From 7471807bd8063b37f2c2bcccff114fad38acb2ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dafydd=20Ll=C5=B7r=20Pearson?= Date: Wed, 8 Nov 2023 13:11:52 +0000 Subject: [PATCH 1/2] chore: Setup Camden frontend --- editor.planx.uk/src/airbrake.ts | 1 + editor.planx.uk/src/routes/utils.ts | 1 + .../migrations/1699449006468_setup_camden_domain/down.sql | 3 +++ .../migrations/1699449006468_setup_camden_domain/up.sql | 3 +++ 4 files changed, 8 insertions(+) create mode 100644 hasura.planx.uk/migrations/1699449006468_setup_camden_domain/down.sql create mode 100644 hasura.planx.uk/migrations/1699449006468_setup_camden_domain/up.sql diff --git a/editor.planx.uk/src/airbrake.ts b/editor.planx.uk/src/airbrake.ts index 05e513f1c1..268804ee88 100644 --- a/editor.planx.uk/src/airbrake.ts +++ b/editor.planx.uk/src/airbrake.ts @@ -15,6 +15,7 @@ function getEnvForAllowedHosts(host: string) { case "planningservices.lambeth.gov.uk": case "planningservices.southwark.gov.uk": case "planningservices.buckinghamshire.gov.uk": + case "planningservices.camden.gov.uk": case "editor.planx.uk": return "production"; diff --git a/editor.planx.uk/src/routes/utils.ts b/editor.planx.uk/src/routes/utils.ts index 9822188c8a..9df7f26e2c 100644 --- a/editor.planx.uk/src/routes/utils.ts +++ b/editor.planx.uk/src/routes/utils.ts @@ -56,6 +56,7 @@ const PREVIEW_ONLY_DOMAINS = [ "planningservices.southwark.gov.uk", "planningservices.doncaster.gov.uk", "planningservices.medway.gov.uk", + "planningservices.camden.gov.uk", // XXX: un-comment the next line to test custom domains locally // "localhost", ]; diff --git a/hasura.planx.uk/migrations/1699449006468_setup_camden_domain/down.sql b/hasura.planx.uk/migrations/1699449006468_setup_camden_domain/down.sql new file mode 100644 index 0000000000..329be2733b --- /dev/null +++ b/hasura.planx.uk/migrations/1699449006468_setup_camden_domain/down.sql @@ -0,0 +1,3 @@ +UPDATE teams +SET domain = NULL +WHERE slug = 'camden'; \ No newline at end of file diff --git a/hasura.planx.uk/migrations/1699449006468_setup_camden_domain/up.sql b/hasura.planx.uk/migrations/1699449006468_setup_camden_domain/up.sql new file mode 100644 index 0000000000..eed3cae703 --- /dev/null +++ b/hasura.planx.uk/migrations/1699449006468_setup_camden_domain/up.sql @@ -0,0 +1,3 @@ +UPDATE teams +SET domain = 'planningservices.camden.gov.uk' +WHERE slug = 'camden'; From 2790bf6ad05a75881f4ea0ec16de5459ec3f8d94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dafydd=20Ll=C5=B7r=20Pearson?= Date: Wed, 8 Nov 2023 17:14:47 +0000 Subject: [PATCH 2/2] fix: Drop migration files --- .../migrations/1699449006468_setup_camden_domain/down.sql | 3 --- .../migrations/1699449006468_setup_camden_domain/up.sql | 3 --- 2 files changed, 6 deletions(-) delete mode 100644 hasura.planx.uk/migrations/1699449006468_setup_camden_domain/down.sql delete mode 100644 hasura.planx.uk/migrations/1699449006468_setup_camden_domain/up.sql diff --git a/hasura.planx.uk/migrations/1699449006468_setup_camden_domain/down.sql b/hasura.planx.uk/migrations/1699449006468_setup_camden_domain/down.sql deleted file mode 100644 index 329be2733b..0000000000 --- a/hasura.planx.uk/migrations/1699449006468_setup_camden_domain/down.sql +++ /dev/null @@ -1,3 +0,0 @@ -UPDATE teams -SET domain = NULL -WHERE slug = 'camden'; \ No newline at end of file diff --git a/hasura.planx.uk/migrations/1699449006468_setup_camden_domain/up.sql b/hasura.planx.uk/migrations/1699449006468_setup_camden_domain/up.sql deleted file mode 100644 index eed3cae703..0000000000 --- a/hasura.planx.uk/migrations/1699449006468_setup_camden_domain/up.sql +++ /dev/null @@ -1,3 +0,0 @@ -UPDATE teams -SET domain = 'planningservices.camden.gov.uk' -WHERE slug = 'camden';