Page MenuHomePhabricator

Contribs info in the popup [M]
Closed, ResolvedPublic

Description

Read T268657: Epic: IP Info popup for context first.

  • Number of local edits
  • Number of edits in the past 24 hours

Event Timeline

ARamirez_WMF renamed this task from Contribs info in the popup to Contribs info in the popup [M].Jul 14 2021, 4:26 PM

Change 724092 had a related patch set uploaded (by Wikitrent; author: Wikitrent):

[mediawiki/extensions/IPInfo@master] WIP: Contribs info in the popup

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

This only has the number of local edits and recent edits. Currently the framework is not available to pull in global edits, per @phuedx

For someone just joining the party now, could I get some context as to why we're unable to get the total local/global edit counts? This ticket asks for those and it's fine if we split that work off into another ticket or don't do it at all, but we should be explicit about it.

STran updated the task description. (Show Details)

Per what we discussed in standup, I've gone ahead and split the global edits into T292623: [SPIKE] Investigate getting global contribution information for IP Info [8H]. Any additional context on that task would be welcome.

Change 724092 merged by jenkins-bot:

[mediawiki/extensions/IPInfo@master] Contribs info in the popup

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

@STran I was hoping to see the number of local edits and edits made in the last 24 hours to the popup on the page below. It is not there. Where should I see that?
https://en.wikipedia.beta.wmflabs.org/w/index.php?target=216.38.130.164&namespace=all&tagfilter=&topOnly=1&start=&end=&limit=50&title=Special%3AContributions

Screen Shot 2021-10-18 at 4.16.29 PM.png (1Γ—2 px, 438 KB)

This would only show the information if you access the api directly (eg rest.php/ipinfo/v0/log/<logId> or rest.php/ipinfo/v0/rev/<revId>). There's another ticket for showing it in the popup (and maybe infobox?)

Hi @imaigwilo ! If you go to the Special:Log page and click on the ? icon for contributions, under your Network tab in developer tools you should see an api call happen. Mine just showed a number 13. Click on that and the IP address info object should have the edits and blocks there.

Screen Shot 2021-10-19 at 5.17.00 PM.png (1Γ—2 px, 756 KB)

There's another ticket for showing it in the popup (and maybe infobox?)

That'd be T286662: Display block and contribs info in popup and infobox [S]. I'll update the title of that task…

Thanks for the clarification on this ticket. That was helpful.
I see that this ticket is to set up the pipeline for the following features:
IP number of local edits
IP number of edits in the past 24 hours

To see the set up of the feature see the network api call with the feature:

Screen Shot 2021-10-25 at 11.28.11 AM.png (1Γ—2 px, 554 KB)

Below IP user made 1 recent edits and it shows on the network

Screen Shot 2021-10-25 at 12.01.43 PM.png (1Γ—2 px, 601 KB)