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

25 Коммитов

Автор SHA1 Сообщение Дата
akkomar e3208aeecc
FXA-6721 Setup import of accounts table from FxA stage CloudSQL (#4327)
* FXA-6721 Setup import of accounts table from FxA stage CloudSQL

* Fix typo
2023-09-22 15:27:07 +02:00
kik-kik 69592dab81
# feat(): updated fxa nonprod queries updated to be in line with production queries (#4297)
* updated fxa nonprod/staging queries to be in line with what production queries look like

* Apply suggestions from code review provided by srose

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

* Apply suggestions from code review

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

* tweaks made as suggested by srose in PR#4297

---------

Co-authored-by: Sean Rose <1994030+sean-rose@users.noreply.github.com>
2023-09-21 16:54:17 +02:00
kik-kik 15b277c3d5
feat(DENG-1576): introducing fxa_log_device_command_events_v2 to include GCP based logs (#4308)
* introducing fxa_log_device_command_events_v2 to pull relevant logs from GCP log table

* updated the bqetl_fxa_events DAG

* correcting the source table

* added fxa_log_device_command_events_v2 to dry run skip list due to the source table permissions issue and added date filters to incidcate tiemframes for which events are included in both tables

* Update sql/moz-fx-data-shared-prod/firefox_accounts_derived/fxa_log_device_command_events_v2/query.sql

Co-authored-by: akkomar <akkomar@users.noreply.github.com>

* made changes as suggested by srose in PR#4308

---------

Co-authored-by: akkomar <akkomar@users.noreply.github.com>
2023-09-21 12:06:14 +02:00
akkomar b64aea8d1a
DENG-722 Handle events from FxA services migrated to new GCP environment (#4288)
Co-authored-by: kik-kik <kignasiak@mozilla.com>
Co-authored-by: Sean Rose <1994030+sean-rose@users.noreply.github.com>
2023-09-13 11:49:29 -07:00
Sean Rose 52a97ad37d
Add `stripe_products_v1` and `stripe_plans_v1` ETLs (DENG-1448). (#4234) 2023-09-05 08:47:56 -07:00
Sean Rose 8f4a06a462
Add Stripe-based logical subscriptions ETLs (DENG-977) (#4166)
* Add `subscription_platform_derived.services_v1` ETL.

* Add `subscription_platform_derived.subplat_flow_events_v1` ETL.

* Add `subscription_platform_derived.subplat_attribution_impressions_v1` ETL.

* Add `mozilla_vpn_derived.users_attribution_v1` table.

* Add `subscription_platform_derived.stripe_logical_subscriptions_history_v1` ETL.

* Add `subscription_platform_derived.logical_subscriptions_history_v1` ETL.

* Add `subscription_platform_derived.daily_active_logical_subscriptions_v1` ETL.

* Add `subscription_platform_derived.monthly_active_logical_subscriptions_v1` ETL.

* Add `subscription_platform_derived.logical_subscription_events_v1` ETL.

* Add `subscription_platform.logical_subscriptions` view.

* Add `subscription_platform.daily_active_logical_subscriptions` view.

* Add `subscription_platform.monthly_active_logical_subscriptions` view.

* Add `subscription_platform.logical_subscription_events` view.
2023-08-18 14:07:05 -07:00
Sean Rose 5803fe141d
Include customer data in `stripe_subscriptions_history_v2` (DENG-974) (#4132)
* Add `stripe_customers_revised_changelog_v1` ETL.

* Add `stripe_customers_history_v1` ETL.

* Replace `stripe_external.pre_fivetran_customers` with `stripe_external.pre_fivetran_customer`.

It's almost exactly the same, except it also has a `created` column.

* Rename `stripe_external.pre_fivetran_customer` to `pre_fivetran_customers_v1`.

* Include customers deleted before the initial Fivetran Stripe sync in `stripe_customers_revised_changelog_v1`.

* Include customer data in `stripe_subscriptions_history_v2`.
2023-07-31 14:02:06 -07:00
Eduardo Filho 25d4ab4042
Bug 1844886: Add non-norm cols to glam scalar tbls (#4111)
* Add non-norm cols to scalar tbls

* Add missing schema to scalar_percentiles_v1

* Add missing schema to scalar_percentiles_v1
2023-07-25 11:13:20 -04:00
Eduardo Filho 144a508ee6
Glam non norm agg (#3873)
* glam: Partition clients_histogram_aggregates by sample_id (has been running like this since April 3 from a different branch)

* glam: Non normalized aggregations to legacy histograms

* glam: add non-normalized aggs to probe counts extract

* glam: add init.sql to relevant tbls for non-norm aggs

* glam: ignore dryrun histogram_percentiles

* glam: add description and eol to init

* glam: Partition clients_histogram_aggregates by sample_id (has been running like this since April 3 from a different branch)

* glam: Non normalized aggregations to legacy histograms

* glam: add non-normalized aggs to probe counts extract

* glam: add init.sql to relevant tbls for non-norm aggs

* glam: ignore dryrun histogram_percentiles

* glam: add description and eol to init

* fix schema files

* fix clients_histogram_probe_counts schema

* remove another init.sql

* fix dryrun ignore order

* fix table name

* change dryrun ignore order to try avoiding fenix for being on path

* another change in dryrun

* Move glam queries from dryrun to bqetl_project.yaml to ignore

* add tbl deps on tests
2023-07-19 17:01:58 -04:00
Frank Bertsch 37c4253711
Add client_deduplication to view generation skip list (#4098) 2023-07-19 09:42:07 -07:00
Rebecca BurWei 4ffdb8484a
Add has_adblocker_addon to search_clients_daily (#3558)
* feat: adblocker addons field

* Update sql/moz-fx-data-shared-prod/search_derived/search_clients_daily_v8/query.sql

Co-authored-by: Curtis Morales <cmorales@mozilla.com>

* fix: use private table

* fix: where clause for private table

* Reference static addons table

* Switch to new monetization_blocking_addons table

* Drop project name in reference to monetization_blocking_addons

* Don't dry-run search_clients_daily

* Add has_adblocker_addons to search_clients_daily_v8 tests

---------

Co-authored-by: Curtis Morales <cmorales@mozilla.com>
2023-07-19 12:04:38 -04:00
Anna Scholtz a048ddbd1b
[Bug 1821784] Be explicit about skipping generation for certain Glean artifacts (#4069)
* Fix skipping certain Glean artifacts

* Explicitly skip specific glean_usage generated artifacts

* Review feedback
2023-07-14 11:54:00 -07:00
skahmann3 29dd1c31b7
[RS-688] Suggest forecasting v1 (#3719)
* Add DE for mobile

* Format query

* Update sql/moz-fx-data-shared-prod/contextual_services_derived/adm_forecasting_v1/query.sql

Co-authored-by: skahmann3 <16420065+skahmann3@users.noreply.github.com>

* Fix two typos

* Suggest has no new markets

* Fix merge error and reformat

* Update & separate suggest forecasting from Tiles

* Less filters

Don't need all the filters in the back half of this query since they're already employed in the source table

* Update to focus on funnel metrics

- I manually renamed the files from "suggest_forecasting" to "suggest_revenue_levers_daily" so hopefully that won't break anything.
- Since this is being used for funnel analysis, there are multiple ratios built using two other variables in the table. We could drop the ratios if storage costs are a concern, I've kept them since I prefer the convenience of having the ratios ready to go.

* Removed ratios

Think better to define ratios in Looker (since then can more easily change the definitions) than to set in BQ which is harder to change/ may require backfill.
Note for DE: schema command doesn't work for me, so may need to be run manually

* add schema.yaml and scheduling to metadata.yaml

* correct the view name

* add suggest revenue to skip dry run

* correct dag generation

* Add changes to bqetl_search.py dag

---------

Co-authored-by: Curtis Morales <cmorales@mozilla.com>
Co-authored-by: Alekhya Kommasani <akommasani@mozilla.com>
Co-authored-by: Alekhya <88394696+alekhyamoz@users.noreply.github.com>
2023-07-12 14:24:47 -07:00
Anna Scholtz 34c6e09415
Skip sql/moz-fx-data-shared-prod/stripe/itemized_tax_transactions/view.sql validation (#4070) 2023-07-12 13:02:07 -07:00
Anna Scholtz 98006dcce9
Fix paths for skipped views (#4063) 2023-07-12 09:53:59 -07:00
Anna Scholtz 5c0748cf79
Add missing / for generating docs (#4055) 2023-07-11 15:55:01 -07:00
Anna Scholtz 03357769cc
Move view, schema and remaining configs to bqetl_project.yaml (#4051)
* Move view configs to bqetl_project.yaml

* Move schema config to bqetl_project.yaml

* Move docs config to bqetl_project.yaml

* Replace remaining configs
2023-07-11 13:10:57 -07:00
Sean Rose af6012969c
Move `stripe_subscriptions_changelog_v1` ETL to `stripe_external` dataset (DENG-974) (#4036)
* Move `stripe_subscriptions_changelog_v1` ETL to `stripe_external` dataset.

* Include all subscription metadata in `stripe_external.subscriptions_changelog_v1`.
2023-07-11 11:09:53 -07:00
Anna Scholtz 8d72cfa9fe
Move routine config to bqetl_project.yaml (#4038) 2023-07-11 10:52:48 -07:00
Leli 8ccd05433a
Bug 1842216 exclude main_remainder_v4 from telemetry_missing_columns_v3 (#4031)
* Bug 1842216 exclude main_remainder_v4 from telemetry_missing_columns_v3

* exclude view from dryrun

* add remainder for saved_session and first_shutdown

* Update sql/moz-fx-data-shared-prod/monitoring_derived/telemetry_missing_columns_v3/query.sql

Co-authored-by: Daniel Thorn <dthorn@mozilla.com>

---------

Co-authored-by: Daniel Thorn <dthorn@mozilla.com>
2023-07-11 19:08:28 +02:00
Leli 6d54c049db
add adjust view to bqetl_project to skip (#4046) 2023-07-11 15:01:51 +02:00
Anna Scholtz 3a61fd34bb
Move format skip files to bqetl_project.yaml (#4033) 2023-07-10 10:10:47 -07:00
Frank Bertsch 8d08cec820
Copy App Store tables from Fivetran (#4030)
* Copy App Store tables from Fivetran

* Move dryrun to config

* Generate DAG

* Dont dryrun views

* Add schemas
2023-07-07 14:24:03 -04:00
Anna Scholtz e719266146
Remove stray commas from skip list (#4026) 2023-07-06 12:12:52 -07:00
Anna Scholtz d9bda0df7e
Add ConfigLoader and move dry run skip to bqetl_project.yaml (#4000)
* Add ConfigLoader and move dry run skip to bqetl_project.yaml

* format tests
2023-07-06 10:42:29 -07:00