Skip to content
Open
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
2025-08-25:
start_date: 2025-03-31
end_date: 2025-07-31
reason: backfill for request in DS-4333
watchers:
- [email protected]
status: Initiate
shredder_mitigation: false
override_retention_limit: false
override_depends_on_past_end_date: false
ignore_date_partition_offset: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
friendly_name: Reported Content
description: |-
Reported organic content

For each report, we collect
submission date
card type
corpus item id
report reason
section
section position
title
topic
url
owners:
- [email protected]
labels:
application: newtab
incremental: true
schedule: daily
dag: bqetl_newtab
owner1: isegall
table_type: event_level
scheduling:
dag_name: bqetl_newtab
bigquery:
time_partitioning:
type: day
field: submission_date
require_partition_filter: true
expiration_days: null
range_partitioning: null
references: {}
require_column_descriptions: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
WITH events AS (
SELECT
DATE(submission_timestamp) AS submission_date,
mozfun.map.get_key(event.extra, 'card_type') AS card_type,
mozfun.map.get_key(event.extra, 'corpus_item_id') AS corpus_item_id,
mozfun.map.get_key(event.extra, 'report_reason') AS report_reason,
mozfun.map.get_key(event.extra, 'section') AS section,
mozfun.map.get_key(event.extra, 'section_position') AS section_position,
mozfun.map.get_key(event.extra, 'title') AS title,
mozfun.map.get_key(event.extra, 'topic') AS topic,
mozfun.map.get_key(event.extra, 'url') AS url
FROM
`moz-fx-data-shared-prod.firefox_desktop.newtab` AS e
CROSS JOIN
UNNEST(e.events) AS event
WHERE
DATE(submission_timestamp) = @submission_date
AND event.category = 'newtab'
AND event.name = 'report_content_submit'
)
SELECT
*
FROM
events
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
fields:
- name: submission_date
type: DATE
mode: NULLABLE
description: Day the event was received in the newtab content ping
- name: card_type
type: STRING
mode: NULLABLE
description: The type of the content card (e.g., "spoc", "organic")
- name: corpus_item_id
type: STRING
mode: NULLABLE
description: content identifier
- name: section
type: STRING
mode: NULLABLE
description: If click belongs in a section, the name of the section
- name: section_position
type: STRING
mode: NULLABLE
description: If click belongs in a section, the numeric position of the section
- name: report_reason
type: STRING
mode: NULLABLE
description: The reason selected by the user when reporting the content
- name: title
type: STRING
mode: NULLABLE
description: Title of the recommendation.
- name: topic
type: STRING
mode: NULLABLE
description: The topic of the recommendation. Like "entertainment".
- name: url
type: STRING
description: URL of the recommendation.
mode: NULLABLE