This is the parent task for Contributor Count Per Page metric to be used in Attribution API.
- Prep Pantry:Contributor counts
- Attribution API
- Source table we intend to use: Incremental MediaWiki History T424350: Incremental MediaWiki History Phase I
- Asana: Link
Tasks:
- Monthly unique contributor counts metric using MWH: Use snapshot based MWH to compute monthly metrics. This is reconciled and has all data. Verify counts are correct and is as expected for Attribution API.
- Define physical location of table: wmf/wmf_content etc. [Auto set-up with dbt]
- Describe the fields, meaning and reconciliation of each field.
- Monthly snapshot
- Check data is accurate and consistent with MW APIs. T427548.
- Cassandra load
- with
watermark. Used loaded_at timestamp which is equivalent to data_end_interval in airflow. - only load edited rows
- with
- Data Gateway set up. T428218.
- Change monthly to daily pipeline: SQL change to use incremental model and merge with snapshot versions
- Test dbt airflow job
- Documentation of new table and its fields: https://wikitech.wikimedia.org/wiki/Data_Platform/Data_Lake/Edits/Editor_counts_per_page
- Drop test tables and clearn hdfs files, and cassandra tables if applicable.
- Dropped dev tables, views, and schemas. Looks like dbt created tables were managed (internal), so dropping cleared the hfds folder as well.