Skip to content

Host API: Invalid filter response #8152

@RachelElysia

Description

@RachelElysia

Goal

  • In an ideal world, the host API will return an error message if one of the filters is invalid (e.g. policy_id=23948023 is invalid, mdm_id=21304983450 is invalid).
  • Currently this is happening for the software_id being invalid(see screenshot), but not other filters.
  • Other filters that are not erroring out just respond with an empty host array hosts: []
  • We would want to have a similar error response to the software_id being invalid applied to other invalid filters

Screen Shot 2022-10-10 at 12 26 38 PM

This is related to #7209 and potentially creating a similar banner for any invalid filter. It's just hard to build if the validation process is not consistent.

TODO

How?

  • Apply to the following filters:
  • mdm_id
  • policy_id
  • munki_issues
  • os_name
  • os_version

Metadata

Metadata

Assignees

No one assigned

    Labels

    stale~backendBackend-related issue.~engineering-initiatedEngineering-initiated story, such as a bug, refactor, or contributor experience improvement.~legacy-interface-product-groupAssociated with the legacy "interface" product group. (No longer exists)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions