Host details > My device link doesn't work for iOS/iPadOS and doesn't make sense for Android/ChromeOS
Goal
| User story |
|---|
| As an IT admin, |
| I only want to see the "My device" link when it's relevant/available to the host |
| so that I don't see an error page. |
Changes
Product
- [ ] Changes:
- For iOS/iPadOS update the
/hosts/:id/device_urlto give you the correct URL for iOS/iPadOS hosts. Instead Fleet uses the host's UUID. - Remove Android and ChromeOS support from the
/hosts/:id/device_urlAPI. Return an easy to understand error message to tell end users that the My device page is only supported for macOS, Windows, Linux, and iOS/iPadOS. - For Android/ChromeOS, hide the "My device" link on the Host details page.
- On the "My device" page, revert to "My device" in heading instead of using the Full name.
- For iOS/iPadOS update the
- [ ] CLI (fleetctl) usage changes: No changes
- [ ] YAML changes: No changes
- [ ] REST API changes: No changes
- [ ] Fleet's agent (fleetd) changes: No changes
- [ ] Fleet server configuration changes: No changes
- [ ] Exposed, public API endpoint changes: No changes
- [ ] fleetdm.com changes: No changes
- [ ] GitOps mode UI changes: No changes
- [ ] GitOps generation changes: No changes
- [ ] Activity changes: No changes
- [ ] Permissions changes: No changes
- [ ] Changes to paid features or tiers: No changes—stays Free
- [ ] My device and fleetdm.com/better changes: No changes
- [ ] Usage statistics: No changes
- [ ] Other reference documentation changes: No changes
- [ ] First draft of test plan added
- [ ] Once shipped, requester has been notified
- [ ] Once shipped, dogfooding issue has been filed https://github.com/fleetdm/fleet/issues/55482
Engineering
- [x] Test plan is finalized
ℹ️ Please read this issue carefully and understand it. Pay special attention to UI wireframes, especially "dev notes".
Risk assessment
- Risk level: Low
Test plan
Make sure to go through the list and consider all events that might be related to this story, so we catch edge cases earlier.
Core flow
- [x] Confirm the "My device" link only appears on supported hosts (not Android/ChromeOS).
- [x] Confirm when you navigate to the my device page you see "My device" in the title instead of IdP set full name.
- [x] Confirm "My device" page works for Windows, macOS, Linux, iOS and iPadOS devices
Edge cases
- TODO
Supplemental testing
Testing notes
Confirmation
- [x] Engineer: Added comment to user story confirming successful completion of test plan (include any special setup, test data, or configuration used during development/testing if applicable).
- [ ] QA: Added comment to user story confirming successful completion of test plan.
- [ ] QA: Determined whether this story needs Playwright automation.
- Needs automation: Yes / No
- If yes, filed a follow-up issue in the :help-qa project with status "Needs automation":
FYI @JordanMontgomery @melpike I moved this bug over to ready to estimate. It's a drafting bug! I think we overlooked different platforms during drafting.
Transforming to story. Original request:
Fleet versions
- Discovered: Observed in dogfood (commit
5b09386b7e) - Reproduced: Observed in dogfood (commit
5b09386b7e)
Web browser and operating system:
💥 Actual behavior
Fleet shows the "My device" link on the Host details page for iOS/iPadOS hosts. When selecting the link, I see this error:
Fleet shows the link for Android/ChromeOS but it's not relevant. The end user has no way of getting to the My device page from Android/ChromeOS.
🛠️ Expected behavior
- @noahtalerman: For iOS/iPadOS update the
/hosts/:id/device_urlto give you the correct URL for iOS/iPadOS hosts.- I don't think Fleet doesn't use certificate based authentication (that change was reverted). Instead Fleet uses the host's UUID.
- Also remove Android and ChromeOS support from the
/hosts/:id/device_urlAPI. Return an easy to understand error message to tell end users that the My device page is only supported for macOS, Windows, Linux, and iOS/iPadOS.- For these platforms, hide the "My device" link on the Host details page.
🧑💻 Steps to reproduce
These steps:
- [ ] Have been confirmed to consistently lead to reproduction in multiple Fleet instances.
- [ ] Describe the workflow that led to the error, but have not yet been reproduced in multiple Fleet instances.
- Find a host in dogfood and select the "My device" link
🕯️ More info (optional)
N/A
@JordanMontgomery Assigned this to you, it seems to have been lying for a bit. It also seems to have been converted to a story format, if that is correct I think we should remove the bug label and add the story label instead.
QAed the changes for MacOS, iPadOS and iOS. Working as expected.
QA Pass with notes on rc-minor-fleet-v4.93.0 (1f30f3a). My device link, page and API checked on macOS, Windows, Linux, iOS, iPadOS, Android and ChromeOS, across roles, on Premium and Free.
| # | Area | Case | Result |
|---|---|---|---|
| 1 | Core | "My device" link shows on macOS, Windows, Linux, iOS and iPadOS hosts, and is hidden on Android and ChromeOS (including legacy CrOS) | ✅ |
| 2 | Core | Link opens the My device page on every supported platform; iOS/iPadOS land on self-service and list the fleet's apps on a real iPhone and iPad | ✅ |
| 3 | Core | My device heading and tab title read "My device", also when the host has an IdP full name | ✅ |
| 4 | API | Get host's device page URL: self-service URL for iOS/iPadOS, clear error for Android/ChromeOS, global admins only, same on all API versions | ✅ |
| 5 | Edge | Link hidden for fleet maintainers/observers and while a wipe is pending; works with Fleet Desktop SSO on | ✅ |
| 6 | Edge | iOS/iPadOS hosts not enrolled in MDM (Pending or Off) | ❌ #54129 |
| 7 | Free | Link, page and API behave as on Premium for macOS, Windows, Linux, Android and ChromeOS | ✅ |
| 8 | Free | iOS/iPadOS link leads to a self-service page that is always empty | ❌ #54140 |
Issues found
| Issue | Origin | Severity |
|---|---|---|
| #54129 "My device" link shows for iOS/iPadOS hosts that aren't enrolled in MDM | Released (4.92.0) | Low |
| #54140 "My device" link shows for iOS/iPadOS hosts on Fleet Free, where the page is always empty | Released (4.92.0) | Low |
notified customer-juliana
Links now work right Android fades from the view Admins see what works