Mike McLean
95b2a3c7e7
basic getTaskRuns function
2023-10-03 15:23:01 +02:00
Mike McLean
b379db8376
stub to let hub run
2023-10-03 15:23:01 +02:00
Tomas Kopecek
4241098f46
replace old calls
2023-10-03 15:23:01 +02:00
Tomas Kopecek
6a23a12fd0
wip
2023-10-03 15:23:01 +02:00
Tomas Kopecek
5e61ad7711
update top-level repo.json
2023-10-03 15:20:53 +02:00
Jana Cupova
48b34b4680
Unify getSessionInfo output
...
Fixes: https://pagure.io/koji/issue/3793
2023-09-13 18:32:36 -04:00
Yuming Zhu
65fb4f47d3
hub: new_build: build in error should be the old one
2023-09-06 14:54:56 +02:00
Tomas Kopecek
f5f8e6c6a2
refactor get_user_perms
2023-09-04 09:16:21 +02:00
Tomas Kopecek
e1ea85f184
getUserPermsInheritance
2023-09-04 09:16:21 +02:00
Tomas Kopecek
66fec3a117
fix query
2023-09-04 09:16:21 +02:00
Tomas Kopecek
97986ff0e3
fix sanity checks in revoke/grantPermission
2023-09-04 09:16:21 +02:00
Tomas Kopecek
255ec21d00
Inherit group permissions
...
Related: https://pagure.io/koji/issue/3849
2023-09-04 09:16:21 +02:00
Mike McLean
3676452468
Sort image rpm components before inserting
...
Related: https://pagure.io/koji/issue/3637
A potential fix for a rare deadlock. This is the same thing we do in
BuildRoot._setList()
2023-08-25 09:44:56 -04:00
Tomas Kopecek
9ed7ccda19
fix returned data after rebase
2023-08-02 12:54:05 +02:00
Tomas Kopecek
9d03e43a6a
use auth.get_user_groups
2023-08-02 12:46:40 +02:00
Tomas Kopecek
60722acf09
Extend getUser to get user groups
...
Related: https://pagure.io/koji/issue/3854
2023-08-02 12:46:40 +02:00
Radoslav
39584a4f89
fix param in createImageBuild docstring
...
fix param in createImageBuild docstring
2023-07-31 14:57:28 +02:00
Tomas Kopecek
0f75baac74
Fix user_in_group policy test
...
Related: https://pagure.io/koji/issue/3858
2023-07-17 16:17:47 +02:00
Tomas Kopecek
724838968c
fix docstring getTaskInfo
2023-06-13 15:19:05 +02:00
Tomas Kopecek
de9c26dbb2
doc: readTaggedRPMS/Builds API documentation
...
Related: https://pagure.io/koji/issue/3811
2023-06-12 13:16:38 +02:00
Tomas Kopecek
0a48d6a688
fix flake8
...
Related: https://pagure.io/koji/issue/3790
2023-05-17 11:02:32 +02:00
Mike McLean
14c2e1b38c
avoid upsert in db_lock
2023-05-17 11:02:08 +02:00
Mike McLean
bc5088f881
add a note in db_lock
2023-05-17 11:02:08 +02:00
Mike McLean
0d61c94250
add db_lock function and locks table
2023-05-17 11:02:08 +02:00
Tomas Kopecek
576e5d6f3b
PR#3819: track update time in host table
...
Merges #3819
https://pagure.io/koji/pull-request/3819
Fixes : #3789
https://pagure.io/koji/issue/3789
2023-05-17 10:58:12 +02:00
Tomas Kopecek
d3c561ebcd
fix flake8
2023-05-17 10:22:09 +02:00
geargyri
0eedf36c41
add policy check
...
Related: https://pagure.io/koji/issue/3183
2023-05-17 09:31:35 +02:00
Mike McLean
506e4d1429
avoid ambiguous columns refs
2023-05-16 13:14:16 +02:00
Mike McLean
d82edd9757
track update time in host table
2023-05-16 13:14:16 +02:00
Jana Cupova
de01baece7
createTag raises error when perm ID isn't exists
...
Fixes: https://pagure.io/koji/issue/3802
2023-05-09 10:10:18 +02:00
Jana Cupova
44742bc5f8
Drop default Null for renew_time in sql
2023-05-09 09:16:40 +02:00
Jana Cupova
6a033ea948
Add renew_ts column and check with renew_ts
2023-05-09 09:16:40 +02:00
Jana Cupova
ce0ce20e3a
Add renewal session timeout
...
Fixes: https://pagure.io/koji/issue/3596
2023-05-09 09:16:40 +02:00
Tomas Kopecek
23350af251
CG: allow reimports into failed/cancelled builds
...
Related: https://pagure.io/koji/issue/3776
2023-04-21 10:55:15 +02:00
Mike McLean
f56c270d70
remove Host.getTask method
...
Unused code, was previously exported, but that export was removed in
https://pagure.io/koji/pull-request/2406
2023-04-20 09:59:00 +02:00
Jana Cupova
b1d0361f18
tagNotification: user_id is int when get_user is used
...
Fixes: https://pagure.io/koji/issue/3779
2023-04-18 13:48:04 +02:00
Tomas Kopecek
dadce1de7d
Save task_id correctly also in CGInitBuild
...
Related: https://pagure.io/koji/issue/3750
2023-04-17 09:29:58 +02:00
Jana Cupova
027cca702d
Unify behavior when result is empty in get_maven/image/win/build
...
Fixes: https://pagure.io/koji/issue/3753
2023-04-03 15:28:22 +02:00
Jana Cupova
de192e10f1
Add repoID in listBuildroots and create repoinfo command
...
Add repoID param in listBuildroots and show result in repoInfo
Create new command repoinfo which provides equivalent info as repoInfo
Add number of buildroots related to repo in repoinfo page
Fixes: https://pagure.io/koji/issue/2549
2023-04-03 15:20:18 +02:00
Jana Cupova
fe0bf6dc86
Fix pkglist_add when extra_arches is None
...
Fixes: https://pagure.io/koji/issue/3744
2023-03-23 13:23:42 +01:00
Jana Cupova
334bc39375
CLI: cancel error msg
...
cancel returns error msg when build is not existing
cancel returns error mgs for all not existing tasks/builds
Fixes: https://pagure.io/koji/issue/3715
2023-03-06 14:24:53 +01:00
Tomas Kopecek
7ceffe391c
unify relative imports
2023-03-01 11:46:24 +01:00
Tomas Kopecek
b0e91e378c
Move db/auth to kojihub module
...
Related: https://pagure.io/koji/issue/3666
2023-03-01 11:46:24 +01:00
Tomas Kopecek
4e84c7e1a2
remove debug print
2023-02-17 13:54:11 +01:00
Tomas Kopecek
e9eb016fe9
fix condition
...
Related: https://pagure.io/koji/issue/3693
2023-02-16 15:12:19 +01:00
Tomas Kopecek
72e6aa9cf0
fix query for partially generated checksums
...
Related: https://pagure.io/koji/issue/3693
2023-02-16 14:39:00 +01:00
Tomas Kopecek
84c63178ac
fix missing clause
...
Related: https://pagure.io/koji/issue/3627
2023-02-13 16:58:36 +01:00
Tomas Kopecek
5bbe106e69
CG metadata for koji task id
...
Related: https://pagure.io/koji/issue/215
2023-02-07 12:56:17 +01:00
Jana Cupova
2567650e9e
Add comparison between checksum from DB and caltulated checksum
2023-02-06 13:17:33 +01:00
Jana Cupova
d4c5d95968
Move class out of function and create to_hexdigest function
2023-02-06 13:17:33 +01:00