Commit graph

1037 commits

Author SHA1 Message Date
Tomas Kopecek
19f58b2f4f fix unlogging 2023-02-06 10:56:28 +01:00
Tomas Kopecek
c51802f2ea use_fast_upload=True as default everywhere
Related: https://pagure.io/koji/issue/3529
2023-02-03 09:28:40 +01:00
Tomas Kopecek
ce9a4d4002 remove staticmethod due to py2.7 compatibility 2023-02-01 15:01:15 +01:00
Tomas Kopecek
29d895c78a remove f-strings for py2 compatibility 2023-02-01 15:01:15 +01:00
Tomas Kopecek
cc5c074384 fix decorator 2023-02-01 15:01:15 +01:00
Tomas Kopecek
0179d72296 remove redundant lock 2023-02-01 15:01:15 +01:00
Tomas Kopecek
d387b4e243 fixes 2023-02-01 15:01:15 +01:00
Tomas Kopecek
067e294c6c retain expired session exclusivity 2023-02-01 15:01:15 +01:00
Tomas Kopecek
35070f6ba2 minor fixes 2023-02-01 15:01:15 +01:00
Tomas Kopecek
906958c814 renew exclusive status as part of login 2023-02-01 15:01:15 +01:00
Tomas Kopecek
dcd009e593 remove passing session-id 2023-02-01 15:01:15 +01:00
Jana Cupova
fe57fa18d1 Add decorator for renew expired session 2023-02-01 15:01:15 +01:00
Jana Cupova
1f0c12930d Add closed column to session table and use it in session 2023-02-01 15:01:15 +01:00
Jana Cupova
b7bedc17b5 Fix call auth_method 2023-02-01 15:01:15 +01:00
Tomas Kopecek
29e116448d store original auth method 2023-02-01 15:01:15 +01:00
Jana Cupova
0e07429d66 Create new session when old session was timeout
Fixes: https://pagure.io/koji/issue/3394
2023-02-01 15:01:15 +01:00
Mike McLean
32690976ad rawdata not needed here 2023-01-17 11:54:38 -05:00
Tomas Kopecek
be1bf65f6f Fix callnum handling
Update callnum only where there are other commits

Related: https://pagure.io/koji/issue/3658
2023-01-17 15:07:23 +01:00
Tomas Kopecek
6e1ae7231e replace deprecated distutils
distutils will get removed in python 3.12. It is usage is now replaced
by sysconfig. For py2 version code stays in specfile.

https://docs.python.org/3/whatsnew/3.10.html#distutils-deprecated

Related: https://pagure.io/koji/issue/3514
2023-01-16 12:36:04 +01:00
Tomas Kopecek
8bd39594b1 Koji 1.31.1 release notes
Related: https://pagure.io/koji/issue/3652
2023-01-12 11:09:49 +01:00
Jana Cupova
13ea7c1379 Remove DisableGSSAPIProxyDNFallback option on Hub
Fixes: https://pagure.io/koji/issue/3648
2023-01-11 14:14:13 +01:00
Jana Cupova
8a72187e6b Deprecated get_sequence_value
Fixes: https://pagure.io/koji/issue/3634
2022-12-20 14:24:18 +01:00
Tomas Kopecek
be4e0cc44d Use old-style checkout for shortened refs
Related: https://pagure.io/koji/issue/3629
2022-12-19 09:43:15 +01:00
Jana Cupova
a8dd469091 Replace _multiRow, _singleRow, _singleValue with QP
Fixes: https://pagure.io/koji/issue/3581
2022-12-08 09:22:17 +01:00
Jana Cupova
78dee69de4 Create DeleteProcessor class and use it
Fixes: https://pagure.io/koji/issue/3580
2022-12-08 09:18:55 +01:00
Tomas Kopecek
323b221bbe fix flake8 2022-12-05 13:32:26 +01:00
Mike McLean
af183a2686 Emulate old list data 2022-12-05 13:32:26 +01:00
Mike McLean
7015da5f44 alternate approach 2022-12-05 13:32:26 +01:00
Tomas Kopecek
a8c4373c97 rpmdiff: replace deprecated rpm call
Related: https://pagure.io/koji/issue/3561
2022-12-05 13:32:26 +01:00
Jana Cupova
21c8c0f681 Remove krbLogin API
Fixes: https://pagure.io/koji/issue/3593
2022-11-24 13:59:17 +01:00
Tomas Kopecek
a90f6cdf84 Release notes 1.31
Related: https://pagure.io/koji/issue/3574
2022-11-21 11:07:11 +01:00
Tomas Kopecek
1d9e96b5ff fix typos from QP rewrite 2022-11-16 15:10:17 +01:00
Jana Cupova
e5367b088f Fix logout when hub is older than CLI
https://pagure.io/koji/issue/3396
2022-11-15 12:19:31 +01:00
Tomas Kopecek
eca9ac0282 remove unused code 2022-11-10 11:07:03 +01:00
Tomas Kopecek
dbb6d60e4f separate headers 2022-11-10 11:07:03 +01:00
Tomas Kopecek
82d2d4dd55 use header-based auth 2022-11-10 11:07:03 +01:00
Tomas Kopecek
850a161e2b cookies-based sessions
Related: https://pagure.io/koji/issue/3393
2022-11-10 11:07:03 +01:00
Jana Cupova
7897628159 Add active sessions web page
Fixes: https://pagure.io/koji/issue/3396
2022-11-10 10:17:51 +01:00
Tomas Kopecek
4cf59602f1 exception in case origin/ is part of ref 2022-11-08 12:15:57 +01:00
Tomas Kopecek
ab9d15b33d Enable fetching any ref from git repo
Related: https://pagure.io/koji/issue/3508
2022-11-08 12:15:57 +01:00
Jana Cupova
40de4f3df0 Rewrite Query DB to Processors in auth.py
Fixes: https://pagure.io/koji/issue/3559
2022-11-08 12:11:34 +01:00
Jana Cupova
fea12ba5a4 Log when session ID, session key and hostip is not related
Fixes: https://pagure.io/koji/issue/3395
2022-11-04 15:51:58 +01:00
Tomas Kopecek
22b781ad58 kojid: fix restartHosts on py 3.5+
Related: https://pagure.io/koji/issue/3442
2022-10-31 11:58:37 +01:00
Tomas Kopecek
67af492739 fix type check 2022-10-21 14:23:47 +02:00
Tomas Kopecek
bd95153cb3 vm: handle waitrepo tasks in kojivmd
When moved there, kojivmd can import it and wait for
regen repos it started.

Related: https://pagure.io/koji/issue/3536
2022-10-21 14:23:47 +02:00
Jana Cupova
3999667a8c Fix Makefile for RHEL7 2022-10-11 14:29:05 +02:00
Tomas Kopecek
92a773a19d fix koji-sweep-db 2022-10-11 14:29:05 +02:00
Jana Cupova
1cfe6538db Move database classes and functions from kojihub.py to koji/db.py
Move QueryProcessor, InsertProcessor, UpdateProcessor,
BulkInsertProcessor, _applyQueryOpts, get_event, _dml,
_fetchMulti, _fetchSingle, _singleValue, _multiRow, _singleRow

Update koji-sweep-db script to DB Processors

Fixes: https://pagure.io/koji/issue/3466
2022-10-11 14:29:05 +02:00
Tomas Kopecek
14c7dea3e0 Koji 1.30.1 release notes
Related: https://pagure.io/koji/issue/3522
2022-10-07 14:09:48 +02:00
Tomas Kopecek
59f7f8642a fix flake8 errors
Related: https://pagure.io/koji/issue/3480
2022-08-29 15:03:05 +02:00