Problem/Motivation
When we install our install profile/distribution that adds a custom workflow, the "Editorial" workflow gets added and enabled along with the custom workflow.
When we add the editorial workflow configuration to our install profile (profile//config/install/workflow.workflow.editorial.yml) and set the status to false, nothing happens.
Proposed resolution
- Prevent the editorial workflow getting added
- Remove it if the status of the workflow configuration is false.
How to reproduce
The simplest way:
- add the attached workflows.workflow.uw_workflow.yml file to drupal/core/profiles/standards/config/install.
- modify drupal/core/profiles/standards/standards/info.yml and add content_moderation and workflow as dependencies.
Then browse to admin/config/workflow/workflows and you will see 2 workflows.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | workflows.workflow.uw_workflow.yml | 1.4 KB | istryker |
Comments
Comment #2
istryker commentedComment #3
istryker commentedComment #4
sam152 commented@amateescu helped me track down an issue I was looking for related to this. Adding it now.
I think it would be worth reviewing what happens to other config entities when they are disabled in this manner. Workflow entities already consider themselves disabled if they don't have any states, I'm not sure how we use that information elsewhere in workflows.
Comment #5
sam152 commented@iStryker, it looks like this issue might solve the problem for your distribution: #2952307: Move workflow config into standard profile.
Do you think we can close this in favour of that?
Comment #7
sam152 commentedI believe this should be addressed now.