Page MenuHomePhabricator

Page creation log become unknown once $wgPageCreationLog is disabled
Open, Needs TriagePublic

Description

Reproduce:

  • Enable $wgPageCreationLog
  • Create some pages
  • Disable $wgPageCreationLog
  • View Special:Log

Actual:
Seeing XXX performed unknown action "create/create" on YYY

Expected:
At least the log entry should be displayed normally.

In addition (all are optional):

  • If we hide page creation log from list of selectable log type (which is the currently behavior, not sure whether we should change), we probably need another way to filter existing creation log entries out (again, not sure whether it is worth to add this feature)
  • Alternatively we can hide all existing creation log entries. (personally I don't think it is a good solution)

See also: T379528: DiscussionTools should not insert page creation log entries if $wgPageCreationLog is disabled

Event Timeline

This is not peculiar to page creation log, it's the same for any log that can be disabled/re-enabled.

But simply the action is unknown. That's true.

At least the log entry should be displayed normally.

Yes. If we know the action that's what we already do. But this action is unknown. That's all we know.

There's a precedent for shim code that Wikimedia can use to make these unknown actions more presentable similar to T222918. But there's no intention to disable $wgPageCreationLog where it's enabled now. So I don't think there's anything to do here. The thing to fix is T379534