Problem/Motivation

Hi, I just uninstalled the module and this results in all workflows to be removed from the database.

Steps to reproduce

Uninstall the module => workflows are gone in /admin/config/workflow/workflows

Comments

Ludo.R created an issue.

el1_1el’s picture

I took a look and it does warn you the workflows will be deleted prior to uninstalling. After checking my workflows in admin/config/development/configuration/single/export it looks like every workflow includes

dependencies:
  config:
    - node.type.xxx
  module:
    - content_moderation_bypass

After commenting out all functionality while leaving classes intact to see if I could have that dependency removed, I can only guess that the dependency is added due to the extending of the content moderation module

Hopefully someone may have a better way to fix this properly in an uninstall hook but in the meantime, the best way to uninstall is to remove

  module:
    - content_moderation_bypass

from every workflow export and reimport prior to uninstalling, sort of like you have to do for modules that have field or entity dependencies. sorry

ludo.r’s picture

Yes indeed, that's what I did, but in the future would be better to have a more streamlined way of uninstalling the module.

Thanks for the feedback!