Filter expression exceeds allowed complexity
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 598
- Forks
- 168
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 86
Description
Version
3.100+
When the q filter has pulp_label_select="build_id=123 with 18 different builds, the query returns an error. Seems that the maximum number of filters is 7, and after that, we get the complexity error.
{'q': ['Filter expression exceeds allowed complexity.']}
https://github.com/fedora-copr/copr/issues/4187#issuecomment-4025877984
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files or tests are named. Start by reproducing the q filter with pulp_label_select="build_id=123" across 18 builds and trace where the complexity error is produced; compare behavior at and above the apparent seven-filter limit. Done means the valid multi-build query no longer fails, with regression coverage for the reported case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 48/100