-
Notifications
You must be signed in to change notification settings - Fork 843
Software fetched twice on Device User Page (performance issue) #19618
Copy link
Copy link
Closed
Labels
#g-endpoint-opsEndpoint ops product groupEndpoint ops product group#g-mdmMDM product groupMDM product group:releaseReady to write code. Scheduled in a release. See "Making changes" in handbook.Ready to write code. Scheduled in a release. See "Making changes" in handbook.bugSomething isn't working as documentedSomething isn't working as documented~backendBackend-related issue.Backend-related issue.~frontendFrontend-related issue.Frontend-related issue.~released bugThis bug was found in a stable release.This bug was found in a stable release.
Milestone
Metadata
Metadata
Assignees
Labels
#g-endpoint-opsEndpoint ops product groupEndpoint ops product group#g-mdmMDM product groupMDM product group:releaseReady to write code. Scheduled in a release. See "Making changes" in handbook.Ready to write code. Scheduled in a release. See "Making changes" in handbook.bugSomething isn't working as documentedSomething isn't working as documented~backendBackend-related issue.Backend-related issue.~frontendFrontend-related issue.Frontend-related issue.~released bugThis bug was found in a stable release.This bug was found in a stable release.
Fleet version:
4.50.0
Web browser and operating system:
💥 Actual behavior
When user clicks on Fleet Desktop icon and goes to the Device User Page, all the software is fetched right away with the host. The host may have over 1000 software items. All this data is fetched and not used. Then, when clicking the Software tab, software is fetched again via a different API.
When user refetches host details, all the software is again fetched multiple times via the hosts API. This is 100s of KBs that is never used.
🧑💻 Steps to reproduce
🕯️ More info (optional)
We had the same issue on the Host Details page, which was fixed as part of #19348
The backend part of the fix is trivial—add the
exclude_softwarequery param, as in the #19348 fix.This frontend fix is slightly more complex because the existence of software in the host response is used to imply the
isSoftwareEnabledconfig by the frontend.Why not simply use the new software API endpoint and imply the config from that response?