Problem/Motivation

Currently trying to assemble all needed for something reproducible, but I think the install goes fine. Then if we go on to try to import config on top of that, this happens (sorry for the Norwegian output):

Warning:    [warning] Undefined array key "uuid" StorageComparer.php:259                
Notice:    [notice] Fullfører synkronisering av konfigurasjon.                         
                                                                               
  In ConfigImportCommands.php line 290:                                        
                                                                               
                                                                               
    The import failed due to the following reasons:                            
                                                                               
    Uventet feil under import med handlingen create for views.view.reusable_b  
  lo                                                                           
    cks: 'view' entity with ID 'reusable_blocks' already   
  ex                                                                           
    ists.                                                                      
                                                                               
                                                                               
                                                                               
                                                                               
  In ConfigImportCommands.php line 276:                                        
                                                                               
    Errors occurred during import                                              
                                                                     

I have a feeling it might be related to gutenberg having views.view.reusable_blocks in both install and optional folder, but not sure yet.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork gutenberg-3487744

Command icon 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

eiriksm created an issue. See original summary.

eiriksm’s picture

Status: Active » Needs review

The issue is that if we save a config file in the install hook, then that saving of the config will mess up for Drupal when trying to figure out which config to keep.

And we don't have to do that either, we can just update the config directly.

I also deleted the optional config, since it's not applicable, as gutenberg requires views.

eiriksm’s picture

As anecdotal evidence goes, I can verify this fixes the CI job that was failing without this applied.

szeidler’s picture

Status: Needs review » Reviewed & tested by the community

I also got hit by the problem in our CI. Since views is a dependency in Gutenberg anyhow, the changes make sense.

Thanks for the effort @eiriksm

  • eiriksm committed df1683d5 on 3.0.x
    Issue #3487744: Gutenberg install hook might conflict with installing...
eiriksm’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.