Page MenuHomePhabricator

Enhanced Recent Changes needs hook(s) for customised formatting, similar to OldChangesListRecentChangesLine hook
Closed, ResolvedPublic

Description

Author: simon.white

Description:
The old (non-js) implementation of ChangesList provides a hook known as OldChangesListRecentChangesLine, which allows extensions to manipulate the rendering of a line of rc output. Today on master, this is at line 682 of ChangesList.php.

The new EnhancedChangesList does not provide a similar hook. This means that it would be difficult if not impossible for extensions to cleanly move functionality across from the old recent changes list.

At present, the obvious available work-arounds are to either patch the hook/behaviour into ChangesList.php, or to prevent users from using the enhanced recent changes list with $wgHiddenPrefs.

Details

Reference
bz53851

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:56 AM
bzimport set Reference to bz53851.

The "Old" in "OldChangesListRecentChangesLine" (as opposed to "Enhanced") kind of hints at how this is limited. A similar mechanism (or a generalisation of this one) for enhanced RC would be useful.

This is an issue in the core MediaWiki enhanced recent changes, not in the CleanChanges extension.

MatmaRex: Whoops. Thanks for corecting me!

Change 129116 had a related patch set uploaded by Aude:
Introduce EnhancedChangesCacheEntry hook

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

Change 129116 abandoned by Aude:
Introduce EnhancedChangesCacheEntry hook

Reason:
not sure we want this

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

Tobi_WMDE_SW set Security to None.

Would it not be sufficient to use the EnhancedChangesListModifyBlockLineData and EnhancedChangesListModifyLineData hooks? The interface is a bit different from OldChangesListRecentChangesLine, but I think it would not be too hard to share most code between them.

Would it not be sufficient to use the EnhancedChangesListModifyBlockLineData and EnhancedChangesListModifyLineData hooks? The interface is a bit different from OldChangesListRecentChangesLine, but I think it would not be too hard to share most code between them.

In fact, it was.