Page MenuHomePhabricator

Refactor Editor Analytics according to the new AQSAssist
Open, HighPublic3 Estimated Story Points

Description

Goal

Extract to aqsassist some repeated and common code that is present in all the services and refactor them to avoid code duplication as we already did with the functions we created to validate the parameters in the handlers.

About the Druid common code refactoring we will take the following into consideration:

The way to parameterize Druid queries that was implemented in AQS 1.0 (https://github.com/wikimedia/analytics-aqs/blob/master/sys/mediawiki-history-schemas.yaml) to parametrize Druid queries using a separate file
We'll start refactoring editor-analytics because its code is already done and we'll have the opportunity of using its unit and integration tests to test the refactored service.

Tasks

  • Refactor
  • QA test
  • Deploy

Event Timeline

JEbe-WMF set the point value for this task to 3.Mar 21 2024, 6:17 PM

Change #1013548 had a related patch set uploaded (by Jennifer Ebe; author: Jennifer Ebe):

[generated-data-platform/aqs/editor-analytics@main] Refactor Editor Analytics with AQS-Assist

https://gerrit.wikimedia.org/r/1013548

Change #1013548 merged by jenkins-bot:

[generated-data-platform/aqs/editor-analytics@main] Refactor Editor Analytics with AQS-Assist

https://gerrit.wikimedia.org/r/1013548

EChukwukere-WMF updated the task description. (Show Details)

The changes here have been merged to prod. This has been tested through regression run for Editor analytics and no issues found. All tests passed

VirginiaPoundstone raised the priority of this task from Low to High.Wed, May 29, 4:31 PM

Test status in PROD for Editor Analysis : QA PASS

There were slight changes made to validation errors that I needed minor test update

4 features passed, 0 failed, 24 skipped
73 scenarios passed, 0 failed, 1157 skipped
710 steps passed, 0 failed, 9941 skipped, 0 undefined
Took 0m6.616s