Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
ignore empty teams, enable deploy dev
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvatt committed Dec 5, 2023
1 parent 615af63 commit 23d29b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: build and push
on:
push:
branches:
- 'main'
- '*'
workflow_dispatch:
inputs:
environment:
Expand Down
6 changes: 3 additions & 3 deletions pkg/database/migrations/0078_team_pa_mapping_table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ CREATE TABLE "team_productarea_mapping" (
);

WITH combined_team_pa AS (
SELECT DISTINCT(team_id), product_area_id FROM dataproducts WHERE team_id IS NOT NULL
SELECT DISTINCT(team_id), product_area_id FROM dataproducts WHERE team_id <> ''
UNION
SELECT DISTINCT(team_id), product_area_id FROM quarto_stories WHERE team_id IS NOT NULL
SELECT DISTINCT(team_id), product_area_id FROM quarto_stories WHERE team_id <> ''
UNION
SELECT DISTINCT(team_id), product_area_id FROM stories WHERE team_id IS NOT NULL
SELECT DISTINCT(team_id), product_area_id FROM stories WHERE team_id <> ''
)
INSERT INTO team_productarea_mapping (team_id, product_area_id)
(SELECT team_id, product_area_id FROM combined_team_pa);
Expand Down

0 comments on commit 23d29b7

Please sign in to comment.