Install
Works with Drupal: ^11.2 || ^12Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
98.32 KB
MD5: a6f7177f8c385c60133b3e86febac483
SHA-1: fe1a09879b131cd16d7727e0db90c57b75239c7b
SHA-256: 2aea6428f3daf1ecb06f4e06184ac882740439e6bc59dfdee3aadbc6df525b90
Download zip
151.33 KB
MD5: a65c8c8df4be316ff38a75e43bdb460d
SHA-1: f67208e3b1148a62874f0803ac67499b52946199
SHA-256: d047608576a9bf0dd389d9015a184e5706fc5837ef0d90352bc3d33455666060
Release notes
A maintenance release for the 1.2.x branch. Run drush updb after updating (updates 10210 and 10211).
Fixed
- Author filter: picking an author in the dashboard filters returned a "400 Bad Request" page, because the autocomplete value ("name (123)") was read as a number. All dashboard tabs and Review Mode now accept it.
- Digest counts: the digest is built from cron, which runs as the anonymous user. On sites with a node access module (Group, for instance) it only counted what the public could see. The digest now counts all tracked content; tagged query alter hooks still apply, so site-specific scoping keeps working.
- Review status page title: the status badge was part of the page title and showed up as text in the browser tab and breadcrumbs. The title is plain again; the badge sits next to the notice heading.
- Content Moderation: Mark as reviewed, the bulk forms and the "Mark content as reviewed" action saved the published revision as a new revision, which pushed an editor's pending draft out of "Latest version". The review is now also copied onto the pending draft, which is saved again so it stays the latest revision. A review recorded while saving a draft still takes effect when the draft is published; the README explains this.
- Config validation: the settings now carry a language code (the deletion reasons are translatable text), and the digest frequency constraint uses the syntax Drupal 11.4 expects. Update 10211 adds the language code on existing sites.
- Deletion requests that nobody acted on could not be closed once their cancellation window had passed, and still allowed "Mark reviewed". Users with Cancel any content deletion request can now withdraw such a request, and Mark as reviewed is not offered while a request is pending (cancel the request first).
- Stale status after midnight: the "Content review" tab count, the notice on node pages, the Review status page and the Views fields were cached until some content was saved, so a page that fell due overnight kept reading "Due soon" until the next save on the site. Everything that shows a review status now expires at the next midnight.
- Imports and reverts: an update saved while syncing (a migration or content import run from the UI) was recorded as a review of every imported page. Reverting to an older revision brought back that revision's review date, note and schedule along with its text. Syncing saves are now ignored, and a revert keeps the current review (the more recent of the two, so a draft reviewed while it was written keeps that review when published).
- Bulk actions and cancelled accounts: core's Publish, Unpublish, Promote and Sticky actions on
/admin/content, and the content reassignment that happens when an account is cancelled, recorded a review by the person who ran them. A save that changes nothing but publishing or ownership flags no longer counts; a save from the edit form still does. - The Views "Review status" field's options now have config schema (saving a view with it failed strict schema checks).
Changed
- "Content review" tab on the content overview (#3636743, by svendecabooter): the dashboard is now a tab on
/admin/content, with the number of items that need review, so it can be found with the Navigation module too. The dashboard's own tabs (Needs review, Review Mode, Due soon, ...) became secondary tabs. The menu link under Content stays for toolbar users. - Review badges after the title on
/admin/contentare gone, together with the "Show review badges in the admin content listing" setting; they crowded the listing. To show review information there, add the "Review status" field from the Content review group to the Content view. The update removes the old setting. - The "Last reviewed" and "Next review" fields use the module's "Content review date" format by default when displayed on a node, instead of the medium format with a time of day.
- Site time zone: whether content is due, overdue or critical is now judged against today's date in the site's default time zone rather than each user's. Everyone sees the same status, the digest and the deletion-request deadlines agree with the dashboard, and the pages cache properly. Sites whose editors all share the site's time zone see no difference.
- Fewer queries: a dashboard page of fifty rows went from about 360 to 125 SQL statements (the deletion requests are read once, the authors and reviewers loaded together), and the per-author digest from a count query per author and content type to one pass over the stale list.
Developers
ReviewFilters::fromRequest()now parses the author value itself;ReviewFilterForm::uidFromQuery()is deprecated and will be removed in 2.0.0. UseReviewFilters::uidFromQuery().ReviewQuery::withoutAccessCheck()returns a copy of the query service for work outside a request, such as cron.- Mark access (
ContentReviewAccessCheck::OP_MARK) is forbidden while a deletion request is pending; cancel access (OP_CANCEL_DELETION) after the window closes requires Cancel any content deletion request. ReviewedDateManager::timezone()andsecondsUntilTomorrow()give the site's time zone and the max-age to use for anything that shows a review status.DeletionRequestManager::resetCache()drops the per-request copy of the pending requests after writing to the table directly.- A view that filters on review status and uses the default tag-based caching keeps its result set until some content is saved; give it time-based caching if that matters.
101 automated tests (unit, kernel and functional) run on Drupal 11.2+ and 12.