-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Add Github team slug to
view_repo_ownership
(#831)
* Add migration to update view_repo_ownership - Add team slug - Add repo short name Co-authored-by: Natasha <[email protected]> * Run migrate dev command These changes were automatically created by running ```npm -w cli start migrate -- --stage DEV` Co-authored-by: Natasha <[email protected]> * Update docs to describe Prisma client generation Co-authored-by: Natasha <[email protected]> * Update migration to make column names clearer Co-authored-by: Natasha <[email protected]> Co-authored-by: Akash Askoolum <[email protected]> Co-authored-by: TJ Silver <[email protected]> * Fix TypeScript errors arising from generating new Prisma client Co-authored-by: Natasha <[email protected]> Co-authored-by: Akash Askoolum <[email protected]> Co-authored-by: TJ Silver <[email protected]> --------- Co-authored-by: Natasha <[email protected]> Co-authored-by: Natasha <[email protected]> Co-authored-by: Akash Askoolum <[email protected]> Co-authored-by: TJ Silver <[email protected]>
1 parent
4c25477
commit 38e1700
Showing
8 changed files
with
40 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...ommon/prisma/migrations/20240229142634_add_team_slug_to_view_repo_ownership/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
drop view if exists view_repo_ownership; | ||
|
||
create view view_repo_ownership as | ||
select ght.id as "github_team_id" | ||
, ght.name as "github_team_name" | ||
, ght.slug as "github_team_slug" | ||
, tr.name as "short_repo_name" | ||
, tr.full_name as "full_repo_name" | ||
, tr.role_name | ||
, tr.archived | ||
, gtt.team_name as "galaxies_team" | ||
, gtt.team_contact_email | ||
from github_team_repositories tr | ||
join github_teams ght on tr.team_id = ght.id | ||
left join galaxies_teams_table gtt on ght.slug = gtt.team_primary_github_team | ||
where tr.role_name = 'admin'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters