Do not allow modules that provide a workflow type plugin with existing data to be uninstalled

Created on 23 August 2017, about 8 years ago
Updated 15 August 2025, 10 days ago

Problem/Motivation

Workflows are protected from being deleted if they contain data, but the module that provides the workflow type can still be uninstalled.

Proposed resolution

Prevent modules that provide workflow types that are in use from being uninstalled.

Remaining tasks

Discuss, add test coverage.

User interface changes

Nope.

API changes

Nope.

Data model changes

Nope.

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component

workflows.module

Created by

🇷🇴Romania amateescu

Live updates comments and jobs are added and updated live.
  • Needs reroll

    The patch will have to be re-rolled with new suggestions/changes described in the comments in the issue.

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.

  • 🇦🇺Australia acbramley

    Needs a reroll into an MR and quite a bit of refactoring to be in line with modern practices (strict types, etc)

    Do we have an example workflow type in contrib that would benefit from this? I.e workflowHasData returns TRUE when there are no entities provided by the module?

Production build 0.71.5 2024