Page MenuHomePhabricator

Suggested investigations: Prefill the reason for a check for links to Special:CheckUser and Special:Investigate
Closed, ResolvedPublicFeature

Assigned To
Authored By
Izno
Sep 25 2025, 7:05 PM
Referenced Files
F70681760: checl_user_prefill_reason.webm
Nov 27 2025, 5:26 AM
F70293760: image.png
Nov 19 2025, 10:48 PM
F70293758: image.png
Nov 19 2025, 10:48 PM
F70293744: image.png
Nov 19 2025, 10:48 PM
F70293741: image.png
Nov 19 2025, 10:48 PM
F70291796: image.png
Nov 19 2025, 6:38 PM
F70291799: image.png
Nov 19 2025, 6:38 PM
F70291792: image.png
Nov 19 2025, 6:38 PM

Description

Feature summary (what you would like to be able to do and where):
Starting a check using the check links in Special:SuggestedInvestigations should have a prefill for the check, perhaps something like "user_name from [[Special:SuggestedInvestigations/InvestigationID|Investigation ID N]]" or "user_name from Special:SI" without an identifier.

Benefits (why should this be implemented?):
Papercut having to fill out the reason for a check.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change #1207214 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CheckUser@master] Prefill links to CheckUser from Special:SuggestedInvestigations

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

Dreamy_Jazz renamed this task from Add a prefill from the Checkuser links to Suggested investigations: Prefill the reason for a check for links to Special:CheckUser and Special:Investigate.Nov 19 2025, 6:34 PM

The above patch proposes the following prefilled reasons:

Links to Special:CheckUserLinks to Special:Investigate
View in form
image.png (713×1 px, 57 KB)
image.png (886×1 px, 143 KB)
View in Special:CheckUserLog
image.png (80×1 px, 40 KB)
image.png (187×1 px, 91 KB)

Any thoughts on these?

I'd probably trim the link text to suggested investigation #36 since investigation and case are the same intent.

Having the capital letter mid sentence is sad.

Shorter would be something like Suggested investigation #N: user which doesn't go so well with investigate? Was the intent with Special:Investigate to hit all the users in the message or the literal 'users' here? I think investigate needs a different message anyway so it could have a different format regardless.

Kind of ambivalent about the number sign but might be something to trim. It's just noise.

The use of the full phrase "suggested investigation" is also noise but I don't have an issue with that being the default text since I guess SI is not going to be the abbreviation everywhere this is deployed.

^ All bikeshedding to me either way.

Thanks for the feedback.

Shorter would be something like Suggested investigation #N: user which doesn't go so well with investigate? Was the intent with Special:Investigate to hit all the users in the message or the literal 'users' here? I think investigate needs a different message anyway so it could have a different format regardless.

I think the latter. The idea is that the Special:Investigate check could have up to 10 users in the initial check and therefore listing them all seemed like it would make the reason too long to read.

The use of the full phrase "suggested investigation" is also noise but I don't have an issue with that being the default text since I guess SI is not going to be the abbreviation everywhere this is deployed.

We could make an abbreviation, though given translations, the abbreviation form may mean some other well known on-wiki process (so that may not be as feasible)

I'll look to implement the rest of your feedback

The reason prefill with changes in response to the above feedback:

Links to Special:CheckUserLinks to Special:Investigate
View in form
image.png (710×1 px, 56 KB)
image.png (621×1 px, 55 KB)
View in Special:CheckUserLog
image.png (94×1 px, 38 KB)
image.png (91×1 px, 37 KB)

Kind of ambivalent about the number sign but might be something to trim. It's just noise.

Designs that have been produced for the detail view use # before the case ID, so this is why I chose to use it here too. It can be changed if desired

Change #1207214 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] Prefill reason for CheckUser links on SuggestedInvestigations

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

QA Status: QA PASS

When the check user is clicked the reason is prefilled in the reason field