Page MenuHomePhabricator

Create a proof of concept metric client in ImpactModule
Closed, ResolvedPublic3 Estimated Story PointsSpike

Description

Within T433352: Review metrics provided by the Impact module and available APIs, we completed a list of metrics that can be included in the MediaWiki-extensions-ImpactModule extension. Within this task, we should create a proof of concept metric client in the extension. This client would be:

  • capable of requesting individual metrics (primarily from AQS, but not exclusively),
  • responsible for caching the results,
  • returning the metrics to the caller.

This task is intended as "where can we get within a couple of days". Specific changes will be filled as follow-ups as needed. Completing this task also means the decisions (listed as subtasks) will at least have all necessary information to progress.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change #1323994 had a related patch set uploaded (by Urbanecm; author: Urbanecm):

[mediawiki/extensions/ImpactModule@master] [WIP]: Create an initial version of IMetric

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

Change #1323995 had a related patch set uploaded (by Urbanecm; author: Urbanecm):

[mediawiki/extensions/ImpactModule@master] [WIP] Implement AqsClient

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

Change #1323996 had a related patch set uploaded (by Urbanecm; author: Urbanecm):

[mediawiki/extensions/ImpactModule@master] [WIP] Implement first actual metric

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

@Michael gave feedback on the patches in-Gerrit. Other notes from our discussion:

  • We should add something like IMetric::getCachePolicy() and make MetricComputer cache metrics somehow
    • How exactly would the caching be structured is TBD
    • Editcount should be probably uncached
Michael set the point value for this task to 3.Aug 11 2026, 3:24 PM

Change #1325463 had a related patch set uploaded (by Urbanecm; author: Urbanecm):

[mediawiki/extensions/ImpactModule@master] [WIP] Add caching to MetricComputer

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

Change #1326285 had a related patch set uploaded (by Urbanecm; author: Urbanecm):

[mediawiki/extensions/ImpactModule@master] Add missing dotfiles from BoilerPlate

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

Change #1326285 merged by jenkins-bot:

[mediawiki/extensions/ImpactModule@master] Add missing dotfiles from BoilerPlate

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

Change #1323994 merged by jenkins-bot:

[mediawiki/extensions/ImpactModule@master] Create an initial version of IMetric

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

Change #1325463 merged by jenkins-bot:

[mediawiki/extensions/ImpactModule@master] Add caching to MetricComputer

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

Change #1323995 merged by jenkins-bot:

[mediawiki/extensions/ImpactModule@master] Implement AqsClient

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

Change #1346055 had a related patch set uploaded (by Sergio Gimeno; author: Sergio Gimeno):

[mediawiki/extensions/ImpactModule@master] Add longest-streak as the first metric served from the batch

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