Page MenuHomePhabricator

Develop Editors view of Contributions tab
Closed, ResolvedPublic

Assigned To
Authored By
ifried
Oct 28 2025, 8:37 PM
Referenced Files
Restricted File
Mar 10 2026, 8:35 PM
F68620183: editors view desktop.png
Oct 30 2025, 5:49 PM
F68620259: leaderboard_selected (2).png
Oct 30 2025, 5:49 PM
F68581216: table editors (1).png
Oct 30 2025, 3:24 PM
F68580837: leaderboard_selected (1).png
Oct 30 2025, 3:24 PM

Description

User story:

As an event organizer, I want to be able to see an editors view version of the contribution data, so that my event participants can understand their cumulative impact and, if they want, engage in some light competition (such contests).

Background:

We have heard feedback that some volunteers that it would be appreciated to have a leaderboard or editors view of some sort as part of the Collaborative Contributions feature. This is because editors want to see their total impact from an event. Also, some editors enjoy the fun, light competition of seeing how their edit contributions overall stack up against others, and they may be more motivated to edit if they see their ranking in a leaderboard. Meanwhile, some events are actual contests, in which they require statistics on individual output to see who are the top contributors. For this reason, we may want to create a secondary view, which shows total contributions per user.

Acceptance Criteria:

  • Given that a user is on the Contributions tab on EventDetails,
  • And they are on the "editors" sub-tab, they should see the following columns:
    • Username (with one row per username)
    • Articles created
      • This counts the total number of articles created per user
    • Articled edited
      • This counts the total number of articles edited per user
    • Edit count
      • This counts the total number of edits per user (including an edit for when an article was created)
    • Bytes
      • This counts the total number of bytes changed by user
  • All columns should be sortable
  • Default is to show usernames sorted alphabetically
  • If possible, apply same pagination logic to Editors view as Edits view (ref: T408841) - this is no longer required for this task.
Designs
FlowMobileDesktop
'Editors' toggle selected
leaderboard_selected (2).png (851×393 px, 28 KB)
editors view desktop.png (1×2 px, 111 KB)

Full table for 'Editors'

table editors (1).png (256×986 px, 16 KB)

Event Timeline

ifried renamed this task from Placeholder: Develop Editors view of Contributions tab to Develop Editors view of Contributions tab.Oct 30 2025, 4:22 PM
ifried updated the task description. (Show Details)

I feel like this needs to be broken down further, at least having the tab AC and table AC as separate tickets.

Change #1218772 had a related patch set uploaded (by Mhorsey; author: Mhorsey):

[mediawiki/extensions/CampaignEvents@master] Refactor contribution summary module to be reusable

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

Change #1218773 had a related patch set uploaded (by Mhorsey; author: Mhorsey):

[mediawiki/extensions/CampaignEvents@master] Extract base pager class to enable editor view to reuse code

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

Change #1218774 had a related patch set uploaded (by Mhorsey; author: Mhorsey):

[mediawiki/extensions/CampaignEvents@master] [WIP] Add event contributions pager

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

Change #1218773 abandoned by Mhorsey:

[mediawiki/extensions/CampaignEvents@master] Extract base pager class to enable editor view to reuse code

Reason:

No needed

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

ifried updated the task description. (Show Details)

Change #1218772 abandoned by Mhorsey:

[mediawiki/extensions/CampaignEvents@master] Refactor contribution summary module to be reusable

Reason:

Abandoned due to different approach

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

  • Bytes added
    • This counts the total number of bytes changed by user

Shouldn't it be "bytes changed", in the same vein as what was decided for the summary view in T402211?

@Daimona has questioned if the edit count should contain page creations. I assumed it shouldn’t because we’re counting page creations separately and double counting seems weird, but he is (fairly) pointing out that we DO include them in the summary. (please correct me if I've made an error there ) @Daimona .

@ifried can you give your input on this one?

@Daimona has questioned if the edit count should contain page creations. I assumed it shouldn’t because we’re counting page creations separately and double counting seems weird, but he is (fairly) pointing out that we DO include them in the summary. (please correct me if I've made an error there @Daimona .

Correct, I just want to reiterate that this is for edit count, and NOT articles edited. So:

  • articles created = creations only
  • articles edited = articles that received edits after creation
  • edit count = everything

This is how the summary already works and I think the task description hints that it should be the case, but yeah, it would be nice to confirm explicitly.

AC has been updated in the following way:

  • Edit count = everything
  • Column name is "Bytes"

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

@MHorsey-WMF, one small change: I changed the text from "Edit count" to "Edits" in the AC, since I think that is more aligned with how we say "Bytes" (rather than "Byte count").

Actually, I just changed it back to "Edit count," since it may be confused with the "Edits" tab otherwise.

Change #1218774 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] Add event contributions pager and refactor frontend modules

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

Change #1248914 had a related patch set uploaded (by Daimona Eaytoy; author: Daimona Eaytoy):

[mediawiki/extensions/CampaignEvents@master] EventContributionCombinedModule: use correct i18n key

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

Change #1248914 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] EventContributionCombinedModule: use correct i18n key

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

Looks good! This is ready for release.

  • Given that a user is on the Contributions tab on EventDetails,
  • And they are on the "editors" sub-tab, they should see the following columns:
    • ✅ Username (with one row per username)
    • ✅ Articles created
      • This counts the total number of articles created per user
    • ✅ Articled edited
      • This counts the total number of articles edited per user
    • ✅ Edit count
      • This counts the total number of edits per user (including an edit for when an article was created)
    • ✅ Bytes
      • This counts the total number of bytes changed by user
  • ✅ All columns should be sortable
  • ✅ Default is to show usernames sorted alphabetically
  • If possible, apply same pagination logic to Editors view as Edits view (ref: T408841) - this is no longer required for this task.

{F72797637}