Commit graph

705 commits

Author SHA1 Message Date
Mike McLean
99de501257 more direct tag functions for the hub
followup to PR#212
https://pagure.io/koji/pull-request/212
2017-01-09 22:14:17 -05:00
Tomas Kopecek
f4ede5339f Update http:// to https:// in code
Where https is working, code was updated to use it.
2016-12-19 11:49:11 -05:00
Mike McLean
a9d46d0fe2 work around in OpenSSL issue on the hub 2016-11-23 14:16:25 -05:00
Mike McLean
ad521d5eb2 Maintain non-strict behavior in getTaskInfo
Fixes: #216
https://pagure.io/koji/issue/216
2016-11-23 12:26:52 -05:00
Mike McLean
6bbf9afdc8 don't assume content type is given 2016-11-22 16:41:31 -05:00
Mike McLean
8e1e72bf15 include tag_extra data when deleting a tag 2016-11-21 12:37:49 -05:00
Mike McLean
b48e3f23a4 handle long type for tag ids 2016-11-21 12:37:49 -05:00
Mike McLean
ce59d83dc8 test for _untag_build 2016-11-21 12:37:49 -05:00
Mike McLean
434bbb9c46 more direct tag calls, also a fix 2016-11-21 12:37:49 -05:00
Mike McLean
63168e4a41 _direct_pkglist_remove 2016-11-21 12:37:49 -05:00
Mike McLean
3d0791ff10 _direct_untag_build for consistency 2016-11-21 12:37:49 -05:00
Mike McLean
12d339d584 more pkglist... 2016-11-21 12:37:49 -05:00
Mike McLean
06692a23cc also pkglist_add 2016-11-21 12:37:49 -05:00
Mike McLean
71f1b22dda provide some lower-level functions sans access check 2016-11-21 12:37:49 -05:00
Joel Vasallo
f0918c7941 Leveraging koji.fixEncoding() and cleaned up spacing 2016-10-26 14:40:14 -04:00
Joel Vasallo
65347a73f7 Added support for unicode in lookup_name
- Need to make sure to sanitize this properly in the future.
- read metadata as binary to be explicit
2016-10-26 14:37:34 -04:00
Joel Vasallo
8530353023 Added tests for get_metadata
- Fixed Typo
2016-10-26 14:34:39 -04:00
Rayson Zhu
1eccf0574c optimize table joins for faster counting performance
Tests shows that changing inner joins to left outer joins on non-null fields will significantly improve the counting performance on PostgreSQL server 9.X.

Only large tables (task, build, and rpminfo) are involved in this commit.
2016-10-26 14:19:55 -04:00
Mike McLean
09f1b7d567 change stray stderr writes to logger.info on hub 2016-10-25 17:16:12 -04:00
Mike McLean
a1c8808544 ImportErrors are uncovered 2016-10-25 17:16:12 -04:00
Mike Bonnet
238d1db039 provide more information to the pre/postRPMSign callback
The existing pre/postRPMSign callback was following the format of
the Task/BuildStateChange callbacks. This isn't necessary for a
one-time operation. This change removes the attribute/old/new
arguments, and replaces them with sigkey, sighash, build, and rpm
arguments. This is more clear, and should make writing handlers
for this callback simpler.
2016-10-20 13:48:07 -07:00
Mike Bonnet
c41107ea51 pass build information consistently to the postImport callback
Always pass the build infomation as the "build" argument to the
postImport callback. For type='build' and type='image' imports,
this change is additive, and so is unlikely to affect existing
plugins. For type='cg' imports, this change makes the callback
consistent with the other callback types, and the CG import
mechanism is new enough that there is probably no code making
use of it yet.
2016-10-20 13:46:32 -07:00
Tomas Kopecek
51eca7346e getRPMDeps exposes additional deps
Adding Conflicts, Suggests, Enhances, Supplements and Recommend header fields
in addition to original Requires, Conflicts, Obsoletes and Provides

relates: https://pagure.io/koji/issue/142
2016-10-13 00:29:39 -04:00
Mike McLean
b481229d8f assert basic nvr sanity for cg imports 2016-10-06 17:40:51 -04:00
Tomas Kopecek
dcf8f52e8f add extra data option to create_tag
related https://pagure.io/koji/issue/166
2016-10-04 11:13:06 -04:00
Tomas Kopecek
7ebf9a44fe update old_edit_tag to support extra tag data 2016-10-04 11:13:06 -04:00
Mike McLean
6cfe982475 drop stale planning comment 2016-09-28 18:20:09 -04:00
Mike McLean
28a912a4f1 make resetBuild a complete reset 2016-09-28 18:20:09 -04:00
Mike McLean
4a1170f262 fix typos in readTaggedBuilds 2016-09-28 18:20:09 -04:00
Mike McLean
73276f7ca8 fix task_id ref in recycle_build 2016-09-28 18:20:09 -04:00
Mike McLean
cef08dd67f provide imageID value to query 2016-09-28 18:20:09 -04:00
Mike McLean
f7f2959ec9 only admins can add btypes 2016-09-28 18:20:09 -04:00
Mike McLean
0a419e885d also clear image_archives rows in reset_build 2016-09-28 18:20:09 -04:00
Mike McLean
1942595cba typo: image builds are not maven builds 2016-09-28 18:20:09 -04:00
Mike McLean
f003cb65f9 fix callback in recycle_build 2016-09-28 18:20:09 -04:00
Mike McLean
500dbb0df6 fix new_typed_build invocations 2016-09-28 18:20:09 -04:00
Mike McLean
1846f92228 make sure rpm btype is set when appropriate 2016-09-28 18:20:09 -04:00
Mike McLean
264cd22ee5 recycled builds: more checks, clear type info 2016-09-28 18:20:09 -04:00
Mike McLean
127926e3dd move build recycling logic into its own function 2016-09-28 18:20:09 -04:00
Mike McLean
e5668f98a7 new calls: listBTypes, addBType 2016-09-28 18:20:09 -04:00
Mike McLean
dc33a0e679 add btype data for legacy builds 2016-09-28 18:20:09 -04:00
Mike McLean
2ed308ff3e typo 2016-09-28 18:20:09 -04:00
Mike McLean
c0cb1ab73e ... 2016-09-28 18:20:09 -04:00
Mike McLean
e119e08505 use new archive component tables in hub code 2016-09-28 18:20:09 -04:00
Mike McLean
e31044f0d2 enforce that output types match one of the build types 2016-09-28 18:20:09 -04:00
Mike McLean
8c03618ab7 more fixes 2016-09-28 18:20:09 -04:00
Mike McLean
0cef35e50a fixes 2016-09-28 18:20:09 -04:00
Mike McLean
ea84af67ce add btype_id to archiveinfo 2016-09-28 18:20:09 -04:00
Mike McLean
15f483feea handle btypes in import_archive 2016-09-28 18:20:09 -04:00
Mike McLean
0175c27d26 handle btypes in cg_import 2016-09-28 18:20:09 -04:00