Fleet API: Return 0 hosts instead of 404 when filtering hosts by team x software non existent on that team (#30249)

## Issue
Closes #26258 

## Description
Returns 0 hosts instead of some random VPP error when software_status is
valid but software_title_id doesn't exist on that team

## Screenshot of fix
<img width="1186" alt="Screenshot 2025-06-23 at 2 04 52 PM"
src="https://github.com/user-attachments/assets/577cc05a-c8e4-4aaf-85c4-38ab9403018b"
/>


## Screenshot of before

<img width="1176" alt="Screenshot 2025-06-23 at 1 50 40 PM"
src="https://github.com/user-attachments/assets/cb0b6ccd-79dd-4309-ae5d-c1c1b938292d"
/>

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

<!-- Note that API documentation changes are now addressed by the
product design team. -->

- [x] Added/updated automated tests
- [x] Manual QA for all new/changed functionality

---------

Co-authored-by: Ian Littman <iansltx@gmail.com>
This commit is contained in:
RachelElysia
2025-06-24 11:32:37 -04:00
committed by GitHub
co-authored by Ian Littman
parent e71d00c688
commit ef6b49dc6e
3 changed files with 32 additions and 1 deletions
@@ -0,0 +1 @@
- Fixed software title ID + installer status filters to return an empty array with 0 count instead of 404 when an installer is not present on a team