Read T268657: Epic: IP Info popup for context first.
- Active block
- Past blocks
Niharika | |
Dec 16 2020, 5:28 PM |
F34710967: Screen Shot 2021-10-25 at 4.53.37 PM.png | |
Oct 25 2021, 9:22 PM |
Read T268657: Epic: IP Info popup for context first.
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T285977 IP Info | |||
Resolved | kostajh | T268657 Epic: IP Info popup | |||
Resolved | Niharika | T286661 Create framework for fetching on-wiki information [L] | |||
Resolved | phuedx | T270318 Block info in the popup [M] | |||
Resolved | Spike | • TThoabala | T293263 [SPIKE] Investigate getting number of past block for IP (including IP ranges) [8H] |
Change 709689 had a related patch set uploaded (by Phuedx; author: Phuedx):
[mediawiki/extensions/IPInfo@master] Retrieve block info
https://gerrit.wikimedia.org/r/709689
Change 709689 merged by jenkins-bot:
[mediawiki/extensions/IPInfo@master] Retrieve block info
https://gerrit.wikimedia.org/r/709689
The change(s) made for this task will be tested as part of T286662: Display block and contribs info in popup and infobox [S]. I'm being bold and moving this to Done: Q1 (2021-22), skipping QA/Testing, not passing go, and not collecting $200.
Change 723528 had a related patch set uploaded (by Phuedx; author: Phuedx):
[mediawiki/extensions/IPInfo@master] WIP: blockInfoRetriever: Use BlockManager::getIPBlock()
https://gerrit.wikimedia.org/r/723528
Change 723530 had a related patch set uploaded (by Phuedx; author: Phuedx):
[mediawiki/core@master] Add BlockManager::getIPBlock()
https://gerrit.wikimedia.org/r/723530
https://gerrit.wikimedia.org/r/723530 introduces the BlockManager::getIPBlock() method, which gets blocks that apply to the given IP address, including system blocks.
I made the following notes while working on that patch:
Change 726910 had a related patch set uploaded (by Phuedx; author: Phuedx):
[mediawiki/extensions/IPInfo@master] tests: Cover DefaultPresenter::presentBlockInfo()
https://gerrit.wikimedia.org/r/726910
Change 726910 abandoned by Phuedx:
[mediawiki/extensions/IPInfo@master] tests: Cover DefaultPresenter::presentBlockInfo()
Reason:
Merging into Iad65ceee8b2...
https://gerrit.wikimedia.org/r/726910
Change 730029 had a related patch set uploaded (by Phuedx; author: Phuedx):
[mediawiki/core@master] block: Stop passing list of blocks around by ref
https://gerrit.wikimedia.org/r/730029
Change 730315 had a related patch set uploaded (by Phuedx; author: Phuedx):
[mediawiki/core@master] DatabaseBlock: Allow fetching of expired blocks
https://gerrit.wikimedia.org/r/730315
Change 730315 abandoned by Phuedx:
[mediawiki/core@master] DatabaseBlock: Allow fetching of expired blocks
Reason:
DatabaseBlockStore::insertBlock purges expired blocks.
https://gerrit.wikimedia.org/r/730315
Unfortunately, this was incomplete. Expired blocks are also purged in a job, which is enqueued whenever a block is inserted into the database: https://gerrit.wikimedia.org/g/mediawiki/core/+/3893aab376d34cbd674246d31283b060a0be63bf/includes/block/DatabaseBlockStore.php#199
https://gerrit.wikimedia.org/r/c/mediawiki/core/+/723530, https://gerrit.wikimedia.org/r/c/mediawiki/core/+/730029, and https://gerrit.wikimedia.org/r/c/mediawiki/extensions/IPInfo/+/723528 are ready for review. The latter removes the past blocks bit from the API response. I've captured figuring out how to get that information in T293263: [SPIKE] Investigate getting number of past block for IP (including IP ranges) [8H].
Change 723530 merged by jenkins-bot:
[mediawiki/core@master] block: Add BlockManager::getIPBlock()
https://gerrit.wikimedia.org/r/723530
Change 730029 merged by jenkins-bot:
[mediawiki/core@master] block: Stop passing list of blocks around by ref
https://gerrit.wikimedia.org/r/730029
Change 723528 merged by jenkins-bot:
[mediawiki/extensions/IPInfo@master] blockInfoRetriever: Use BlockManager::getIPBlock()
https://gerrit.wikimedia.org/r/723528
Below shows set up for Active block and Past blocks when network activity is viewed for IP info.