Commit graph

4652 commits

Author SHA1 Message Date
Tomas Kopecek
97ca6fb106 Show build link(s) on buildContainer task page
Fixes: https://pagure.io/koji/issue/1529
2019-11-25 14:42:11 +01:00
Tomas Kopecek
cd54495c26 PR#1826: fix time type for restartHosts
Merges #1826
https://pagure.io/koji/pull-request/1826

Fixes: #1825
https://pagure.io/koji/issue/1825
restartVerify subtask of restartHosts API call failed
2019-11-25 11:54:21 +01:00
Tomas Kopecek
9e0452377f fix test 2019-11-25 11:54:18 +01:00
Tomas Kopecek
b35499cdb4 fix time type for restartHosts
Fixes: https://pagure.io/koji/issue/1825
2019-11-25 11:54:18 +01:00
Tomas Kopecek
6bf9f2b73e PR#1790: remove old db constraint
Merges #1790
https://pagure.io/koji/pull-request/1790

Fixes: #1789
https://pagure.io/koji/issue/1789
Unable to add host to channel due to database constraint
2019-11-25 11:47:20 +01:00
Tomas Kopecek
eb850998e0 remove old db constraint
Fixes: https://pagure.io/koji/issue/1789
2019-11-25 11:47:16 +01:00
Tomas Kopecek
1ef565f80f PR#1775: clarify --ts usage
Merges #1775
https://pagure.io/koji/pull-request/1775

Fixes: #1774
https://pagure.io/koji/issue/1774
Better docs for list-pkgs --ts
2019-11-25 11:46:01 +01:00
Tomas Kopecek
7c510f7dcd clarify --ts usage
Fixes: https://pagure.io/koji/issue/1774
2019-11-25 11:45:57 +01:00
Tomas Kopecek
f2774d5047 PR#1542: Replace urllib.request with requests library
Merges #1542
https://pagure.io/koji/pull-request/1542

Fixes: #1530
https://pagure.io/koji/issue/1530
Replace urllib.request with requests library
2019-11-25 11:31:12 +01:00
Tomas Kopecek
aad9fac8d9 move from urrlib.request.urlopen to requests.get
Fixes: https://pagure.io/koji/issue/1530
2019-11-25 11:31:08 +01:00
Tomas Kopecek
8920d9d613 drop compatrequests variant 2019-11-25 11:31:08 +01:00
Patrick Uiterwijk
52f896c602 Implement openRemoteFile with requests or compatrequests
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2019-11-25 11:31:08 +01:00
Tomas Kopecek
9ac3fa7cc5 PR#1380: no notifications in case of deleted tag
Merges #1380
https://pagure.io/koji/pull-request/1380

Fixes: #1379
https://pagure.io/koji/issue/1379
tagNotification is broken for deleted tags
2019-11-25 11:13:32 +01:00
Tomas Kopecek
f0aa13bf0e no notifications in case of deleted tag
Fixes: https://pagure.io/koji/issue/1379
2019-11-25 11:13:27 +01:00
Tomas Kopecek
8f0efe8905 PR#1787: raise error when config search paths is empty
Merges #1787
https://pagure.io/koji/pull-request/1787

Fixes: #1786
koji cli should probably error if there is no config at all
https://pagure.io/koji/issue/1786
2019-11-22 08:43:49 +01:00
Yu Ming Zhu
f7f1c65bea raise error when config search paths is empty
also fix unittest: test_profiles

notes: since the test won't read config files anymore, lift the loop number from 20 -> 256 to increase the probability of hitting the multithread issue

fixes: #1786
2019-11-22 08:43:44 +01:00
Tomas Kopecek
54105d2ae8 PR#1828: cli: refine output of list-signed
Merges #1828
https://pagure.io/koji/pull-request/1828

Fixes: #1827
CLI method list-signed with tag option returns debug messages
https://pagure.io/koji/issue/1827
2019-11-22 08:27:51 +01:00
Yu Ming Zhu
5249df98c9 cli: refine output of list-signed 2019-11-22 08:27:46 +01:00
Tomas Kopecek
f3abebe9db PR#1781: Remove title option for livemedia-creator
Merges #1781
https://pagure.io/koji/pull-request/1781

Fixes: #1780
Remove title option from livemedia-creator
https://pagure.io/koji/issue/1780
2019-11-21 15:20:02 +01:00
Mohan Boddu
5b3dbd4fd8 Remove title option for livemedia-creator
Signed-off-by: Mohan Boddu <mboddu@bhujji.com>
2019-11-21 15:19:58 +01:00
Mike McLean
aaaabcc99c PR#1714: use BulkInsertProcessor for hub mass inserts
Merges #1714
https://pagure.io/koji/pull-request/1714

Fixes: #1712
https://pagure.io/koji/issue/1712
[RFE] Use bulk inserts in hub
2019-11-19 12:01:19 -05:00
Mike McLean
1344062bdd fix typo and extend unit test to cover where it occurred 2019-11-19 12:01:14 -05:00
Mike McLean
727de7d953 support batch operation in BulkInsertProcessor 2019-11-19 12:01:14 -05:00
Tomas Kopecek
116bf7adbc rename set_record to add_record 2019-11-19 12:01:14 -05:00
Tomas Kopecek
6de0700ac8 use BulkInsertProcessor for hub mass inserts
Fixes: https://pagure.io/koji/issue/1712
2019-11-19 12:01:14 -05:00
Tomas Kopecek
a365c9ad54 PR#1797: hub: build for policy check should be build_id in host.tagBuild
Merges #1797
https://pagure.io/koji/pull-request/1797

