Page MenuHomePhabricator

[SPIKE] How could we present users of the moderator dashboard with their Impact?[4H]
Closed, ResolvedPublic

Description

We would like to add an Impact module to the moderator dashboard:

(mockup)

Screenshot 2025-09-02 at 15.41.30.png (446×1 px, 37 KB)

This is intended to mimic the Newcomer homepage Impact module, albeit without as detailed pageview data, and with 3/4 metrics replaced:

  • Edits reviewed: Sum of edits patrolled, reviewed, reverted, and thanked. Patrol and Review are contextual depending on whether each is used on this wiki.
  • Thanks sent: Sum of thanks sent (not received) by this user.
  • Discussions participated in: How many discussions has this user participated in?

We want to figure out if and how we could display these metrics to a user.

  • For each metric, is it feasible to store and display this to a user, and if so how?

Event Timeline

Scardenasmolinar renamed this task from [SPIKE] How could we present users of the moderator dashboard with their Impact? to [SPIKE] How could we present users of the moderator dashboard with their Impact?[4H].Sep 2 2025, 3:17 PM
Scardenasmolinar moved this task from To be estimated to Estimated on the Moderator-Tools-Team board.

@Samwalton9-WMF

Question about:

Edits reviewed: Sum of edits patrolled, reviewed, reverted, and thanked. Patrol and Review are contextual depending on whether each is used on this wiki.

Hi! Can you link me to the documentation around what the reviewed count in the sum mentioned here is? I get the patrolled, reverted, and thanked.

Change #1186065 had a related patch set uploaded (by Kgraessle; author: Kgraessle):

[mediawiki/extensions/GrowthExperiments@master] [SPIKE] How could we present users of the moderator dashboard with their Impact?[4H]

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

@Samwalton9-WMF

Question about:

Edits reviewed: Sum of edits patrolled, reviewed, reverted, and thanked. Patrol and Review are contextual depending on whether each is used on this wiki.

Hi! Can you link me to the documentation around what the reviewed count in the sum mentioned here is? I get the patrolled, reverted, and thanked.

Patrol is Recent Changes patrolling, Review is FlaggedRevisions.

@Samwalton9-WMF

Question about:

Edits reviewed: Sum of edits patrolled, reviewed, reverted, and thanked. Patrol and Review are contextual depending on whether each is used on this wiki.

Hi! Can you link me to the documentation around what the reviewed count in the sum mentioned here is? I get the patrolled, reverted, and thanked.

Patrol is Recent Changes patrolling, Review is FlaggedRevisions.

Thanks!

Test wiki created on Patch demo by KGraessle-WMF using patch(es) linked to this task:
https://e28e437a20.catalyst.wmcloud.org/w/

Quick clarification from poking around - the module currently has "Sum of comments sent", but the design is "discussions participated in", ie distinct discussions, rather than distinct comments. Is that possible to get?

Quick clarification from poking around - the module currently has "Sum of comments sent", but the design is "discussions participated in", ie distinct discussions, rather than distinct comments. Is that possible to get?

The current spike implementation which uses the mediawiki action API to retrieve usercontribs and filters by the discussion tool's tags doesn't give us a way to filter the revisions into distinct discussions.
What we do have access to is the title of the page where the comment, reply, or new topic is added and could aggregate the counts by that. I don't think is what you're looking for though as it wouldn't exactly be "distinct discussions".

There are no other API endpoints that give us this data so we'd have to create our own API to serve this data up. Let me know if this is a direction we'd like to investigate?
Otherwise, we can get the data I have added in the patch from the usercontribs API.

I also looked at xtools and didn't see anything there around discussions participated in.

Quick clarification from poking around - the module currently has "Sum of comments sent", but the design is "discussions participated in", ie distinct discussions, rather than distinct comments. Is that possible to get?

The current spike implementation which uses the mediawiki action API to retrieve usercontribs and filters by the discussion tool's tags doesn't give us a way to filter the revisions into distinct discussions.
What we do have access to is the title of the page where the comment, reply, or new topic is added and could aggregate the counts by that. I don't think is what you're looking for though as it wouldn't exactly be "distinct discussions".

I agree this isn't really the same thing.

There are no other API endpoints that give us this data so we'd have to create our own API to serve this data up. Let me know if this is a direction we'd like to investigate?
Otherwise, we can get the data I have added in the patch from the usercontribs API.

OK, I think if this is going to be arduous to collect we should move forward with the "Sum of comments sent" datapoint, which as I understand it is a count of how many unique discussion messages the user has posted does that include posting a new section in addition to replies in an existing section?

FYI @OTichonova

Quick clarification from poking around - the module currently has "Sum of comments sent", but the design is "discussions participated in", ie distinct discussions, rather than distinct comments. Is that possible to get?

The current spike implementation which uses the mediawiki action API to retrieve usercontribs and filters by the discussion tool's tags doesn't give us a way to filter the revisions into distinct discussions.
What we do have access to is the title of the page where the comment, reply, or new topic is added and could aggregate the counts by that. I don't think is what you're looking for though as it wouldn't exactly be "distinct discussions".

I agree this isn't really the same thing.

There are no other API endpoints that give us this data so we'd have to create our own API to serve this data up. Let me know if this is a direction we'd like to investigate?
Otherwise, we can get the data I have added in the patch from the usercontribs API.

OK, I think if this is going to be arduous to collect we should move forward with the "Sum of comments sent" datapoint, which as I understand it is a count of how many unique discussion messages the user has posted does that include posting a new section in addition to replies in an existing section?

Yep, that's how I understand it as well.

Just noting that we're going to do 'Comments sent' in the Impact module instead of 'Discussions participated in'.