wrong param parse on build duration

Open Beginner friendly
#2,126 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
75/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
backend

Research direction

Start at _handle_build_duration, where normal query parameters are parsed, and reproduce the issue with a duration such as 1234. Verify that max/min filtering uses the complete parameter value rather than only its first character, then retest the affected filter behavior.

Written by the indexing model from the issue text.

Description

Build duration max/min is wrong for normal query params: _handle_build_duration does value[0] on a string, so only the first digit of the string is considered. For instance, '1234' becomes '1', which causes the filter to behave improperly.

Dominant language
Python
Stars
9
Forks
31
Avg merge
3d 2h
Merged PRs (30d)
12

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from kernelci/dashboard

All issues in kernelci/dashboard

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.