Commit ab917f1
committed
Filter out Copr builds without SRPM in SQL
In addition to pagination slicing, the CoprBuildsList class uses Python
code to filter out Copr builds that are waiting for an SRPM or whose
SRPM build failed. This causes that the API in some cases can return
fewer items than the user requested.
Moving the filter into SQL resolves the problem. The SQL filter relies
on the fact that the build_id field is NULL until the build is actually
created by submitting to Copr.
Resolves: #25051 parent aa1ffde commit ab917f1
2 files changed
+6
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2238 | 2238 | | |
2239 | 2239 | | |
2240 | 2240 | | |
| 2241 | + | |
| 2242 | + | |
| 2243 | + | |
| 2244 | + | |
| 2245 | + | |
| 2246 | + | |
2241 | 2247 | | |
2242 | 2248 | | |
2243 | 2249 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | 37 | | |
48 | 38 | | |
49 | 39 | | |
| |||
0 commit comments