From 360d13a7c3e012c86a515bb0b28d1812c10ee005 Mon Sep 17 00:00:00 2001 From: D Chua Date: Mon, 9 Oct 2023 17:34:33 +0100 Subject: [PATCH] Add Google Cloud BigQuery gem As part of the UA to GA4 migration, we will have to use BigQuery to get some of our metrics as they are not supported in GA4's API. --- Gemfile | 1 + Gemfile.lock | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/Gemfile b/Gemfile index 0fd95c758..21a197e69 100644 --- a/Gemfile +++ b/Gemfile @@ -15,6 +15,7 @@ gem "activerecord-import" gem "awesome_print" gem "bootsnap", require: false gem "google-api-client" +gem "google-cloud-bigquery" gem "govuk_message_queue_consumer" gem "httparty" gem "jbuilder" diff --git a/Gemfile.lock b/Gemfile.lock index f757d9291..23ec64c50 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -156,6 +156,8 @@ GEM google-api-client (0.53.0) google-apis-core (~> 0.1) google-apis-generator (~> 0.1) + google-apis-bigquery_v2 (0.33.0) + google-apis-core (>= 0.4, < 2.a) google-apis-core (0.4.2) addressable (~> 2.5, >= 2.5.1) googleauth (>= 0.16.2, < 2.a) @@ -173,6 +175,18 @@ GEM google-apis-core (>= 0.4, < 2.a) google-apis-discovery_v1 (~> 0.5) thor (>= 0.20, < 2.a) + google-cloud-bigquery (1.45.0) + concurrent-ruby (~> 1.0) + google-apis-bigquery_v2 (~> 0.1) + google-cloud-core (~> 1.6) + googleauth (>= 0.16.2, < 2.a) + mini_mime (~> 1.0) + google-cloud-core (1.6.0) + google-cloud-env (~> 1.0) + google-cloud-errors (~> 1.0) + google-cloud-env (1.6.0) + faraday (>= 0.17.3, < 3.0) + google-cloud-errors (1.3.1) google-protobuf (3.24.4) googleapis-common-protos-types (1.9.0) google-protobuf (~> 3.18) @@ -758,6 +772,7 @@ DEPENDENCIES gds-api-adapters gds-sso google-api-client + google-cloud-bigquery govuk_app_config govuk_message_queue_consumer govuk_schemas