Added bulk moderation actions for publishing content from the content listing. - #282
Conversation
… listing. Content moderation covers every node bundle, so core forbids the 'Publish content' and 'Unpublish content' bulk actions on all of them. Added 'drupal/moderated_content_bulk_publish', which supplies 'Publish latest revision', 'Unpublish current revision' and 'Archive current revision' actions that apply a workflow transition instead of flipping the 'status' field. Granted the new permissions to the roles that already hold the matching 'civictheme_editorial' transitions. Dropped the module's 'pin' and 'unpin' actions, which duplicate the core sticky actions, and turned off its node form confirmation dialog, which prompts on every save that targets the published state.
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 2 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (11)
Comment |
|
Code coverage (threshold: 80%) Per-class coverage |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #282 +/- ##
========================================
Coverage 85.84% 85.84%
========================================
Files 18 18
Lines 226 226
========================================
Hits 194 194
Misses 32 32 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Every node bundle on this site runs under the
civictheme_editorialcontent moderation workflow. Drupal core forbids the corePublish content/Unpublish contentbulk actions on moderated entities, so selecting nodes on/admin/contentand applyingPublish contentproduced aNo access to execute Publish content on the Content <title>error per row, for every account including uid 1. This addsdrupal/moderated_content_bulk_publish, which supplies bulk action plugins that apply a workflow transition instead of writing to thestatusfield directly.The module also ships optional
pin/unpinactions that only togglesticky, duplicating core'snode_make_sticky_action/node_make_unsticky_action, so those were not exported. Provisioning here isVORTEX_PROVISION_TYPE=database(database import plus config import, never a fresh profile install), so the module'sconfig/optionalis never reprocessed and they will not reappear.Checklist before requesting a review
[#123] Verb in past tense.#123added to descriptionChangedsectionChanged
drupal/moderated_content_bulk_publish^2.0(resolved to 2.0.52, security-advisory covered, ~11.5k sites) tocomposer.json, regeneratedcomposer.lock, and enabled the module inconfig/default/core.extension.yml.system.action.publish_latest.yml,system.action.unpublish_current.ymlandsystem.action.archive_current.ymlfor nodes, plussystem.action.media_publish_latest.ymlandsystem.action.media_unpublish_current.ymlfor media, since media bundles are moderated by the same workflow.config/default/moderated_content_bulk_publish.settings.yml: disabled the confirmation dialog on the node edit form (enable_dialog_node_edit_form: false), since it would otherwise prompt on every routine published-to-published re-save of a live page, kept it enabled on/admin/contentbulk operations (enable_dialog_admin_content: true) as a confirmation guard, disabled the toolbar language switcher (disable_toolbar_language_switcher: true, site is single-language), and turned off revision-info retention (retain_revision_info: false).moderated content bulk publish,moderated content bulk unpublishandmoderated content bulk archiveto thecivictheme_site_administratorandcivictheme_content_approverroles in their exported config, matching the roles that already hold the correspondingcivictheme_editorialpublish and archive transitions.civictheme_content_authorwas left out, matching its existing transition set;administratoralready inherits everything viais_admin: true.docs/faqs.md.Screenshots
N/A - composer, configuration and documentation change only, no template, style or display changes.
Before / After