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'.

Comments

johnv created an issue. See original summary.

johnv’s picture

Title: View 'Workflow Entity history' not enabled » Optional Config is not enabled
Issue summary: View changes
johnv’s picture

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

johnv’s picture

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.

johnv’s picture

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.

  • johnv committed 2750c3ba on 8.x-1.x
    Issue #3215632: Optional Config is not enabled
    
johnv’s picture

Title: Optional Config is not enabled » Optional Config is not enabled
Version: 8.x-1.x-dev » 8.x-1.7
Status: Active » Fixed
johnv’s picture

Status: Fixed » Closed (fixed)

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