Problem/Motivation
DRupal status report warns vlsuite bundle fields must be uninstalled.
Steps to reproduce
Install VLsuite modules that adds bundle fields. Then go to status report. It will mention that vlsuite bundle fields needs to be uninstalled.
Proposed resolution
Drupal requires any bundle field to be added to entity field storage info hook. Otherwise, it will recognize the bundle as a field that needs to be removed.
So, implementing that hook for each bundled class that adds extra fields is key.
Issue fork vlsuite-3476173
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
omarlopesinoPlease review the attached MR, thanks!
Comment #4
crzdev commentedThen core patch related to bundle fields should not be needed, pending checking this for all use cases that suite provides as remove just some of those fields or entities & verify base tables.
Comment #6
crzdev commentedNot working current approach into all scenarios, adjusting with @omarlopesino
Storages are installed when first block module uses specific type, as usages are multiple, that "provider" should be "vlsuite_bundle_fields" in order to adjust install / uninstall storages properly.
Comment #7
crzdev commentedTo evaluate after new approach is ready:
- Check existing site (without status report errors)
- Check layout builder bundle fields patch is not required any more
Comment #9
crzdev commentedNew approach working as expected:
- Layout builder bundle fields added to field map still needed
- No error report related to bundle field storages
- Tested with new vlsuite demo setup
- Tested for existing sites
Comment #11
crzdev commentedMR changes integrated into 2.x!