Page MenuHomePhabricator

IP Info accordion should show count of deleted edits to those who have access
Closed, ResolvedPublic3 Estimated Story PointsFeature

Description

from T309366: Investigate: IP info not shown when all IP's edits are deleted

For the purposes of this task, deleting refers to deleting (archiving) a page, rather than suppressing an edit. For example, Special:DeletedContributions shows a user's edits to any pages which have since been deleted.

See also: https://www.mediawiki.org/wiki/Manual:Archive_table

Feature summary

  • Add text under the contributions heading that shows number of deleted edits (if there are any)
  • Add a link to DeletedContributions (if there is more than 0 deleted contributions)

Use case(s)

  • Admins to have access to more info

Screen Shot 2022-09-24 at 11.22.04 AM.png (464×822 px, 46 KB)

Event Timeline

Tchanders renamed this task from IP Info accordion should show count of deleted edits those who have access to IP Info accordion should show count of deleted edits to those who have access.Nov 16 2022, 4:21 PM
Tchanders set the point value for this task to 3.

Change 859544 had a related patch set uploaded (by AGueyte; author: AGueyte):

[mediawiki/extensions/IPInfo@master] Show deleted edits on IPInfobox

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

Hi @Prtksxna, when it says "Use case(s): Admins to have access to more info"

Does it mean the information should be seen only by the "ipinfo-view-full" rights?

Or "ipinfo-view-basic" can also see it?

Thanks!

Hi @Prtksxna, when it says "Use case(s): Admins to have access to more info"
Does it mean the information should be seen only by the "ipinfo-view-full" rights?
Or "ipinfo-view-basic" can also see it?

As I understand it, who gets to see this information will depend on two things:

  1. The IP Info right, as you mentioned: I think this should be in ipinfo-view-full right since deleted edits are usually sensitive edits
  2. Access to the deleted edits: The number that we show under this heading would depend on whether or not the user has access to these suppressed edits. IIRC, there are cases where admins can suppress edits from other admins too. In such cases the number might change.

@STran who did the initial investigate would be able to share more.

Hi @Prtksxna, when it says "Use case(s): Admins to have access to more info"
Does it mean the information should be seen only by the "ipinfo-view-full" rights?
Or "ipinfo-view-basic" can also see it?

As I understand it, who gets to see this information will depend on two things:

  1. The IP Info right, as you mentioned: I think this should be in ipinfo-view-full right since deleted edits are usually sensitive edits
  2. Access to the deleted edits: The number that we show under this heading would depend on whether or not the user has access to these suppressed edits. IIRC, there are cases where admins can suppress edits from other admins too. In such cases the number might change.

@STran who did the initial investigate would be able to share more.

Just to clarify, this task is about archived edits, not suppressed edits (see task description). But I agree with this, since the 'deletedhistory' right isn't given to everyone either.

Change 859544 merged by jenkins-bot:

[mediawiki/extensions/IPInfo@master] Show deleted edits on IPInfobox

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

I tested this by editing an article from an IP address, then deleting that article (as an admin).

I then visited Special:Contributions:

  • for that IP address, as a user with the 'deletedhistory' right. I saw the number of deleted edits, plus a link to Special:DeletedContributions for that IP address.
  • for that IP address, as a user without the 'deletedhistory' right. I saw no information about deleted contributions.
  • for an IP address with no deleted contributions, as a user with the 'deletedhistory' right. I saw "No deleted edits". There was no link.

Additionally:

  • It should be possible to test this on beta
  • In English, there should be different messages depending on whether there are 0, 1 or 2 deleted edits

@AGueyte @Tchanders

I tested this by editing an article from an IP address, then deleting that article (as an admin).

As an Admin, I did not see Global Contributions and XTools under the Deleted Contributions compared to the screenshot in the description.

OS: Mac 13.0
Brower: Chrome
Environment: Beta

Special:DeletedContributions: Article that was deleted, shows in the deleted contribution history as seen highlighted

T318464_IPInfo_Accordion_SpecialDeletedContributions.png (1×1 px, 271 KB)

Special:Contributions: Article that was deleted, did not show in the contribution history

T318464_IPInfo_Accordion_SpecialContributions.png (1×1 px, 386 KB)

@AGueyte Please see the following results below. Thanks!

OS: macOS 13.0
Browser: Chrome 108
Environment: Beta

Testusterone- with no deletedhistory rights

Special:contributions
W/history: can see it w/Deleted contributions link

T318464_IPinfo_SC_WH.png (778×1 px, 210 KB)

W/o history: has “No deleted edits” with no link
T318464_IPinfo_SC_WOH.png (762×1 px, 169 KB)

Special:deletedcontributions
W/history: unable to proceed
W/o history: unable to proceed

T318464_IPinfo_SDCpng.png (419×1 px, 72 KB)

Admin - with deletedhistory rights

Special:contributions
W/history: yes you see # of deleted edits with “Deleted contributions” link

T318464_IPinfo_Admin_SC_WH.png (741×1 px, 188 KB)

W/o history: has “No deleted edits” with no link
T318464_IPinfo_Admin_SC_WOH.png (710×1 px, 164 KB)

Special:deletedcontributions
W/history: yes you see # of deleted edits with “Deleted contributions” link

T318464_IPinfo_Admin_SDC_WH.png (812×1 px, 165 KB)

W/o history: popup with “IP information for this address cannot be retrieved since no edits have been made from it

T318464_IPinfo_Admin_SDC_WOH.png (680×1 px, 130 KB)

@AGueyte @Tchanders

I tested this by editing an article from an IP address, then deleting that article (as an admin).

As an Admin, I did not see Global Contributions and XTools under the Deleted Contributions compared to the screenshot in the description.

Just a quick note that I'm seeing this on Beta now: https://en.wikipedia.beta.wmflabs.org/wiki/Special:DeletedContributions/47.156.78.174

I think it just needed T325214: Ensure WikimediaMessages links show up on IPInfo infobox on Special:DeletedContributions, which has been done now.

Thanks @GMikesell-WMF !