Edits to model appear to break configuration in View

Created on 26 July 2024, about 1 month ago

Problem/Motivation

This is difficult to describe, as it only happens intermittently while testing the proposed solution in https://www.drupal.org/project/eca_vbo/issues/3452900#comment-15699872 πŸ› Possible infinite recoursion in action deriver Needs review

I'm developing a simple Model to act upon selected entities (one at a time). I've done this successfully before in the previous version of ECA and ECA_VBO.

Occasionally, modifications to my Model cause the select boxes to disappear from the rendered View, and the View itself seems not to know that the Model exists any more - the message appears indicating that the ECA VBO field added requires a corresponding Model - which was working just previously.

The model is configured with some troubleshooting messages displayed to the screen which correctly print out info about each of the selected rows in the view (webform submissions associated with a source node), when the action is applied.

However, I must be misunderstanding exactly how to access and modify the desired fields in the webform submission, so I keep repeating the following steps, only to find that every so often, the checkboxes are gone and editing the View shows that it no longer recognizes the appropriate Model is still present.

Steps to reproduce

  1. Enable ECA_VBO (as modified with static variables discussed in the possible recursion issue πŸ› Possible infinite recoursion in action deriver Needs review )
  2. Create a basic Model starting with a VBO: Execute Views Bulk Operation (One by One), including an associated Access event
  3. Connect that to an Action step that loads an entity
  4. Connect that to an Action step that prints out some of the info on the screen to test with
  5. Edit an existing View to add the ECA VBO, selecting your new VBO Model-provided action
  6. Test by visiting your rendered View, selecting some rows, and applying your action, resulting in your message(s)
  7. Adjust your Model to test new changes - maybe by how the Entity: Load step tries to access the full selected entity, or maybe by modifying the tokens in your message, but do NOT modify the starting Event itself.
  8. Test your view again
  9. Repeat the last two steps as needed, but notice that occasionally, the view no longer has the checkboxes and the view configuration no longer shows the full ECA VBO dialog (where you selected your desired action(s). Instead, the dialog is replaced by the message you would have gotten if you had NOT yet created a VBO Model.
  10. Resave the Model and your view without any changes, clear cache (merely clearing cache does not seem to do the trick), and discover that the checkboxes and views configuration may have returned.
πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Glottus

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

Comments & Activities

Production build 0.71.5 2024