Page MenuHomePhabricator

Suggested investigations: Format notes into wikitext
Closed, ResolvedPublicFeature

Description

Feature summary: Special:SuggestedInvestigations has a "notes" column where one can comment. The content should be parsed as wikitext.

Benefits: Ease wikilinking to users, SPI cases, unblock requests, etc. There already exist examples with brackets to indicate links on enwiki.

I believe this can be implemented through CommentFormatter.php, which is what the 'reason' in the CU log also uses.

Event Timeline

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

We need to work out how to format the notes column when the user has edited the notes column using the status dialog. This likely means implementing the wikitext parsing on the client side, which AFAIK has some drawbacks and limitations.

We can likely parse the wikitext on the server and send it back to the client in the API response for display

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

[mediawiki/extensions/CheckUser@master] [WIP] Suggested investigations: Format notes column as wikitext

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

Change #1214637 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] Suggested investigations: Format notes column as wikitext

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

For QA I should suggest checking that using wikitext links in the reason field causes them to be rendered as wikilinks (i.e. [[Test]] should be a link to the page Test on the local wiki)

Test status: QA PASS

Sample Wikitexts used:

  • [[Main Page]]
  • [[Help:Contents]]
  • [[Extension:DynamicPageList (Wikimedia)|]]
  • [[:File:Example.jpg]]