Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant