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

Created on 15 November 2024, 5 months 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" β†’ (Merged) 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.

  • Pipeline finished with Success
    5 months ago
    Total: 309s
    #339783
  • πŸ‡³πŸ‡΄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
    5 months ago
    Total: 2232s
    #344740
  • Pipeline finished with Failed
    4 months ago
    Total: 962s
    #365776
  • Pipeline finished with Failed
    4 months ago
    Total: 1237s
    #365796
  • Pipeline finished with Failed
    4 months ago
    Total: 1393s
    #365829
  • Pipeline finished with Canceled
    4 months ago
    Total: 122s
    #365859
  • Pipeline finished with Canceled
    4 months ago
    Total: 99s
    #365862
  • Pipeline finished with Failed
    4 months ago
    Total: 983s
    #365865
  • Pipeline finished with Failed
    4 months ago
    Total: 1112s
    #365912
  • Pipeline finished with Failed
    4 months ago
    Total: 1083s
    #365956
  • Pipeline finished with Failed
    4 months ago
    Total: 1078s
    #365973
  • Pipeline finished with Success
    4 months ago
    Total: 1045s
    #366042
  • Status changed to RTBC 3 months ago
  • πŸ‡©πŸ‡ͺGermany szeidler Berlin

    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

  • Pipeline finished with Skipped
    3 months ago
    #400882
    • eiriksm β†’ committed df1683d5 on 3.0.x
      Issue #3487744: Gutenberg install hook might conflict with installing...
  • πŸ‡³πŸ‡΄Norway eiriksm Norway
  • Automatically closed - issue fixed for 2 weeks with no activity.

  • Pipeline finished with Success
    2 months ago
    Total: 318s
    #415049
  • Pipeline finished with Skipped
    about 2 months ago
    #418691
Production build 0.71.5 2024