Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Filter failures with confidence with score #1092

Open
chaws opened this issue Feb 24, 2023 · 0 comments
Open

Filter failures with confidence with score #1092

chaws opened this issue Feb 24, 2023 · 0 comments

Comments

@chaws
Copy link
Collaborator

chaws commented Feb 24, 2023

In endpoints like: https://qa-reports.linaro.org/api/builds/140432/failures_with_confidence/

It might be useful to have results filtered by score, something like appending this url with &score=80 for score exactly as 80% or &score__gt=80 for score >= 80% or &score__lt=80 for score <= 80%.

This seems to be trivial, since it just needs:

  1. Add a new parameter in the api: https://github.com/Linaro/squad/blob/master/squad/api/rest.py#L1032
  2. Pass this parameter to failures_with_confidence: https://github.com/Linaro/squad/blob/master/squad/core/failures.py#L32, removing all failures that don't match the search
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant