Граф коммитов

180 Коммитов

Автор SHA1 Сообщение Дата
Curtis Morales 8f474c79a4
Hardcode normalized_os as iOS in event_aggregates (#5725) 2024-06-05 10:40:14 -04:00
Preethi Issac 3691aff7c9
RS_1233 add is_enterprise_policies to search_clients_daily_v8 and search_aggregates (#5714)
* RS_1233_Add payload.processes.parent.scalars.policies_is_enterprise to search aggregates and search clients daily table

Add ingpayload.processes.parent.scalars.policies_is_enterprise to
- search_derived/search_aggregates
- search_derived/searc_ clients_daily_v8

* Update query.sql

* update to schema.yaml

* Fix CI issues

* Fix the tests

Fix tests issue

---------

Co-authored-by: Alekhya Kommasani <akommasani@mozilla.com>
Co-authored-by: Alekhya <88394696+alekhyamoz@users.noreply.github.com>
2024-06-05 10:21:18 -04:00
Eduardo Filho 076a77947a
fix(geckoview_version): Replace geckoview.version field with valid gecko.version (#5736) 2024-06-04 18:00:11 -04:00
Preethi Issac 3e639762de
adding search with ads organic to mobile_search_aggregates and search_revenue_levers_daily table (#5682)
* updates to mobile_search_aggregates and search_revenue_levers_table

adding search_with_ads_organic to mobile_search_aggregates and search_revenue_levers_table

* Update query.sql

* Fix schema.yaml and test files

* Fix CI issue

Fix CI issue

---------

Co-authored-by: Alekhya Kommasani <akommasani@mozilla.com>
Co-authored-by: Alekhya <88394696+alekhyamoz@users.noreply.github.com>
2024-06-04 10:54:55 -04:00
Anna Scholtz 1857068763
Fix mobile_search_clients_daily (#5702)
* Update mobile_search_clients_daily tempate

* Update mobile_search_clients_daily tests
2024-06-03 10:10:22 -04:00
Anna Scholtz 5ed5d2b396
Revert "adding search_with_ads_organic to mobile_clients_daily table (#5683)" (#5701)
This reverts commit 71bbaa2ac8.
2024-05-31 10:05:51 -07:00
Preethi Issac 71bbaa2ac8
adding search_with_ads_organic to mobile_clients_daily table (#5683)
* adding search_with_ads_organic to mobile_clients_daily table

* Fix the CI tests

---------

Co-authored-by: Alekhya Kommasani <akommasani@mozilla.com>
Co-authored-by: Alekhya <88394696+alekhyamoz@users.noreply.github.com>
2024-05-30 14:19:17 -04:00
kik-kik 11e7ca30a9
feat: update firefox_android_clients_v1 to pull distribution_id only from the baseline ping (#5685)
* feat: update firefox_android_clients_v1 to pull distribution_id only from the baseline ping

* feat: update firefox_android_clients_v1 baseline test schema to include distribution_id

* fix: resolve distribution_id not in baseline error

---------

Co-authored-by: Katie Windau <153020235+kwindau@users.noreply.github.com>
2024-05-30 12:43:53 -05:00
Chelsey Beck 6cfcbb6efc
removing acoustic last engaged timestamp from models and tests (#5678)
* removing acoustic last engaged timestamp

* removing suppression list model and tests

* removing dependency until frequency is increased

* formatting

* formatting
2024-05-30 08:12:07 -07:00
Alekhya 53ebe05a13
Revert "RS-788 Add support for organic searches with ads to the mobile search…" (#5676)
This reverts commit 9814059423.
2024-05-29 19:29:45 -04:00
Preethi Issac 9814059423
RS-788 Add support for organic searches with ads to the mobile search counts tables (#5598)
* adding organic searches with ads to this table

* updating mobile_search_aggregates table with search_with_ads_organic column

* updating the search revenue lever table

- include search_with_ads_organic columns for Bing, Google and DDG

* Fix CI issues

* Fix tests CI failure

* fix tests

* Fix test sql failure

* Update query.sql

reverting back to original code for search_revenue_levers table

---------

Co-authored-by: Alekhya Kommasani <akommasani@mozilla.com>
Co-authored-by: Alekhya <88394696+alekhyamoz@users.noreply.github.com>
2024-05-29 13:29:50 -04:00
kik-kik f6ea4f7be7
fix: baseline_clients_daily to only grab distribution_id for fenix app (#5614) 2024-05-21 12:49:04 +02:00
kik-kik b4602805d9
feat: add geo.subdivision1 to baseline_clients_daily_v1 query tempalte (glean_usage generator) (#5611) 2024-05-17 23:45:33 +02:00
Leli 7e6a2daf8b
DENG-3755 fix braze changed users to include new users (#5582)
Co-authored-by: Chelsey Beck <64881557+chelseybeck@users.noreply.github.com>
2024-05-15 09:58:47 -07:00
Curtis Morales 738de5198c
AD-310 Add mobile suggest to event_aggregates and event_aggregates_suggest (#5565)
* Add mobile suggest to event_aggregates and event_aggregates_suggest

* Rename test files

* Update expected values

* Fix tests

* Omit null values from expect.yaml
2024-05-13 16:49:12 -04:00
Eduardo Filho 8bd936e1bc
fix(glam) add fully qualified table names in legacy telemetry queries (#5559)
* fix(glam) fix table names to fully qualified

* Fix column order for glean probe counts

* Add fully qualified table name to tests
2024-05-13 14:58:37 -04:00
Leli fa99d606a9
fix DENG-3472 marketing suppression list handle malformed emails (#5563)
* fix DENG-3472 marketing suppression list handle malformed emails

* remove tests
2024-05-13 17:17:28 +02:00
Leli 982698b991
Deng-3472 sync suppression list to mofo (#5503)
* status quo

* DENG-3472 sync suppression list back to campaign monitor

* remove hard coded date
2024-05-10 21:30:43 +02:00
Chelsey Beck 12e8b30788
DENG 3182 braze ingestion fixes (#5552)
* updating source table and adding column

* updating tests to add new field

* changing to use updated_at

* formatting

---------

Co-authored-by: Leli <33942105+lelilia@users.noreply.github.com>
2024-05-10 10:17:23 -07:00
Leli 62389f3aa5
DENG-3703 Update marketing main suppression list (#5544)
* DENG-3703 Update marketing main suppression list

* update tests
2024-05-09 18:49:19 -07:00
Leli b968a9c517
DENG-3701 prune acoustic suppression list (#5542)
* DENG-3701 prune acoustic suppression list

* update tests
2024-05-10 00:28:07 +02:00
Leli 3749240075
Deng 3658 braze unit test users (#5516)
* changing structure of payload and structuring timestamps

* updating time filter and standardizing

* adding changed subscriptions model and updating time filter

* moving udf to separate pr and changing source table

* adding comments and moving max to timestamps

* filtering out mofo users and fxa_account_deleted true"

* updating filter on tables to pull most recent and adding acoustic event data

* formatting and refactoring

* formatting

* updating format and adding comments

* removing time filter

* fix alias

* reverting waitlists code back to original

* add lower() to waitlists platform and source

* ading inner join to users

* fix test_braze_subscriptions

* fix test_braze_waitlists

* DENG-3658 braze add unit test for users_v1

* add more tests

* only show users with active braze subscriptions

* reformat query

---------

Co-authored-by: Chelsey Beck <cbeck@mozilla.com>
Co-authored-by: Chelsey Beck <64881557+chelseybeck@users.noreply.github.com>
2024-05-08 10:23:07 -07:00
kik-kik 7db864b0c9
feat(): Update description, partitioning and clustering setting for fenix_derived.firefox_android_clients_v1 (#4965)
* Update description, partitioning and clustering setting for fenix_derived.firefox_android_clients_v1

* making sure _previous only includes entries older than the submission_date

* adding back parameter settings

* Update sql/moz-fx-data-shared-prod/fenix_derived/firefox_android_clients_v1/metadata.yaml

Co-authored-by: Lucia <30448600+lucia-vargas-a@users.noreply.github.com>

* feat: remove sample_id from clustering

* feat: use first_seen_date as filter when retrieving previous records. This has no impact as first_seen_date is the same as submission_date

---------

Co-authored-by: Lucia <30448600+lucia-vargas-a@users.noreply.github.com>
2024-05-08 15:12:39 +02:00
Chelsey Beck 3df6f02cdb
DENG-3615 QA Fixes for Braze models (#5508)
* changing structure of payload and structuring timestamps

* updating time filter and standardizing

* adding changed subscriptions model and updating time filter

* moving udf to separate pr and changing source table

* adding comments and moving max to timestamps

* filtering out mofo users and fxa_account_deleted true"

* updating filter on tables to pull most recent and adding acoustic event data

* formatting and refactoring

* formatting

* updating format and adding comments

* removing time filter

* fix alias

* reverting waitlists code back to original

* add lower() to waitlists platform and source

* ading inner join to users

* fix test_braze_subscriptions

* fix test_braze_waitlists

---------

Co-authored-by: Leli Schiestl <lschiestl@mozilla.com>
2024-05-07 21:07:40 +02:00
kik-kik f59fdf6354
feat: add meta_attribution_app field to firefox_android_clients (#5404) 2024-05-07 17:09:06 +02:00
Chelsey Beck 2fc3f3563a
DENG-3615 QA fixes (#5494)
* status quo

* fix tests

* reformat query

* renaming to add v:

* add lower() to braze countries

* adding type

* updating field name

* updating user attributes payload within array to be _v1

* adding newsletter check

* updating snapshot to correct name

* formatting sql

* adding product checks

* adding subscriptions checks

* fixing schema

* removing checks for now and updating snapshot metadata

* updating interval

---------

Co-authored-by: Leli Schiestl <lschiestl@mozilla.com>
2024-05-03 20:32:49 -07:00
Leli 4135c7adbd
Deng 3597 marketing suppression list remove ctms (#5481)
* DENG-3600 Acoustic suppression list add timestamp

* DENG-3597 Marketing Suppression List remove ctms

---------

Co-authored-by: Chelsey Beck <64881557+chelseybeck@users.noreply.github.com>
2024-05-02 16:37:35 -07:00
Leli 38cab3f16c
DENG-3607 update braze_derived suppression list (#5484)
* DENG-3607 update braze_derived suppression list

* update table reference
2024-05-02 16:23:49 -07:00
Leli f371aabd48
DENG-3600 Acoustic suppression list add timestamp (#5479) 2024-05-02 21:44:46 +02:00
Chelsey Beck 8e8d502b35
removing active subscriptions count attribute (#5471)
* removing active subscriptions count attribute

* updating test to remove count attribute
2024-05-02 07:58:34 -07:00
Chelsey Beck f53bbad76b
updating products and adding changed products model (#5450)
* updating products and adding changed products model

* updating user profiles to join on external id

* updating tests to match new schema

* reverting naming

* updating test

* updating products model to include additional attributes and updating tests

* updating order and tests

* updating format

* upddating source table

* updating schema

* updating user profiles table schema to match new products array
2024-04-29 19:17:06 -07:00
Chelsey Beck fc057b00ca
Adding new models for braze sync (#5445)
* adding models for changed and deleted users

* adding filter to changed waitlists model

* updating tests to include has_fxa field

* updating tests to include an unchanged user

* adding new line

* removing unnecessary cross join
2024-04-26 13:32:11 -07:00
Chelsey Beck d8edb09f32
DENG-3008 Updating Braze Models (#5405)
* updating create statement

* joining on users table to filter for active and ensuring there is at least one subscription

* joining on users to filter for active

* adding dev subscription group

* removing fxa_id in favor of has_fxa

* bringing in update timestamp for downstream use

* updating formatting and adding filter for active users

* adding filter for one active newsletter

* updating tests

* adding fxa id back to users table to join to products

* updating query

* updating values

* updating tests

* fix test for subscriptions

* changing schema to array

* updating format

* updating to pull in all subscriptions with statuses

* removing create statement

* updating subscriptions query to make it an array and updating associated tests

* updating formatting and comment

---------

Co-authored-by: Leli Schiestl <lschiestl@mozilla.com>
2024-04-23 12:41:44 -07:00
Leli b3ffb3adaf
Deng 3453 braze models unit tests (#5394)
* DENG-3453 braze models add unit tests

* fix test

* add more tests
2024-04-19 15:16:04 +02:00
Anna Scholtz eac0ac80c2
Remove telemetry_derived init.sql files (#5342)
* Remove init.sql files for telemetry_derived queries

* Remove init.sql for events_daily

* Remove init.sql from skip lists

* Remove init.sql references from tooling

* Add schema for baseline_clients_first_seen
2024-04-10 15:36:30 -07:00
Lucia 3705f4e1d1
Add distribution_id to firefox_android_clients. (#5325)
* Add distribution_id to firefox_android_clients.

* Update tests schemas.
2024-04-04 21:23:10 +02:00
Anna Scholtz 963a9792d4
Remove search query init.sql (#5306)
* Remove init.sql files for fenix and use is_init() instead

* Remove init.sql files for search_derived datasets

* Simplify is_init() for acer_cohort_v1
2024-04-03 15:20:54 -07:00
Winnie Chan 33f9017c75
DENG-2823: Added deprecate cli command (#5219)
* Added deprecate cli command

* Fixed typo

* Fixed failed tests

* Fixed deletion date label

* Update bigquery_etl/metadata/parse_metadata.py

Co-authored-by: Sean Rose <1994030+sean-rose@users.noreply.github.com>

* Fixed deletion date

* Fixed arguments optional

* Added return back

* Added invalid deletion date test

---------

Co-authored-by: Sean Rose <1994030+sean-rose@users.noreply.github.com>
2024-03-19 11:17:32 -07:00
m-d-bowerman 765865eaa3
Add `locale` and non-search engage flag (#5224)
* Add `locale` and non-search engage flag

* Fix test failure

* Fix test expect
2024-03-18 14:22:17 -07:00
Anna Scholtz 13fc230fd4
Fix test files for dl_token_ga_attribution_lookup_v1 (#5183) 2024-03-07 14:08:57 -08:00
Katie Windau bdb2361b18
DENG-2979 Update dl_token_ga_attribution_lookup_v1 to use new GA4 client ID after switch to GA4 (#5181)
* DENG-2979 - add logic to use GA4 client ID after it starts coming through instead of old GA3 one, & start updating tests

* DENG-2979 fix SQL formatting

* DENG-2979 - add temp table to do a final distinct

* DENG-2979 add a data check to make sure the code errors out if someone tries to run prior to 8-25-2023

* DENG-2979 update the date of the tests to be more recent and not fall in the data check fail period

* DENG-2979 update test cases
2024-03-07 14:00:29 -06:00
Lucia 84ee88e2b9
Dependabot/pip/black 24.1.1 fix (#5027)
* Bump black from 23.10.1 to 24.1.1

Bumps [black](https://github.com/psf/black) from 23.10.1 to 24.1.1.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/compare/23.10.1...24.1.1)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Reformat files with black to fix dependabot update.

* Reformat with black 24.1.1. Update test dag with required space.

* Update test dags.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-19 15:27:34 +01:00
Curtis Morales 0a9ee2434a
AD-178 Update event_aggregates tables to pull query_type from the Ads team's table (#4967)
* Pull query_type from adm.blocks table

* Do the same in event_aggregates_v1

* Update tests
2024-02-06 13:37:45 -05:00
kik-kik 9788ff7293
feat(DENG-2481): Add fenix install referrer to fenix firefox android clients (#4940)
* Tweaking firefox_android_clients_v1 to also include play_store attribution fields

* removed additional logic used for testing found within _previous CTE

* removed firefox_android_clients_v1 init.sql in favour of templating via is_init() inside the query

* Made changes as suggested by fbertsch in PR#4940

* Fixing sql tests
2024-02-02 17:42:52 +01:00
Alexander acfbcbfbea
Revert "Update clients_last_seen_v1 and clients_first_seen to clients_first_s…" (#4948)
This reverts commit 39a89a95ea.
2024-02-01 15:30:27 -05:00
Curtis Morales d019d4ebc0
AD-178 Add query_type to event_aggregates_suggest and event_aggregates (#4927)
* Add query_type to event_aggregates_suggest

* Format

* Add query_type to event_aggregates table

* Update event_aggregates tests
2024-01-31 11:27:12 -05:00
Alexander 39a89a95ea
Update clients_last_seen_v1 and clients_first_seen to clients_first_seen_v2 (#4915)
* Update to clients_first_seen_v1

* Update tests
2024-01-30 16:33:01 -05:00
Sean Rose a70b2aa689
Support symlinks (#4881)
* Avoid using `Path.glob()` or `Path.rglob()` for recursive file searches.

Because they don't currently support following symlinks (they will in Python 3.13).

* Specify `followlinks=True` as necessary when calling `os.walk()`.
2024-01-24 13:02:43 -08:00
Sergio E. Betancourt 4661be0248
[AD-145] Adding topsite dismissals to newtab_* jobs. (#4771)
* Adding topsite dismissals to newtab_* jobs.

* Update test to include new dismissal fields

---------

Co-authored-by: Curtis Morales <cmorales@mozilla.com>
2024-01-05 15:17:59 -06:00
Daniel Thorn 25c18112b5
DENG-1352 - Migrate contextual services ETL to desktop glean pings (#4474) 2023-12-07 16:12:07 -08:00