Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The plugin_id is missing for components added by the wizard.
Proposed resolution
Make sure the wizard uses a proper api to add components. This should create a valid view with complete schema. dawehner proposed we should use ViewExecutable::addHandler
Remaining tasks
User interface changes
API changes
Comment | File | Size | Author |
---|---|---|---|
#2 | views-wizard-add-plugin-id-2363543.patch | 2.22 KB | webflo |
Comments
Comment #1
webflo CreditAttribution: webflo commentedComment #2
webflo CreditAttribution: webflo commentedAn attempt to fix this without using
ViewExecutable::addHandler
to keep the patch small.Comment #3
dawehnerMH, not sure what is the point in fixing something the wrong way, even we know it already.
Comment #4
jhedstromCNW based on #3.
Comment #5
dawehnerWe have one issue to use addHandler already, so I think the patch for itself on an abstract level seems fine, see #2383157: Let views wizards use ViewExecutable::addHandler
I bet in the meantime we though need to reroll the patch and maybe also write a test and what not.
Comment #14
LendudeCleaning up old bugs.
This seems to have been covered by #2381973: View wizard creates 'invalid' views out of the box, missing plugin_ids, insecure permissions, feel free to reopen this if you feel this is still an issue that was not fixed by that.