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

Feature/921 deploy multitenancy on demo #962

Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/demo-deploy-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
types:
- closed
branches: [ main ]
branches: [ multitenancy_main ]

jobs:
update-version:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -22,57 +20,21 @@ values (1, '1'), -- last past quarter
(8, '8'), -- future quarter
(999, 'Backlog');

insert into person (id, email, firstname, lastname, username, version)
values (1, '[email protected]', 'Paco', 'Eggimann', 'peggimann', 1),
(11, '[email protected]', 'Alice', 'Wunderland', 'alice', 1),
(21, '[email protected]', 'Bob', 'Baumeister', 'bob', 1),
(31, '[email protected]', 'Findus', 'Peterson', 'findus', 1),
(41, '[email protected]', 'Paco', 'Egiman', 'paco', 1),
(51, '[email protected]', 'Robin', 'Papierer', 'robin', 1);
insert into person (id, email, firstname, lastname, username, version, is_okr_champion)
values (1, '[email protected]', 'Paco', 'Eggimann', 'peggimann', 1, FALSE),
(11, '[email protected]', 'Alice', 'Wunderland', 'alice', 1, FALSE),
(21, '[email protected]', 'Bob', 'Baumeister', 'bob', 1, FALSE),
(31, '[email protected]', 'Findus', 'Peterson', 'findus', 1, FALSE),
(41, '[email protected]', 'Paco', 'Egiman', 'paco', 1, FALSE),
(51, '[email protected]', 'Robin', 'Papierer', 'robin', 1, FALSE);
(61, '[email protected]', 'gl', 'gl', 'gl', 1, TRUE);

insert into team (id, name, version)
values (4, '/BBT', 1),
(5, 'Puzzle ITC', 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',
Expand Down
Loading