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

remove redundent views #117

Merged
merged 1 commit into from
Mar 14, 2022
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
24 changes: 0 additions & 24 deletions experimental/terraform/resource_bigquery.tf
Original file line number Diff line number Diff line change
Expand Up @@ -90,18 +90,6 @@ resource "google_bigquery_table" "view_teams_incidents" {
]
}

resource "google_bigquery_table" "view_repository" {
dataset_id = google_bigquery_dataset.four_keys.dataset_id
table_id = "repository"
view {
query = file("../../queries/repository.sql")
use_legacy_sql = false
}
deletion_protection = false
depends_on = [
google_bigquery_table.events_raw
]
}

resource "google_bigquery_table" "view_team" {
dataset_id = google_bigquery_dataset.four_keys.dataset_id
Expand All @@ -115,18 +103,6 @@ resource "google_bigquery_table" "view_team" {
google_bigquery_table.events_raw
]
}
resource "google_bigquery_table" "view_repo_team" {
dataset_id = google_bigquery_dataset.four_keys.dataset_id
table_id = "repo_team"
view {
query = file("../../queries/repo_team.sql")
use_legacy_sql = false
}
deletion_protection = false
depends_on = [
google_bigquery_table.events_raw
]
}

resource "google_bigquery_table" "view_commit" {
dataset_id = google_bigquery_dataset.four_keys.dataset_id
Expand Down
15 changes: 0 additions & 15 deletions queries/repo_team.sql

This file was deleted.

30 changes: 0 additions & 30 deletions queries/repository.sql

This file was deleted.

2 changes: 0 additions & 2 deletions setup/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,6 @@ schedule_bq_queries(){
./schedule.sh --query_file=incidents.sql --table=incidents --project_id=$FOURKEYS_PROJECT
./schedule.sh --query_file=teams_incidents.sql --table=teams_incidents --project_id=$FOURKEYS_PROJECT
./schedule.sh --query_file=team.sql --table=team --project_id=$FOURKEYS_PROJECT
./schedule.sh --query_file=repository.sql --table=repository --project_id=$FOURKEYS_PROJECT
./schedule.sh --query_file=repo_team.sql --table=repo_team --project_id=$FOURKEYS_PROJECT
./schedule.sh --query_file=commit.sql --table=commit --project_id=$FOURKEYS_PROJECT

set +x; echo
Expand Down