Page MenuHomePhabricator

Migrate IP masking dashboard data pipeline to airflow
Closed, ResolvedPublic

Description

Goal

The IP Masking (Temp Accounts) guardrail metrics dashboard currently is maintained by the product analytics team. The staging tables are fetched monthly by a cron job into a database under jwang's account. We plan to migrate the queries to Airflow, so that it can be fully automated and easily maintained.

Dependency

Add cu_log to the data lake. T364398

To Do

  • Write updated SQL queries for table creation and updating
  • Write Airflow DAG
  • Build new version of tables
  • Backfill old data to new tables T378518
  • Update metric queries to use new tables
  • Update Superset dashboard to use new tables

Event Timeline

  • Write updated SQL queries for table creation and updating

Queries have been checked in to Gitlab: link

DAG files for trust_safety_admin_action_daily have been submitted to gitlab. A request for review and merge has been made. link

mpopov triaged this task as Medium priority.Jun 11 2024, 1:00 PM

DAG files for following tables have been checked-in to gitlab. Here is the merge request, which is pending review. link

  • trust_safety_admin_action_monthly
  • trust_safety_block_monthly
  • trust_safety_admin_monthly
  • trust_safety_new_admin_monthly
Status update

Completed Tasks
The following pipelines have been deployed. The data from the recent snapshot (2024-09) has been backfilled

  • trust_safety_admin_action_monthly
  • trust_safety_block_monthly
  • trust_safety_admin_monthly
  • trust_safety_new_admin_monthly

Next steps

  • Backfill the historical data for the following tables
    • trust_safety_admin_action_monthly
    • trust_safety_block_monthly
    • trust_safety_admin_monthly
    • trust_safety_new_admin_monthly
  • Begin migrating admin_request_month table once the dependency (T364398) is resolved.
jwang changed the task status from Stalled to Open.Oct 29 2024, 4:50 PM
Status update

Completed Tasks

  • Backfilled the historical data for the following tables
    • trust_safety_admin_action_monthly
    • trust_safety_block_monthly
    • trust_safety_admin_monthly
    • trust_safety_new_admin_monthly
  • Updated Superset dashboard to use the above new tables.

Next steps
Update Superset dashboard to use the new admin_request_monthly table after the migration (T380318) is done.

jwang updated the task description. (Show Details)