Skip to content

1.5.36 - stable release (October 2021) for MediaWiki 1.31-1.36

Compare
Choose a tag to compare
@edwardspec edwardspec released this 04 Oct 03:31
· 279 commits to master since this release

Changes in Moderation 1.5.36 since Moderation 1.4.20

Features:

  • Support MediaWiki 1.36.
  • API: Support sectiontitle= parameter of api.php?action=edit.

Bugfixes:

  • Move/upload via API won't unnecessarily Unwatch affected pages.
  • Fixed rare error during ApproveAll when some of the timestamp changes
    need to be ignored, while others don't need to be ignored.
  • Fixed post-approval adjustments to rev_timestamp (restoring time when
    the author did the change) not being applied:
    • to post-Move redirects,
    • when ApproveAll simultaneously approves Edit and Move on same page,
    • when approving a Move that overwrites an existing redirect.
  • PostgreSQL: fixed incorrect value returned by NewChange::queue().
  • PostgreSQL: order of edits during ApproveAll is now the same as with MySQL.
  • PostgreSQL: Special:Moderation no longer shows day/month in today's timestamps.
  • Fixed error when returning false from ModerationIntercept hook.

Refactoring, performance optimizations:

  • Reduced the number of SQL queries during RejectAll.
  • Major refactoring of everything (Consequence classes).
  • Major refactoring of everything (replacing static methods with Services).
  • Better performance of move/upload via API.
  • Reduced the number of SQL queries when upload is intercepted.
  • Refactoring of ModerationApproveHook class.
  • Removed static variables like NewChange::$LastInsertId.
  • Removed unneeded configuration variables like $wgModerationForceAjaxHook.

Compatibility:

  • Moderation won't intercept comments of Extension:CommentStreams,
    because CommentStreams incorrectly assumes "edit queued" to be an error.

Warnings fixed:

  • Fixed post-approval warning when using Moderation with Extension:Flow.

Troubleshooting tools:

  • Added debug log to ModerationApproveHook.

Test results

This version is stable and has passed all unit tests (with MediaWiki 1.36, 1.35, 1.31),
as well as Selenium tests of MobileFrontend (1.36, 1.35, 1.31) and VisualEditor (in 1.31 and 1.35 - completely, in 1.36 - with limitations, see below).

VisualEditor in MediaWiki 1.36

This version of Moderation fully supports VisualEditor in MediaWiki 1.31-1.35.
VisualEditor in MediaWiki 1.36 is partially supported. It's very much usable, but the following limitation exists: when a non-automoderated user saves an edit (which is queued for moderation), and then tries to continue editing the same page in VisualEditor, then VisualEditor (instead of allowing page to be edited in VisualEditor form) will instead redirect the user to a normal edit form. This normal edit form can be used to continue editing the pending revision. The first (initial) edit on the page is not affected: it can be made in VisualEditor.

NOTE: Extension:VisualEditor itself is under active development and its internals often undergo breaking changes. If you use VisualEditor with MediaWiki >=1.36, you should use the newest version of Moderation, not this release.