Skip to content

Commit

Permalink
Read from views that filter out restricted metrics (#2716)
Browse files Browse the repository at this point in the history
  • Loading branch information
edugfilho authored Feb 22, 2024
1 parent 94faeaf commit 5a6131d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions glam/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def get_firefox_aggregations_from_bq(bqClient, request, **kwargs):
)
process_filter = "AND process = @process"

table = f"glam_desktop_{channel}_aggregates_v1"
table = f"glam_desktop_{channel}_aggregates"
query = f"""
WITH versions AS (
SELECT
Expand Down Expand Up @@ -443,7 +443,7 @@ def get_glean_aggregations_from_bq(bqClient, request, **kwargs):
os = kwargs.get("os", "*")
aggregation_level = kwargs["aggregationLevel"]

table_id = f"glam_{product}_{channel}_aggregates_v1"
table_id = f"glam_{product}_{channel}_aggregates"

if aggregation_level == "version" and product == "fenix":
build_id_filter = 'AND build_id = "*"'
Expand Down Expand Up @@ -673,7 +673,7 @@ def _get_random_probes(data_source, random_percentage, limit):

if data_source == "BigQuery":
table_name = (
f"`{GLAM_BQ_PROD_PROJECT}.glam_etl.glam_desktop_nightly_aggregates_v1`"
f"`{GLAM_BQ_PROD_PROJECT}.glam_etl.glam_desktop_nightly_aggregates`"
)
with bigquery.Client() as client:
aggs = client.query(
Expand Down

0 comments on commit 5a6131d

Please sign in to comment.