Provide a way for users to moderate custom blocks

Created on 27 August 2017, over 7 years ago
Updated 12 October 2023, over 1 year ago

Currently the content moderation and workflow modules allow site builder to apply a workflow to block types. But there is no moderated view to view those blocks in the workflow

Testing Steps

  1. Enable content moderation and workflow
  2. Configure workflow to work on any block type
  3. Go to custom block library
  4. Verify Moderated blocks tab
  5. Create a block leaving in draft
  6. Go to Moderated blocks page
  7. Verify you see the block

Original Post

Similar to #2902187: Provide a way for users to moderate content , we need to allow users to moderate block_content entities after #2820848: Make BlockContent entities publishable .

This is currently postponed on:
#2862041: Provide useful Views filters for Content Moderation State fields
#2902187: Provide a way for users to moderate content
#2820848: Make BlockContent entities publishable

Here's how the UI looks:

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component
Block content 

Last updated 2 days ago

Created by

🇷🇴Romania amateescu

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇦🇺Australia acbramley

    IMO this is not a bug, this is just providing a new UI to see moderated block content entities? Re-categorising to a FR. I also personally don't see much use for these screens (none of my client projects use these views) so downgrading the Priority.

    Also needs a reroll onto an MR.

  • 🇮🇳India prem suthar Ahemdabad- Gujrat , Jodhpur - Rajsthan

    prem suthar made their first commit to this issue’s fork.

  • Merge request !11196added the Re-rolled Mr From The #56 → (Open) created by prem suthar
  • Pipeline finished with Failed
    10 days ago
    Total: 126s
    #423117
  • Pipeline finished with Failed
    10 days ago
    Total: 130s
    #423152
  • 🇮🇳India prem suthar Ahemdabad- Gujrat , Jodhpur - Rajsthan

    After applying the Merge Request (MR), I tested the patched code locally. When I navigated to the Moderated Blocks page (Content → Blocks → Moderated Blocks or "/admin/structure/block/block-content/moderated"), I encountered an error.

    The website encountered an unexpected error. Try again later.
    
    TypeError: Drupal\Core\Cache\CacheableMetadata::setCacheTags(): Argument #1 ($cache_tags) must be of type array, null given, called in /var/www/html/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php on line 2416 in Drupal\Core\Cache\CacheableMetadata->setCacheTags() (line 29 of core/lib/Drupal/Core/Cache/CacheableMetadata.php).
    Drupal\views\Plugin\views\display\DisplayPluginBase->getCacheMetadata() (Line: 228)
    Drupal\views\Plugin\views\cache\CachePluginBase->generateResultsKey() (Line: 148)
    Drupal\views\Plugin\views\cache\CachePluginBase->cacheGet() (Line: 1479)
    Drupal\views\ViewExecutable->execute() (Line: 1514)
    Drupal\views\ViewExecutable->render() (Line: 201)
    Drupal\views\Plugin\views\display\Page->execute() (Line: 1690)
    Drupal\views\ViewExecutable->executeDisplay() (Line: 80)
    Drupal\views\Element\View::preRenderViewElement()
    call_user_func_array() (Line: 107)
    Drupal\Core\Render\Renderer->doTrustedCallback() (Line: 825)
    Drupal\Core\Render\Renderer->doCallback() (Line: 387)
    Drupal\Core\Render\Renderer->doRender() (Line: 203)
    Drupal\Core\Render\Renderer->render() (Line: 241)
    Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 593)
    Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 234)
    Drupal\Core\Render\MainContent\HtmlRenderer->prepare() (Line: 131)
    Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse() (Line: 90)
    Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray() (Line: 246)
    Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}() (Line: 206)
    Symfony\Component\EventDispatcher\EventDispatcher->callListeners() (Line: 56)
    Symfony\Component\EventDispatcher\EventDispatcher->dispatch() (Line: 188)
    Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
    Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53)
    Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
    Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
    Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
    Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 116)
    Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 90)
    Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
    Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
    Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 53)
    Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
    Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 709)
    Drupal\Core\DrupalKernel->handle() (Line: 19)
    
  • Pipeline finished with Failed
    10 days ago
    Total: 143s
    #423161
  • Pipeline finished with Failed
    10 days ago
    Total: 132s
    #423176
Production build 0.71.5 2024