Page MenuHomePhabricator

IP Info: Add links to block log
Closed, ResolvedPublic2 Estimated Story Points

Description

AC:

  • Add links to the relevant block log under the Active blocks heading, after the data
  • Add links only in the accordion, not in the popup
  • Link 'Logs' to: Special:Log?type=block&page=<ip>

Screen Shot 2022-06-21 at 10.33.28 AM.png (212×456 px, 14 KB)

Event Timeline

Change 810125 had a related patch set uploaded (by TsepoThoabala; author: TsepoThoabala):

[mediawiki/extensions/IPInfo@master] IP Info: Add links to block log on infobox

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

Change 810125 merged by jenkins-bot:

[mediawiki/extensions/IPInfo@master] Add links to block log on infobox

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

@Prtksxna The log link only appears when there is at least one active block. Is that OK? I can imagine that even if there are no active blocks a user might want to see the logs to check any past blocks.

I also notice the clickable part of the <a> element extends across the whole column (the blue area in the screenshot). Is that OK?

block_log_link.png (407×1 px, 85 KB)

I can imagine that even if there are no active blocks a user might want to see the logs to check any past blocks.

That makes sense. I thought we didn't keep information about past blocks (at least not for too long), is that incorrect?

I also notice the clickable part of the <a> element extends across the whole column (the blue area in the screenshot). Is that OK?

Is this the case with all the links on that column? Global contribs and xtools too?

I can imagine that even if there are no active blocks a user might want to see the logs to check any past blocks.

That makes sense. I thought we didn't keep information about past blocks (at least not for too long), is that incorrect?

I think they are kept forever. I have seen block logs on enwiki going back to 2004.

I also notice the clickable part of the <a> element extends across the whole column (the blue area in the screenshot). Is that OK?

Is this the case with all the links on that column? Global contribs and xtools too?

It is the case for Global contribs and XTools as well.

I think they are kept forever. I have seen block logs on enwiki going back to 2004.

In that case, yes. We should show the link even when there are no active blocks.

It is the case for Global contribs and XTools as well.

Thanks Dom! I've created T312320: IP Info: Links in the box should only be clickable on the text for this.

I think they are kept forever. I have seen block logs on enwiki going back to 2004.

In that case, yes. We should show the link even when there are no active blocks.

Flagging for the attention of @TThoabala.

Change 817365 had a related patch set uploaded (by TsepoThoabala; author: TsepoThoabala):

[mediawiki/extensions/IPInfo@master] Add links to block log - always show blocks even if there are not active blocks

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

Change 817365 merged by jenkins-bot:

[mediawiki/extensions/IPInfo@master] Add links to block log - always show blocks even if there are not active blocks

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

dom_walden added a subscriber: Tchanders.

The "Logs" link now appears even if there are no blocks.

logs_no_block.png (347×1 px, 45 KB)

The link it takes you to is Special:Log?type=block&page=<ip>.

@TThoabala @Tchanders I notice that it will also work if the link is Special:Log?type=block&page=User:<ip>. But, I am assuming it makes no difference. It didn't seem to when I compared them for a few IPs.

Test environment: https://en.wikipedia.beta.wmflabs.org and local docker IP Info 0.0.0 (602a002) 12:27, 27 July 2022.