1476 Commits

Author SHA1 Message Date
Stephan Kulow
cf58ea29da Fix for check command 2019-11-19 08:04:10 +01:00
Stephan Kulow
b6e68f81e9 Work on adi command 2019-11-19 08:04:10 +01:00
Stephan Kulow
4921751ef2 Work on select command 2019-11-19 08:04:10 +01:00
Stephan Kulow
63ccac76d5 Work on accept command - not yet done 2019-11-19 08:04:10 +01:00
Stephan Kulow
9235ab50db Remove config command - the config isn't used any more
The only use case left is displaying 'todo' config on accept - but staging managers
don't use this. So we may need a different solution later
2019-11-19 08:04:10 +01:00
Stephan Kulow
dd9b7ec84f Remove update comments - are now obs history 2019-11-19 08:04:10 +01:00
Stephan Kulow
b43e9930ac Port unselect command to new API 2019-11-19 08:04:10 +01:00
Stephan Kulow
f5df59bfdf Adopt check command to the new staging API 2019-11-19 08:04:10 +01:00
Stephan Kulow
b34f4665e0 Register new adi projects 2019-11-19 08:04:09 +01:00
Ludwig Nussel
d78e4306d7 unselect: only set origin-manager for whitelist cleanup
anything else needs to be defined in attribute
2019-11-11 10:35:53 +01:00
Jimmy Berry
2a32702b1f
Merge pull request #2310 from jberry-suse/origin-manager-unknown-spelling
osclib/origin: policy_input_calculate(): s/unkown/unknown/.
2019-11-08 16:08:31 -06:00
Jimmy Berry
03a954aebd
Merge pull request #2307 from jberry-suse/origin-manager-automatic-updates-initial-blacklist
osclib/origin: origin_update(): support blacklist patterns for initial updates.
2019-11-08 15:43:46 -06:00
Jimmy Berry
a83e40e057
Merge pull request #2305 from jberry-suse/origin-manager-history-non-annotated
osclib/origin: origin_history(): include non-annotated requests.
2019-11-08 15:19:37 -06:00
Jimmy Berry
7e6455f9ce osclib/origin: policy_input_calculate(): s/unkown/unknown/. 2019-11-08 15:00:15 -06:00
Jimmy Berry
a0488c3fbb
Merge pull request #2303 from jberry-suse/origin-manager-annotate-pending
osclib/origin: origin_annotation_dump(): include pending information.
2019-11-08 14:50:59 -06:00
Jimmy Berry
5f937588e6 osclib/origin: origin_update(): support blacklist patterns for initial updates. 2019-11-08 13:19:04 -06:00
Jimmy Berry
5b4a8d3be5 osclib/origin: origin_history(): include non-annotated requests.
Otherwise, requests that are declined quickly (likely by bot) are not
shown in history which can be confusing when viewing in web interface. A
package may show as being one revision behind and one would wonder why
not update request when in fact a request could have been made and
declined.
2019-11-07 14:13:38 -06:00
Jimmy Berry
62c060a441 osclib/origin: origin_annotation_dump(): include pending information. 2019-11-07 13:46:16 -06:00
Jimmy Berry
c6e093d8d0 osclib/core: request_action_list_maintenance_incident(): support another form.
When at last one thought all the variations of the data format were
handled OBS decided to provide another. :((((
2019-11-07 10:59:21 -06:00
Jimmy Berry
a3b1d627b4 osclib/conf: configure maintenance staging review options for origin-manager. 2019-11-07 10:59:21 -06:00
Jimmy Berry
dc9147be97 osclib/origin: add maintenance staging equivalent reviews to pending_submission_allowed_reviews. 2019-11-07 10:59:21 -06:00
Jimmy Berry
6826524d07 osclib/origin: drop repo-checker from pending_submission_allowed_reviews.
No longer utilized and the config option has been removed from project
configs so the rule is dropped when evaluated anyway.
2019-11-07 10:59:21 -06:00
Jimmy Berry
e2334dae3d osclib/origin: provide pending_submission_allowed_reviews_update option. 2019-11-07 10:59:21 -06:00
Jimmy Berry
538b39ae3c osclib/origin: reviews_filter_allowed(): support negation rules. 2019-11-07 10:59:21 -06:00
Jimmy Berry
13be4f2ef1 osclib/origin: provide reviews_filter_allowed().
Split out inner logic from policy_input_evaluate_reviews_not_allowed() to
allow for other users.
2019-11-07 10:59:21 -06:00
Jimmy Berry
4bbdfc675e osclib/origin: project_source_pending(): include psuedo incident review. 2019-11-07 10:59:21 -06:00
Jimmy Berry
c8cba5d2a1 osclib/core: reviews_remaining(): provide incident_psuedo option. 2019-11-07 10:59:21 -06:00
Jimmy Berry
9503a04b33
Merge pull request #2296 from jberry-suse/origin-manager-update-frequency
osclib/origin: provide automatic update mode controls.
2019-11-07 10:45:08 -06:00
Jimmy Berry
3dd0fbe788
Merge pull request #2297 from jberry-suse/origin-manager-update-new-exclude-existing
osc-origin,osclib/origin_listener: sync package kind logic.
2019-11-07 10:00:54 -06:00
Jimmy Berry
e771dc653f osclib/origin: provide automatic update mode controls. 2019-11-07 08:46:02 -06:00
Jimmy Berry
8cdd550247 osclib/core: request_create_submit(): provide frequency option. 2019-11-07 08:46:02 -06:00
Jimmy Berry
48fc39aba0 osclib/core: request_create_submit(): provide supersede flag. 2019-11-07 08:46:02 -06:00
Jimmy Berry
4ac724b712 osclib/core: request_action_simple_list(): include full history.
Without this the requests are not nearly as useful when processing.
2019-11-07 08:46:02 -06:00
Jimmy Berry
818685166f osclib/core: provide package_source_{changed,age}() functions. 2019-11-07 08:46:00 -06:00
Jimmy Berry
b0ccbb33b6 osclib/core: package_kind(): require releasename to differ from package for maintenance_update.
When releasename does not differ it is essentially the same as no
releasename at all, but since OBS allows this and some source packages
contain such a value need to make check more specific.

See #2294 for an example.
2019-11-06 14:43:20 -06:00
Jimmy Berry
0cd70a5567 osc-origin,osclib/origin_listener: sync package kind logic.
Avoids special cases where package_kind() differs by project.
2019-11-06 14:05:50 -06:00
Jimmy Berry
13fa93cede osclib/core: provide attribute_value_delete(). 2019-11-06 11:38:38 -06:00
Jimmy Berry
226ad12f42 osclib/core: support package in attribute_value_{load,save}() functions. 2019-11-06 11:38:38 -06:00
Jimmy Berry
8cdd505bea osclib/origin: origin_update_pending() utilize project_remote_prefixed().
Correctly prefix the remote project with the interconnect when creating
a submit request.
2019-11-05 16:39:01 -06:00
Jimmy Berry
fd94254601 osclib/core: provide project_remote_prefixed(). 2019-11-05 16:39:01 -06:00
Jimmy Berry
931b760456
Merge pull request #2287 from jberry-suse/origin-manager-new-package-submission
origin-manager: submit new packages from origins with automatic_updates_initial enabled.
2019-11-05 09:04:01 -06:00
Jimmy Berry
bb2124b818 osclib/origin_listener: consume package deletes.
Now that update_consider() local check package_kind() on both origin
and target package a delete is possible. origin_update() already
supported generating deletes or swapping origin to next potential.
2019-11-05 08:23:40 -06:00
Jimmy Berry
45c13b31ba osclib/origin_listener: update packages that do not exist in target project.
Allows for new package submissions when applicable.
2019-11-05 08:23:40 -06:00
Jimmy Berry
6595dd812b osclib/origin: provide origin_updatable_initial().
Provides list of origins for a given project that allow initial updates.
2019-11-05 08:23:40 -06:00
Jimmy Berry
7c162b3c7f osclib/origin: origin_update(): support initial submissions. 2019-11-05 08:23:40 -06:00
Jimmy Berry
8bed8d507e osclib/origin: provide automatic_updates_initial origin config option.
Used to allow new package submissions from an origin.
2019-11-05 08:23:40 -06:00
Jimmy Berry
826655766e osclib/core: request_create_submit(): provide ignore_if_any_request.
Useful for avoiding making a request if any pending or non-accepted
request against that package exists. Such a use case is submitting new
packages by origin-manager which should only try the submission once.
2019-11-05 08:23:33 -06:00
Stephan Kulow
31ee1047cd Remove dependency from cache to config
Getting the right config depends on too many things that cache.py can't
know - so just rely on environment variables instead

Fixes #2289
2019-11-05 11:29:04 +01:00
Stephan Kulow
a595666eef Remove old python2 code from cache 2019-11-05 11:14:54 +01:00
Jimmy Berry
4e95bf3eee osclib/origin_listener: ultilize origin_updatable_map() include_self option.
Useful for trigger follow-up change_devel requests are suppressed updates.
2019-11-04 14:01:34 -06:00