Optional Config is not enabled

Created on 25 May 2021, almost 4 years ago
Updated 20 February 2024, about 1 year ago

Problem/Motivation

In D9, the 'optional config' is not enabled upon installation of Workflow and optional modules:

  • \workflow\config\optional\block.block.workflowtransitionform.yml
  • \workflow\config\optional\system.action.change_a_node_to_next_workflow_state.yml
  • \workflow\config\optional\views.view.workflow_entity_history.yml

Regarding the View:
id: workflow_entity_history
label: 'Workflow Entity history'
This is actively called in WorkflowTransitionListController.
The view is displayed on the Entity view, tab 'History'.

πŸ› Bug report
Status

Active

Version

1.0

Component

Views

Created by

πŸ‡³πŸ‡±Netherlands johnv

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡³πŸ‡±Netherlands johnv

    I see, working on this.

    To import manually:
    - Navigate to the destination site in your browser at admin/config/development/configuration/full/import
    - Select the configuration archive and select upload
    - You will see a list of all the configuration items
    - Scroll down to the bottom and click the import all button

  • πŸ‡³πŸ‡±Netherlands johnv

    The history view gives error "Route "entity.workflow_state.canonical" does not exist." when testing views.view.workflow_entity_history .
    The link to the from and to states must be removed.

  • πŸ‡³πŸ‡±Netherlands johnv

    All 3 files have problems, because they were not updated to the newest standards:
    - dependency on Drupal version
    - dependency on other module, theme

    If needed, the config can be deleted.
    - the history view can be deleted anyway
    - block can be deleted as such: \Drupal::configFactory ()->getEditable ( 'block.block.workflowtransitionform' )->delete ();

    Then, they can be re-imported calling \Drupal::service('config.installer')->installOptionalConfig();

    The patch will update all 3 configuration files.
    running update.php will install the files, as they should have.

  • Status changed to Fixed about 1 year ago
  • πŸ‡³πŸ‡±Netherlands johnv
  • Automatically closed - issue fixed for 2 weeks with no activity.

  • πŸ‡ΊπŸ‡ΈUnited States nmangold United States

    I do not think this was fixed correctly. I am updating from 1.7 to 1.8 using D10.1. The optional configurations are enabled during database updates (which seems like those are not optional now). When the configurations are exported, the block.block.workflowtransitionform.yml has NULL for the theme. Then, configuration import fails with the following error messages.

     [error]  Drupal\Core\Config\ConfigImporterException: There were errors validating the config synchronization.
    Configuration <em class="placeholder">block.block.workflowtransitionform</em> depends on the <em class="placeholder"></em> theme that will not be installed after import. in Drupal\Core\Config\ConfigImporter->validate() (line 814 of /var/www/html/docroot/core/lib/Drupal/Core/Config/ConfigImporter.php).
    
    In ConfigImportCommands.php line 290:
    
      The import failed due to the following reasons:
      Configuration <em class="placeholder">block.block.workflowtransitionform</em> depends on the <em class="placeholder"></em> theme that will not be installed
       after import.
    
    
    In ConfigImporter.php line 814:
    
      There were errors validating the config synchronization.
      Configuration <em class="placeholder">block.block.workflowtransitionform</em> depends on the <em class="placeholder"></em> theme that will not be installed
       after import.
    
  • πŸ‡³πŸ‡±Netherlands johnv

    Please upgrade to new version 2.0.0.

Production build 0.71.5 2024