How to use VBO to bulk unflag?

Created on 18 October 2021, over 3 years ago
Updated 19 February 2025, about 2 months ago

Problem/Motivation

I'm, wondergin what the correct way to bulk unflag content is? Not sure if this is a feature request; but guessing its a bug.

I originally had a Content view which used a relationship to flagging and i had available actions for flag/unflag for each flag that i had. This showed up correctly on my view but crashed when i tried to use it. My guess is because VBO acts on the base id of the view which was the flagged Content and not the flag itself.

So i re-arranged my view to be a Flagging based view and used a patch to add reverse relationship back to the content that was flagged. When i do this i no longer have actions for flag/unflag each of the flags defined. I only have a "Delete flagging (unflag)" action and the generic "Delete selected entities / translations" action.

The Delete flagging action, although it shows up in Views preview; does not show up on my view.

The Delete select entities does show up and does work - but when i try it for a non-admin i get access denied.

I feel likei must be missing something here as we are 6 years into D8 and this feels like a pretty basic feature. Perhaps it is something that has recently been broken? I suspect it would take me less time to just write a custom action to do this but guessing there must be an issue here that i could help to fix if someone can confirm this doesn't work.

BTW:
flag: 8.x-4.0-beta2
vbo: 4.0.0
core: 9.1.11

also, when i said the flag/unflag actions show up on the content view (but don't work); on 1 install of the site (supposedly same db and same code); these do not show up as available actions when i look at the view normally (as opposed to preview; which all actions show up all the time - incorrectly)

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Postponed

Version

4.0

Component

Views integration

Created by

🇨🇦Canada liquidcms

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

Comments & Activities

Not all content is available!

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

Production build 0.71.5 2024