Steps to replicate the issue (include links if applicable):
- Navigate to Special:Block.
- Block the IP range 1.2.3.20/30.
- Block the IP range 1.2.3.21/30.
- Once blocked, search for 1.2.3.20 or 1.2.3.21.
What happens?:
The search does not return any results for 1.2.3.20 or 1.2.3.21, even though those IPs were blocked within the specified ranges.
What should have happened instead?:
Special:Block should display the blocks associated with 1.2.3.20 and 1.2.3.21.
OS: macOS Sequoia 15.4
Browser: Chrome 134
Device: MBA
Site: https://test.wikipedia.beta.wmflabs.org/wiki/Special:Block/1.2.3.20/30
Acceptance criteria
- When searching for an IP or range, show an "Active range blocks" accordion and table, listing each range block that effects the target
- If the target is itself a range which is blocked, the block is instead shown in "Active blocks"
- The "Active range blocks" table should have only a "View" link in each row, which when clicked will change the target to that range.
- Doing the same for the "Block log" is out of scope and not part of this task.
- "Active range blocks" is always shown when looking up an IP or IP range, but has an empty state if there are no entries in the table
Derived Requirement
Ensure that when a user searches for an IP or IP range on Special\:Block, any active range blocks affecting the target are surfaced under an "Active range blocks" accordion, with a table listing the matching range blocks and a "View" link for each. If the searched target is itself a range that is blocked, it should instead appear under "Active blocks". The range blocks section must appear consistently, with an empty state shown when applicable.
Test Steps
Test Case 1: Display #Active range blocks when a single IP is covered by a blocked range
- Navigate to Special\:Block.
- Block the range 1.2.3.20/30.
- In the Special\:Block input field, enter the IP 1.2.3.21 and load the page.
- ✅❓❌⬜ AC1: Confirm that an "Active range blocks" accordion appears below the input field.
- ✅❓❌⬜ AC2: Confirm that the accordion contains a table entry showing the 1.2.3.20/30 range block.
Test Case 2: Clicking 'View' updates target to blocked range
- From the "Active range blocks" table, click the "View" link next to the range block.
- ✅❓❌⬜ AC3: Confirm that the page updates and shows 1.2.3.20/30 as the target.
Test Case 3: Blocked range target appears under 'Active blocks'
- Go to Special\:Block and enter the IP range 1.2.3.20/30.
- ✅❓❌⬜ AC4: Confirm that this range appears in the "Active blocks" section and not in the "Active range blocks" section.
Test Case 4: Verify empty state of #Active range blocks
- Go to Special\:Block and search for an IP or range that is not covered by any existing range block (e.g., 8.8.8.8).
- ✅❓❌⬜ AC5: Confirm that the "Active range blocks" section is still shown but displays an appropriate empty state (e.g., "No range blocks found").
QA Results - Test Wiki Beta
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T389987#10814148 |
| 2 | ✅ | T389987#10814148 |
| 3 | ✅ | T389987#10814148 |
| 4 | ✅ | T389987#10814148 |
| 5 | ✅ | T389987#10814148 |






