Skip to content

Show the profile that's using a ruletype when trying to delete #5307

Open
@eleftherias

Description

When running minder ruletype delete --all, it's possible the ruletypes cannot be deleted because they are referenced by existing profiles.

In that case, we see:

The following rule type(s) are referenced by existing profiles and were not deleted:
repo_workflow_access_level
trivy_action_enabled

We should also show which profiles are referencing those ruletypes, for example:

The following rule type(s) are referenced by existing profiles and were not deleted:
repo_workflow_access_level
trivy_action_enabled

They are referenced by profiles:
custom-profile
dependency-security

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions