Gutenberg install hook might conflict with installing sites with drush and "--existing-config"

Created on 15 November 2024, about 1 month ago

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

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇳🇴Norway eiriksm Norway

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

Merge Requests

Comments & Activities

  • Issue created by @eiriksm
  • Merge request !211Resolve #3487744 "Gutenberg install hook" → (Open) created by eiriksm
  • 🇳🇴Norway eiriksm Norway

    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.

  • 🇳🇴Norway eiriksm Norway

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

  • Pipeline finished with Success
    about 1 month ago
    Total: 2232s
    #344740
  • Pipeline finished with Failed
    11 days ago
    Total: 962s
    #365776
  • Pipeline finished with Failed
    11 days ago
    Total: 1237s
    #365796
  • Pipeline finished with Failed
    11 days ago
    Total: 1393s
    #365829
  • Pipeline finished with Canceled
    11 days ago
    Total: 122s
    #365859
  • Pipeline finished with Canceled
    11 days ago
    Total: 99s
    #365862
  • Pipeline finished with Failed
    11 days ago
    Total: 983s
    #365865
  • Pipeline finished with Failed
    11 days ago
    Total: 1112s
    #365912
  • Pipeline finished with Failed
    10 days ago
    Total: 1083s
    #365956
  • Pipeline finished with Failed
    10 days ago
    Total: 1078s
    #365973
  • Pipeline finished with Success
    10 days ago
    Total: 1045s
    #366042
Production build 0.71.5 2024