Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Production deploy #2415

Merged
merged 2 commits into from
Nov 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions editor.planx.uk/src/airbrake.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ function getEnvForAllowedHosts(host: string) {
case "planningservices.southwark.gov.uk":
case "planningservices.buckinghamshire.gov.uk":
case "planningservices.camden.gov.uk":
case "planningservices.stalbans.gov.uk":
case "editor.planx.uk":
return "production";

Expand Down
1 change: 1 addition & 0 deletions editor.planx.uk/src/routes/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const PREVIEW_ONLY_DOMAINS = [
"planningservices.doncaster.gov.uk",
"planningservices.medway.gov.uk",
"planningservices.camden.gov.uk",
"planningservices.stalbans.gov.uk",
// XXX: un-comment the next line to test custom domains locally
// "localhost",
];
Expand Down
12 changes: 8 additions & 4 deletions scripts/seed-database/write/flows.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ CREATE TEMPORARY TABLE sync_flows (
created_at timestamptz,
updated_at timestamptz,
settings jsonb,
copied_from uuid
copied_from uuid,
analytics_link text
);

\copy sync_flows FROM '/tmp/flows.csv' WITH (FORMAT csv, DELIMITER ';');
Expand All @@ -22,7 +23,8 @@ INSERT INTO flows (
data,
version,
settings,
copied_from
copied_from,
null as analytics_link,
)
SELECT
id,
Expand All @@ -32,7 +34,8 @@ SELECT
data,
version,
settings,
copied_from
copied_from,
analytics_link
FROM sync_flows
ON CONFLICT (id) DO UPDATE
SET
Expand All @@ -42,7 +45,8 @@ SET
data = EXCLUDED.data,
version = EXCLUDED.version,
settings = EXCLUDED.settings,
copied_from = EXCLUDED.copied_from;
copied_from = EXCLUDED.copied_from,
analytics_link = null;

-- ensure that original flows.version is overwritten to match new operation inserted below, else sharedb will fail
UPDATE flows SET version = 1;
Expand Down
Loading