Fixes: #1796
hub: host.tagBuild failed in 1.19
https://pagure.io/koji/issue/1796
2019-11-19 14:14:01 +01:00
Yu Ming Zhu
ac91dc857b policy test: ImportedTest - accept dict as build
and invalid build will raise `koji.GenericError`

fixes: #1796
2019-11-19 14:13:57 +01:00
Tomas Kopecek
1d42e444c6 PR#1807: util: rename "dict" arg
Merges #1807
https://pagure.io/koji/pull-request/1807

Fixes: #1812
util: rename "dict" arg
https://pagure.io/koji/issue/1812
2019-11-19 12:37:16 +01:00
Ken Dreyer
ff93556f3e util: rename "dict" arg
dict is a built-in Python type. Don't use it as a variable name.
2019-11-19 12:37:13 +01:00
Tomas Kopecek
de15f887b9 PR#1149: hub: new addArchiveType RPC
Merges #1149
https://pagure.io/koji/pull-request/1149

Fixes #1528
hub: new addArchiveType RPC
https://pagure.io/koji/issue/1528
2019-11-19 09:06:51 +01:00
Ken Dreyer
e800b1d5a6 hub: new addArchiveType RPC
Add a new hub method for inserting new archivetype records.

This closely matches addBType.

The purpose of this change is to make it easier to permit content
generators to import files with extensions that we have not defined in
the upstream packaged koji SQL file.
2019-11-19 09:06:47 +01:00
Tomas Kopecek
a0711397cc PR#1798: rm old test code
Merges #1798
https://pagure.io/koji/pull-request/1798

Fixes: #1811
remove old test code
https://pagure.io/koji/issue/1811
2019-11-18 10:46:02 +01:00
Ken Dreyer
68bcc06427 rm old test code
Some files in the tree had bits of code that you could run if you
executed the files directly as scripts. Now that we have unit tests and
the "fakehub" tool, we do not need this code.
2019-11-18 10:45:57 +01:00
Tomas Kopecek
99f0da24ee PR#1795: fix typos for GenericError
Merges #1795
https://pagure.io/koji/pull-request/1795

Related: #1772
Make rpm optional import
https://pagure.io/koji/issue/1772
2019-11-18 10:06:02 +01:00
Yu Ming Zhu
22951f7f9d fix typos for GenericError 2019-11-18 10:05:59 +01:00
Tomas Kopecek
0852e20371 PR#1799: hub: document cg_import parameters
Merges #1799
https://pagure.io/koji/pull-request/1799

Fixes #1810
hub: document cg_import parameters
https://pagure.io/koji/issue/1810
2019-11-18 09:42:35 +01:00
Ken Dreyer
0589e5ca46 hub: document cg_import parameters
Document the parameters for the CGImport API call.
2019-11-18 09:42:30 +01:00
Tomas Kopecek
b9b53527a6 PR#1804: docs: MaxRequestsPerChild -> MaxConnectionsPerChild
Merges #1804
https://pagure.io/koji/pull-request/1804
2019-11-18 09:37:47 +01:00
Ken Dreyer
b7e8ad06c5 docs: MaxRequestsPerChild -> MaxConnectionsPerChild
As of httpd 2.4, this setting is named "MaxConnectionsPerChild".
2019-11-18 09:37:41 +01:00
Tomas Kopecek
d327d6b898 PR#1806: docs: explain "compile/builder1" user principal
Merges #1806
https://pagure.io/koji/pull-request/1806
2019-11-18 09:34:26 +01:00
Ken Dreyer
8e9698bd69 docs: explain "compile/builder1" user principal
Update the server howto doc to describe the "compile/*" Kerberos user
principal.
2019-11-18 09:34:21 +01:00
Tomas Kopecek
575318ffee PR#1800: rpm: remove %defattr
Merges #1800
https://pagure.io/koji/pull-request/1800

Fixes: #1809
rpm: remove %defattr
https://pagure.io/koji/issue/1809
2019-11-18 09:33:01 +01:00
Ken Dreyer
ee1d0a6c64 rpm: remove %defattr
RHEL 5 and later do not require %defattr.
2019-11-18 09:32:57 +01:00
Tomas Kopecek
bb75433dcd PR#1805: docs: recommend 2048 bit keys
Merges #1805
https://pagure.io/koji/pull-request/1805
2019-11-18 09:28:49 +01:00
Ken Dreyer
9f3f0ce463 docs: recommend 2048 bit keys
The US NIST recommends 2048-bit keys for RSA.
2019-11-18 09:28:46 +01:00
Tomas Kopecek
10d599754e PR#1801: docs: fix indent for reloading postgres settings
Merges #1801
https://pagure.io/koji/pull-request/1801
2019-11-18 09:27:33 +01:00
Ken Dreyer
4f2d52c2f6 docs: fix indent for reloading postgres settings
Dedent the description of reloading postgres, so it's clearer that this
must be done after all the modifications to pg_hba.conf.
2019-11-18 09:27:28 +01:00
Tomas Kopecek
f19321bd9c PR#1802: docs: simplify admin bootstrapping intro
Merges #1802
https://pagure.io/koji/pull-request/1802
2019-11-18 09:25:22 +01:00
Ken Dreyer
f53ea2c607 docs: simplify admin bootstrapping intro
Use the active voice when describing how to bootstrap the initial admin
user, and remove some complicated language so this is simpler to read
and understand.
2019-11-18 09:25:18 +01:00
Tomas Kopecek
7ea3a73073 PR#1803: docs: fix rST syntax for DB listening section
Merges #1803
https://pagure.io/koji/pull-request/1803
2019-11-18 09:23:27 +01:00