Skip to content

Instantly share code, notes, and snippets.

View quiiver's full-sized avatar

wil stuckey quiiver

  • mozilla
  • bentonville, ar
View GitHub Profile
#!/bin/bash
set -ux
PROJECT="contextual-services-dev"
JOB_NAME="contextual-services-reporter-$(whoami)"
mvn exec:java -Dexec.mainClass=com.mozilla.telemetry.ContextualServicesReporter -Dexec.args="\
--runner=Dataflow \
--jobName=$JOB_NAME \
@quiiver
quiiver / foo.diff
Last active October 26, 2023 14:01
--- /dev/null
+++ b/firefox_desktop/explores/event_triples.explore.lkml @@ -0,0 +1,13 @@
+include: "../views/event_triples.view.lkml"
+
+explore: event_triples {
+ sql_always_where: ${event_triples.submission_date} >= '2010-01-01' ;;
+ view_name: event_triples
+ description: "Triples of events."
+
+ always_filter: {
import dataclasses
from typing import Any, Dict, List, Optional, Union
from airflow import XComArg
from airflow.hooks.base import BaseHook
from dags.operators.gcp_container_operator import GKEPodOperator
class MerinoJob(GKEPodOperator):
diff --git i/merino/jobs/navigational_suggestions/domain_data_downloader.py w/merino/jobs/navigational_suggestions/domain_data_downloader.py
index 0a54280..0cba417 100644
--- i/merino/jobs/navigational_suggestions/domain_data_downloader.py
+++ w/merino/jobs/navigational_suggestions/domain_data_downloader.py
@@ -15,31 +15,29 @@ with apex_names as (
origin,
suffix
FROM `moz-fx-data-shared-prod.domain_metadata_derived.top_domains_v1`
- -- ToDo: replace the fixed date for submission_date with date_trunc(current_date(), MONTH)
- -- as this table is updated every month but the airflow job is currently not running
diff --git i/sql/moz-fx-data-shared-prod/udf_js/parse_sponsored_interaction/udf.sql w/sql/moz-fx-data-shared-prod/udf_js/parse_sponsored_interaction/udf.sql
index 037f63650..b0b088d2c 100644
--- i/sql/moz-fx-data-shared-prod/udf_js/parse_sponsored_interaction/udf.sql
+++ w/sql/moz-fx-data-shared-prod/udf_js/parse_sponsored_interaction/udf.sql
@@ -42,12 +42,16 @@ AS
.map((kv) => kv.split(/=(.*)/s))
.reduce((acc, [key, value]) => {
key = key.trim("\\n");
+ value = value.trim();
if (key == "submissionTimestamp") {
diff --git i/sql/moz-fx-data-shared-prod/udf_js/parse_sponsored_interaction/udf.sql w/sql/moz-fx-data-shared-prod/udf_js/parse_sponsored_interaction/udf.sql
index 037f63650..431b07ee6 100644
--- i/sql/moz-fx-data-shared-prod/udf_js/parse_sponsored_interaction/udf.sql
+++ w/sql/moz-fx-data-shared-prod/udf_js/parse_sponsored_interaction/udf.sql
@@ -42,12 +42,16 @@ AS
.map((kv) => kv.split(/=(.*)/s))
.reduce((acc, [key, value]) => {
key = key.trim("\\n");
+ value = value.trim();
if (key == "submissionTimestamp") {
diff --git i/browser/components/urlbar/UrlbarProviderQuickSuggest.sys.mjs w/browser/components/urlbar/UrlbarProviderQuickSuggest.sys.mjs
index a8226a637f87d..b9792aa2e695d 100644
--- i/browser/components/urlbar/UrlbarProviderQuickSuggest.sys.mjs
+++ w/browser/components/urlbar/UrlbarProviderQuickSuggest.sys.mjs
@@ -227,6 +227,7 @@ class ProviderQuickSuggest extends UrlbarProvider {
: "firefox-suggest-urlbar-block",
},
source: suggestion.source,
+ qsProvider: suggestion.provider,
requestId: suggestion.request_id,
diff --git i/browser/components/urlbar/UrlbarPrefs.sys.mjs w/browser/components/urlbar/UrlbarPrefs.sys.mjs
index 29df6877b0138..5b9cea35a1db8 100644
--- i/browser/components/urlbar/UrlbarPrefs.sys.mjs
+++ w/browser/components/urlbar/UrlbarPrefs.sys.mjs
@@ -272,6 +272,14 @@ const PREF_URLBAR_DEFAULTS = new Map([
// weather suggestions are turned on.
["suggest.weather", true],
+ // Comma-separated list of `source.providers` combinations, that are used to determine if an exposure event should be fired.
+ // This is a fallback for a nimbus variable and should be set from nimbus experiment configuration.
#!/bin/bash
set -ux
PROJECT="contextual-services-dev"
JOB_NAME="contextual-services-reporter-$(whoami)"
mvn compile exec:java -Dexec.mainClass=com.mozilla.telemetry.ContextualServicesReporter -Dexec.args="\
--runner=Dataflow \
--jobName=$JOB_NAME \
diff --git i/Dockerfile w/Dockerfile
index a77b7e581..27f1f6434 100644
--- i/Dockerfile
+++ w/Dockerfile
@@ -11,8 +11,8 @@ WORKDIR /app
ENV PYTHONUNBUFFERED=1 \
PYTHONFAULTHANDLER=1 \
- PYSETUP_PATH="/opt/pysetup" \
- VENV_PATH="/opt/pysetup/.venv" \