Files
fleet/server
Jordan Montgomery 7570bff6da Refactor desired state query for readability/maintainability (#40130)
<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** 

Refactoring these complex desired state queries for readability. No
functional changes

# Checklist for submitter

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


- [x] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)
- [x] If paths of existing endpoints are modified without backwards
compatibility, checked the frontend/CLI for any necessary changes

## Testing

- [x] QA'd all new/changed functionality manually
2026-02-19 17:18:46 -05:00
..
2026-02-11 15:00:10 -03:00