Page MenuHomePhabricator

Codex Special:Block is missing custom block reasons when viewing the page in another language
Closed, ResolvedPublic1 Estimated Story PointsBUG REPORT

Description

Steps to replicate the issue:

What happens?:

What should have happened instead?:

Other information:

Derived Requirement

Ensure that the Codex version of Special:Block displays all custom block reasons defined in MediaWiki:Ipbreason-dropdown for the local wiki, regardless of the language selected via the uselang parameter.

Test Steps

Test Case 1: Ensure Custom Block Reasons Appear on Codex Special:Block in Alternate Language

  1. Log into a wiki with administrator privileges (e.g., es.wikipedia.org).
  2. Open the URL: https://es.wikipedia.org/wiki/Especial:Bloquear/Johannnes89?usecodex=1&uselang=en.
  3. Expand the "Add block" section.
  4. Open the "Reason" dropdown.
  5. ✅❓❌⬜ AC1: Confirm that the list includes all custom block reasons defined in MediaWiki:Ipbreason-dropdown, in addition to the standard reasons.

Test Case 2: Ensure Custom Block Reasons Are Not Dependent on Interface Language

  1. In the same admin account, open https://es.wikipedia.org/wiki/Especial:Bloquear/Johannnes89?usecodex=1&uselang=es.
  2. Expand the "Add block" section and view the "Reason" dropdown.
  3. Compare the options listed with those from the uselang=en version.
  4. ✅❓❌⬜ AC2: Confirm that both versions (English and Spanish interface) show the same set of custom block reasons, despite the difference in UI language.

QA Results - Local

ACStatusDetails
1T390721#10730419
2T390721#10730419

Event Timeline

Change #1135125 had a related patch set uploaded (by MusikAnimal; author: MusikAnimal):

[mediawiki/core@master] SpecialBlock [Codex]: Show ipbreason-dropdown in the content language

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

Change #1135125 merged by jenkins-bot:

[mediawiki/core@master] SpecialBlock [Codex]: Show ipbreason-dropdown in the content language

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

@MusikAnimal Confirmed that the list includes all custom block reasons defined in MediaWiki:Ipbreason-dropdown, no matter the language, as seen in the gif/screenshots below. Also, I just wanted to give you a heads-up that the Special:Block form in AR, is missing a few things. Not sure if it's a big deal in Local but just wanted to let you know. I will mark this as Resolved. Thanks for all your work!

Test Result - Local

Status: ✅ PASS
Environment: Local- MediaWiki: 1.44.0-alpha (4ec157a) 00:06, 9 April 2025
OS: macOS Sequoia 15.4
Browser: Chrome 134
Device: MBA
Emulated Device: NA

Test Artifact(s):

http://localhost:8080/wiki/MediaWiki:Ipbreason-dropdown
http://localhost:8080/wiki/Special:Block/Localplayerone?usecodex=1&uselang=es

Test Steps

Test Case 1: Ensure Custom Block Reasons Appear on Codex Special:Block in Alternate Language

  1. Log into a wiki with administrator privileges (e.g., es.wikipedia.org).
  2. Open the URL: https://es.wikipedia.org/wiki/Especial:Bloquear/Johannnes89?usecodex=1&uselang=en.
  3. Expand the "Add block" section.
  4. Open the "Reason" dropdown.
  5. AC1: Confirm that the list includes all custom block reasons defined in MediaWiki:Ipbreason-dropdown, in addition to the standard reasons.
Ipbreason-dropdownEnglish
2025-04-09_11-12-26.png (2,002×738 px, 117 KB)
2025-04-10_08-14-38.png (1,266×1,006 px, 153 KB)

Test Case 2: Ensure Custom Block Reasons Are Not Dependent on Interface Language

  1. In the same admin account, open https://es.wikipedia.org/wiki/Especial:Bloquear/Johannnes89?usecodex=1&uselang=es.
  2. Expand the "Add block" section and view the "Reason" dropdown.
  3. Compare the options listed with those from the uselang=en version.
  4. AC2: Confirm that both versions (English and Spanish interface) show the same set of custom block reasons, despite the difference in UI language.
EsFrAr
gif
2025-04-09_12-19-41.mp4.gif (1,318×950 px, 1 MB)
2025-04-09_12-20-33.png (1,278×1,008 px, 161 KB)
2025-04-10_08-11-23.png (1,281×990 px, 128 KB)

No related Issue or if it's even a big deal in Local but just a heads up just in case

The Special:Block form in AR is missing a few things as seen below

2025-04-10_08-11-35.png (1,256×825 px, 132 KB)

GMikesell-WMF updated the task description. (Show Details)
GMikesell-WMF updated Other Assignee, removed: GMikesell-WMF.