Page MenuHomePhabricator

Migrate admin_request_month schema to airflow
Closed, ResolvedPublic

Description

Goal

Migrate admin_request_month to airflow. Currently the staging table is queried from mariadb cu_log. After T364398 is completed, we are going to query the data from hive table and enable data pipeline in airflow.

Todo

  • Create, test and checkin the query files for both table creation and data generation. Owner: @jwang
  • Prepare the DAG files and submit merge request. Owner: @JEbe-WMF
  • Backfill the old data in admin_request_month under jwang's account to the new table. Owner: @jwang

Details

Other Assignee
JEbe-WMF

Event Timeline

jwang updated Other Assignee, added: JEbe-WMF.

The queries files have been checked in through Gitlab merge, changes include:

  1. One file to create the destination table trust_safety_admin_request_monthly
  2. One file to pull and ingest data into  trust_safety_admin_request_monthly. It pulls the most recent one month's data once the latest snapshot is available.

@JEbe-WMF, pass the ticket on to you for work related to the DAG files.

jwang updated the task description. (Show Details)

I have backfilled the historical data from jiawang2.admin_request_latest_month to wmf_product.trust_safety_admin_request_monthly.
Also updated the source table of Check User Requests in IP masking dashboard to use the new schema.

jwang claimed this task.
jwang updated the task description. (Show Details)