minder icon indicating copy to clipboard operation
minder copied to clipboard

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

Open eleftherias opened this issue 1 year ago • 0 comments

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

eleftherias avatar Jan 15 '25 10:01 eleftherias