Display correct icon for software install status in activity feed modal
Fleet version: 4.81.0
Web browser and operating system: Version 145.0.7632.76 (Official Build) (arm64)
💥 Actual behavior
Regarding this issue, when a host is re-enrolled, Fleet’s activity feed initially shows a failed or cancelled app install due to the prior unenrollment. However, if the user manually installs the app on the iOS/iPadOS device and Fleet subsequently syncs with the device, the activity feed updates to indicate the app is installed. This reflects that Fleet’s status is based on the device’s current reported state, so the feed may transition from an error to a successful install if the app is later detected.
🛠️ To fix
The icon should always match the message. If we're looking at a failed activity, we should see the output of that activity, not the current installed status. If we look at the details modal from the software library, then if the app is installed (available in inventory), the icon should be green.
🧑💻 Steps to reproduce
- Queue up 2 or more installs
- Immediately unenroll the host while the first install is "pending" (or "installing")
- The first install should be failed, the second install should be silently cancelled with no activity.
- Check the details of the failure.
- Go to the actual device and still the apps promoted.
- Reenrolled the device using manual MDM.
- Once the device shows in the instance, check the device activity feed.
🕯️ More info (optional)
N/A
This issue has been automatically tagged as unreleased. If this is is incorrect, you may replace the label with ~released-bug. If this is correct, or might be correct, move this bug onto the appropriate product board to get a fix underway.
Thanks for catching this @Brajim20! Sounds like your host never had it's host record deleted (Actions > Delete). Please correct me if I'm wrong.
Do we expect to have an empty activity w/o clearing the host record? Up to @marko-lisica.
FYI Looks like we tagged this as ~unreleased. I'm not sure if it is so I'd lean ~unreleased but we want a fix/expected behavior first.
@noahtalerman Yes, I did not delete it. If the host is re-enrolled before Fleet removes it from the instance, the previous failure message will still appear as failed. However, the Install Details will show that the app was successfully installed, even though the red exclamation icon remains.
I think this is not related to re-enrollment. I experienced same thing, but did different steps.
- Open My device > Self-service.
- Install VPP app (I installed Keynote).
- Use Network Link Conditioner to make my conenction slow.
- App install failed due to VPP timeout (it's set to 20 minutes in dogfood).
- I disabled Network Link Conditioner, and Keynote downloaded.
- I refetched the host, and it now showed "Installed" status in Self-service table, and on the Host details > Software > Library.
- When I clicked on the status to open details modal, then icon was failed and copy: "Keyonote is installed".
Icon now correctly gets updated after a successfuly install
Icons that mirror state, Truth in software's install fate, Clear path, no debate.