Update views config to work sector's required VBO version

Created on 22 September 2023, about 1 year ago
Updated 27 September 2023, about 1 year ago

Problem/Motivation

Sector Content Audit's view as provided does not work with the more recent VBO version

Steps to reproduce

Install Sector Content Audit, attempt to access to Content Audit view, it produces an error

Proposed resolution

Update the view config to work with Sector's currently required VBO version

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇳🇿New Zealand somatick

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @somatick
  • 🇳🇿New Zealand somatick

    Patch with updated view config yml attached

  • 🇳🇿New Zealand somatick

    Pasted too hastily and missed a line, use this patch.

  • 🇳🇿New Zealand somatick

    Sheesh. I think the encoding was bung with that one. Third time's the charm.

  • 🇳🇿New Zealand somatick

    Ok phew patch #4 applied.

    The view now appears to be working, but testing some of the individual actions there are some other issues/strange interactions exposed.

    Using the 'Modify field values' action, produces an error from the rabbit hole module, which could be related to this issue:
    https://www.drupal.org/project/rabbit_hole/issues/3383171 🐛 Error: Call to undefined method Drupal\entity_browser\Form\EntityBrowserForm::getEntity() Needs review
    Rabbit hole is required by the main sector project so if it is to be patched or updated will likely need to be done there.

    Also choosing a publish or unpublish action if content moderation is enabled fails and produces a message "Cannot directly (un)publish moderated entities" - which comes from core, however there don't seem to be any suitable actions available for modifying the status of moderable entities.

  • 🇳🇿New Zealand somatick

    After further discussion it was decided to disable the publish and unpublish actions on the content audit view by default

    > I am happy for now to remove the publish un-publish ones from the content audit completely. That is definitely a workflow task! The audit is more for transparence, decision making, and tagging ...

    The latest patch includes the above fix as well as the removal of the publish/unpublish options

    • somatick committed 5b5b1eda on 2.0.x
      Issue #3389011 by somatick: Update views config to work sector's...
Production build 0.71.5 2024