From e75fcca3e72220046ae84658cd912f8860eccdc1 Mon Sep 17 00:00:00 2001 From: e560704 Date: Thu, 4 Jul 2024 21:57:40 +0200 Subject: [PATCH] okr #921: deploy multitenancy_main branch to demo + update initialData Script for new structure --- .github/workflows/demo-deploy-action.yml | 2 +- .../afterMigrate__0_initialData.sql | 54 +++---------------- 2 files changed, 9 insertions(+), 47 deletions(-) diff --git a/.github/workflows/demo-deploy-action.yml b/.github/workflows/demo-deploy-action.yml index fea5d780d6..1a56226139 100644 --- a/.github/workflows/demo-deploy-action.yml +++ b/.github/workflows/demo-deploy-action.yml @@ -4,7 +4,7 @@ on: pull_request: types: - closed - branches: [ main ] + branches: [ multitenancy_main ] jobs: update-version: diff --git a/backend/src/main/resources/db/data-migration-demo/afterMigrate__0_initialData.sql b/backend/src/main/resources/db/data-migration-demo/afterMigrate__0_initialData.sql index 4ca65b6503..111c41c044 100644 --- a/backend/src/main/resources/db/data-migration-demo/afterMigrate__0_initialData.sql +++ b/backend/src/main/resources/db/data-migration-demo/afterMigrate__0_initialData.sql @@ -6,8 +6,6 @@ truncate table completed cascade; truncate table objective cascade; truncate table person cascade; truncate table quarter cascade; -truncate table team_organisation; -truncate table organisation cascade; truncate table team cascade; -- fill quarter with dummy labels. correct labels are updated via callback sql scripts @@ -22,13 +20,14 @@ values (1, '1'), -- last past quarter (8, '8'), -- future quarter (999, 'Backlog'); -insert into person (id, email, firstname, lastname, username, version) -values (1, 'peggimann@puzzle.ch', 'Paco', 'Eggimann', 'peggimann', 1), - (11, 'wunderland@puzzle.ch', 'Alice', 'Wunderland', 'alice', 1), - (21, 'baumeister@puzzle.ch', 'Bob', 'Baumeister', 'bob', 1), - (31, 'peterson@puzzle.ch', 'Findus', 'Peterson', 'findus', 1), - (41, 'egiman@puzzle.ch', 'Paco', 'Egiman', 'paco', 1), - (51, 'papierer@puzzle.ch', 'Robin', 'Papierer', 'robin', 1); +insert into person (id, email, firstname, lastname, username, version, is_okr_champion) +values (1, 'peggimann@puzzle.ch', 'Paco', 'Eggimann', 'peggimann', 1, FALSE), + (11, 'wunderland@puzzle.ch', 'Alice', 'Wunderland', 'alice', 1, FALSE), + (21, 'baumeister@puzzle.ch', 'Bob', 'Baumeister', 'bob', 1, FALSE), + (31, 'peterson@puzzle.ch', 'Findus', 'Peterson', 'findus', 1, FALSE), + (41, 'egiman@puzzle.ch', 'Paco', 'Egiman', 'paco', 1, FALSE), + (51, 'papierer@puzzle.ch', 'Robin', 'Papierer', 'robin', 1, FALSE); + (61, 'gl@gl.com', 'gl', 'gl', 'gl', 1, TRUE); insert into team (id, name, version) values (4, '/BBT', 1), @@ -36,43 +35,6 @@ values (4, '/BBT', 1), (6, 'LoremIpsum', 1), (8, 'we are cube.³', 1); -insert into organisation (id, org_name, state, version) -values (1, 'org_bl', 'ACTIVE', 1), - (2, 'org_de', 'ACTIVE', 1), - (3, 'org_gl', 'ACTIVE', 1), - (4, 'org_pl', 'ACTIVE', 1), - (5, 'org_pv', 'ACTIVE', 1), - (6, 'org_ux', 'ACTIVE', 1), - (7, 'org_zh', 'ACTIVE', 1), - (8, 'org_sys', 'ACTIVE', 1), - (9, 'org_azubi', 'ACTIVE', 1), - (10, 'org_de_gl', 'ACTIVE', 1), - (11, 'org_de_gs', 'ACTIVE', 1), - (12, 'org_devtre', 'ACTIVE', 1), - (13, 'org_racoon', 'ACTIVE', 1), - (14, 'org_tqm_qm', 'ACTIVE', 1), - (15, 'org_devruby', 'ACTIVE', 1), - (16, 'org_midcicd', 'ACTIVE', 1), - (17, 'org_verkauf', 'ACTIVE', 1), - (18, 'org_finanzen', 'ACTIVE', 1), - (19, 'org_mobility', 'ACTIVE', 1), - (20, 'org_personal', 'ACTIVE', 1), - (21, 'org_security', 'ACTIVE', 1), - (22, 'org_marketing', 'ACTIVE', 1), - (23, 'org_openshift', 'ACTIVE', 1), - (24, 'org_ausbildung', 'ACTIVE', 1), - (25, 'org_backoffice', 'ACTIVE', 1), - (26, 'org_branch_sec', 'ACTIVE', 1), - (27, 'org_standort_zh', 'ACTIVE', 1), - (28, 'org_midcontainer', 'ACTIVE', 1); - -insert into team_organisation (team_id, organisation_id) -values (5, 3), - (8, 6), - (4, 9), - (6, 19), - (8, 19); - insert into objective (id, description, modified_on, title, created_by_id, quarter_id, team_id, state, modified_by_id, created_on, version) values (4, '', '2023-07-25 08:17:51.309958', 'Build a company culture that kills the competition.', 1, 7, 5, 'ONGOING',