fleetdm / fleet

Open-source platform for IT, security, and infrastructure teams. (Linux, macOS, Chrome, Windows, cloud, data center)
https://fleetdm.com
Other
3.09k stars 426 forks source link

Better messaging when deleting scripts attached to policy automations #23048

Open allenhouchins opened 1 week ago

allenhouchins commented 1 week ago

Problem

I went to delete a script today so I could upload a new version since we don't currently allow in place updating (this should be a separate feature request if one doesn't already exist). I received an error message that the script couldn't be deleted because it was set for policy automation. This message should tell me what policies it is associated to and provide a link directly to them.

Screenshot 2024-10-21 at 9 55 12 AM

What have you tried?

N/A

Potential solutions

The error message should display either the name of the policy or a clickable link to the policy automation it is associated with.

What is the expected workflow as a result of your proposal?

When an admin attempts to delete a script that is associated to a policy automation, the error message should link the admin directly to the related policies so they can take quick action and not have to hunt this down.

We should make sure enhancements to this also work for the Install software automation.

noahtalerman commented 3 days ago

Adding this one to feature fest. It's a small UX win: https://fleetdm.com/handbook/company/product-groups#new-customer-promise-s

Check out the "understanding the why" Gong recording from 2024-10-28. Towards the end, Noah and Allen discuss UX weirdness: the manage automations button disappears if you're viewing a page of all inherited policies.

@marko-lisica I think let's see if we can take as part of #23243

noahtalerman commented 3 days ago

FYI @allenhouchins ^^