pulp / pulp/pulpcore

Filter expression exceeds allowed complexity

Open
#7,435 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature
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

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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.