Page MenuHomePhabricator

When creating new wikibase items, if wgPageCreationLog is enabled wbeditentity-create isn't parsed
Open, Needs TriagePublicBUG REPORT

Description

At https://wikidata.beta.wmflabs.org/wiki/Special:Contributions/DannyS712, the edit summary for creating a page is "Created a new Item" or "Created a new Property", ...
However, at https://wikidata.beta.wmflabs.org/wiki/Special:Log/DannyS712, in the log of pages created, it says a raw "wbeditentity-create:2|en" rather than the parsed result

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
DannyS712 changed the subtype of this task from "Task" to "Bug Report".Mar 19 2020, 4:39 AM
DannyS712 added a project: I18n.

Okay, so it took a lot of tracing, but:

  • LogFormatter gets the rendered comment from Linker::commentBlock( $this->entry->getComment() );
  • Linker::commentBlock includes $comment = self::formatAutocomments( $comment, $title, $local, $wikiId );
  • Linker::formatAutocomments should be running the FormatAutocomments hook, since the comment stored should match !(?:(?<=(.)))?/\*\s*(.*?)\s*\*/(?:(?=(.)))?!
  • Wikibase should be handling the hook the same way it does for page histories, etc, and showing the user a proper message

I'm not familiar enough with this code, and don't have wikibase installed locally, to try and trace further, but hopefully this helps with debugging