Enhance "Action will be executed on all items in the view" summary (exclude_mode)

Created on 9 October 2021, over 2 years ago
Updated 12 December 2023, 7 months ago

Problem/Motivation

I'm creating an Action that required a User to be able to review a sample of the data they have selected in a `buildConfigurationForm` method, even if they have selected all the entries in the view (The view is running in exclude_mode).

Currently the only message they get is "Action will be executed on all items in the view.", and there is not data availble in the Action context to dispaly anything relating to the entities that are about to be processed.

Proposed resolution

There could be a few solutions to this:

  1. Run the View query with a Limit to build a summary of Entities that will be processed.
    • Pros
      • Provides a better representation of the set of Entities that are about to be processed
    • Cons
      • Requires extra overhead to execute the View
  2. Store a list of just the visible selected entries on the form to be used as a summary
    • Pros
      • No overheads. Data is just stored in the context.
    • Cons
      • Could result in a smaller sample for review compared to the wider result set (Depends on page limit)

In either of the above scenarios I think just providing the data in the Action context for Action developers to utilise would be fine.

I may have overlooked a simple way to do this already, if so please let me know!

Cheers!

✨ Feature request
Status

Needs review

Version

4.0

Component

Actions

Created by

πŸ‡¬πŸ‡§United Kingdom lind101

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.

  • πŸ‡¬πŸ‡§United Kingdom Alexj12

    Just chiming in that I think this would be very helpful to implement. While a number is listed above I believe that the current messaging is not sufficient when a user has the potential of carrying out destructive behaviour on all items in a view.

    Will review the solution available as part of an ongoing piece of work in the coming weeks.

Production build 0.69.0 2024