Stephan Kulow
8a7b65d505
Remove fake OBS in favor of using generated test data
2019-05-04 15:44:39 +02:00
Stephan Kulow
5f3dcca267
Fix OBSLock to always write full ISO format
...
If the microseconds are 0, isoformat won't output any, but our _parse
function expects them. python 3.7 has isoformat/fromisoformat, which
would fix it, but we can't take it atm
2019-05-04 15:44:39 +02:00
Stephan Kulow
0693c88977
Fix crash on staging project without flag section
2019-05-04 15:44:39 +02:00
Stephan Kulow
6508d76633
Merge pull request #1976 from jberry-suse/origin-manager-revision-state-none-origin
...
origin-manager: handle no origin when determining revision state.
2019-05-03 06:45:56 +02:00
Jimmy Berry
e66fa4c404
osclib/conf: convert all non-string defaults to string equivalents.
...
Python3 osc config parsing explodes on non-strings.
2019-05-02 14:55:12 -05:00
Jimmy Berry
e20725a482
osclib/origin: handle origin_info when None.
2019-05-02 14:44:14 -05:00
Jimmy Berry
cbd3e446e6
osclib/origin: origin_revision_state(): do not find origin when None.
...
Previously, there was no way to distinguish between a None origin and no
origin_info passed in. Using False as default allows the two cases to be
distinguished.
2019-05-02 14:43:37 -05:00
Stephan Kulow
9cdbc9ac8d
Merge pull request #1971 from jberry-suse/origin-manager-webui
...
origin-manager: provide web interface to aid in maintenance and decision making
2019-05-02 08:37:24 +02:00
Stephan Kulow
09332504d4
Merge pull request #1968 from coolo/python3_cherry_picks
...
Python3 cherry picks
2019-05-02 07:59:22 +02:00
Jimmy Berry
4be2b335d8
osclib/origin: add origin_history().
2019-05-01 15:49:21 -05:00
Jimmy Berry
4bae7078b8
osclib/origin: add origin_potentials().
2019-05-01 15:49:21 -05:00
Jimmy Berry
f6b9a9dd87
osclib/origin: provide origin_revision_state().
2019-05-01 15:49:21 -05:00
Jimmy Berry
860fcd0a60
osclib/core: review_find_last(): compare by_user instead of who.
2019-05-01 15:49:21 -05:00
Jimmy Berry
34c99b699d
osclib/core: provide project_attribute_list().
2019-05-01 15:49:21 -05:00
Jimmy Berry
b01390ea76
osclib/core: provide package_version().
2019-05-01 15:49:21 -05:00
Jimmy Berry
11921d78ba
osclib/pkgcache: drop as no more uses.
...
No longer works in python3.
2019-04-30 08:39:18 -05:00
Stephan Kulow
691fa83616
Convert iterator to list to avoid RuntimeError
...
dictionary changed size during iteration
2019-04-30 14:28:55 +02:00
Stephan Kulow
8bf2602baa
family_prior: Cast the filtered list to a list
2019-04-30 14:28:49 +02:00
082d37e36f
Improve error msg that the project was not frozen
...
This change is trying to provide user more information
in case that he already froze project but date of last
freeze was not updated, since there were no changes for
last MAX_FROZEN_AGE days.
* Use osclib.freeze_command.MAX_FROZEN_AGE constant
* Avoid explicit proposal of --no-freeze bug suggest alternative
2019-04-12 13:48:51 +02:00
Jimmy Berry
5f0f3f498a
osc-staging: exclude NonFree requests from staging proposals.
...
- NonFree delete requests are never staged.
- NonFree submit requests are handled by adi command.
2019-03-28 09:54:24 -05:00
Stephan Kulow
9a259088c8
Merge pull request #1918 from coolo/dont_add_repochecker_leap
...
Don't add repo-checker from factory-auto in Leap
2019-03-24 07:32:31 +01:00
Stephan Kulow
75bc903497
Don't add repo-checker from factory-auto in Leap
...
This leaves repo checker for incidents
2019-03-23 19:14:20 +01:00
Jimmy Berry
68a4933235
osclib/origin: policy_input_calculate(): s/inital/initial/.
2019-03-22 10:46:30 -05:00
Jimmy Berry
b6866e6456
osclib/origin: policy_input_evaluate(): only add additional review if not already set.
...
This allows for more cleanly adding additional_reviews to include fallback
review where it may already be added for a more specific reason.
2019-03-20 19:01:32 -05:00
Jimmy Berry
07ecf7b250
osclib/core: package_source_hash(): handle non-existant revision.
2019-03-20 19:01:32 -05:00
Stephan Kulow
e48e0b4750
Fix compat with pyYaml 5.1
...
the changed the output style default from None to False
Fixes #1908
2019-03-20 08:08:26 +01:00
Stephan Kulow
bb48831eca
Merge pull request #1900 from jberry-suse/origin-manager-pending-hide-reviews
...
osclib/origin: policy_input_evaluate(): do not list disallowed reviews.
2019-03-20 06:33:41 +01:00
Stephan Kulow
a13930afd4
Merge pull request #1906 from jberry-suse/yaml-safe-load
...
Replace deprecated (and not advised) yaml.load() with yaml.safe_load().
2019-03-20 06:32:48 +01:00
Jimmy Berry
78bfdb872f
Replace deprecated (and not advised) yaml.load() with yaml.safe_load().
2019-03-19 17:13:11 -05:00
Jimmy Berry
14b29bb221
osclib/origin: policy_input_evaluate(): do not list disallowed reviews.
...
In order to reduce comments, information that changes such as reviews
must be excluded to avoid having to update a comment or be left in an
inaccurate state.
2019-03-12 08:45:55 -05:00
Stephan Kulow
ae5ccf31d4
Fix adi command if there are actually checks
2019-03-08 21:55:09 +01:00
Stephan Kulow
854aefad8a
No longer add repo checker as reviewer for Factory
2019-03-08 13:42:34 +01:00
Stephan Kulow
44cbc3a14d
Merge pull request #1890 from coolo/add_required_checks
...
Add all checks from staging-required-checks-adi to main repo of adi p…
2019-03-08 07:44:34 +01:00
Stephan Kulow
578d0a7ddc
Block adi command from accepting if checks aren't succeeding
2019-03-07 20:03:06 +01:00
Stephan Kulow
d40e1b0722
Add all checks from staging-required-checks-adi to main repo of adi projects
...
For Factory I want to switch away from repo checker reviews, but a required
check on project level. So first step: make it required for adi projects.
2019-03-07 17:07:39 +01:00
Jimmy Berry
c38c01a9d4
osclib/core: package_list_without_links(): ignore meta packages (00 prefix).
2019-03-06 15:49:50 -06:00
Jimmy Berry
d033b8cec6
osclib/origin: provide __str__ method that indicates pending.
2019-03-06 15:49:50 -06:00
Jimmy Berry
341396b432
osclib/origin: config_resolve_create_family(): force origin_expanded to string.
...
Drops the lxml string element reference which is cumbersome when printing.
2019-03-06 15:49:50 -06:00
Jimmy Berry
0c1fa52c54
osclib/util: mail_send(): allow a from_key of None to indicate osc user.
2019-03-06 15:49:50 -06:00
Jimmy Berry
4dbcc5bc40
osclib/util: mail_send() utilize Config.get() pattern.
2019-03-06 15:49:50 -06:00
Jimmy Berry
58bffc3e01
osclib/util: mail_send(): use to as config key if no at sign.
2019-03-06 15:49:50 -06:00
Jimmy Berry
a8319e6664
origin-manager: support ReviewBot override comment using origin workaround.
2019-02-27 16:03:05 -06:00
Jimmy Berry
eb3acd80f6
osclib/origin: provide origin management functions.
2019-02-15 14:16:23 -06:00
Jimmy Berry
44f5ab7234
osclib/util: project_version(): return 0 instead of None for invalid project.
...
This allows for lists with invalid projects to still be sorted which is
generally desired since other means validate the results.
2019-02-15 14:16:23 -06:00
Jimmy Berry
e686cb19cc
osclib/util: provide project_list_family_prior_pattern().
2019-02-15 14:16:23 -06:00
Jimmy Berry
5f15314f33
osclib/util: project_list_family_prior(): provide include_updates option.
2019-02-15 14:16:23 -06:00
Jimmy Berry
087c1b0b8b
osclib/util: project_list_family(): cache via memoize.
2019-02-15 14:16:23 -06:00
Jimmy Berry
f13899e393
osclib/util: project_list_family(): provide include_update option.
2019-02-15 14:16:23 -06:00
Jimmy Berry
2ca2f4e875
osclib/util: project_list_family(): handle :NonFree suffix.
2019-02-15 14:16:23 -06:00
Jimmy Berry
8196c34fbe
osclib/cache: handle repetative package_source_hash_history() calls.
2019-02-15 14:16:23 -06:00