Branch: refs/heads/master
Home: https://github.com/openSUSE/open-build-service
Commit: 395f8d2622b979559daf563dbbe5fb28d946d774
https://github.com/openSUSE/open-build-service/commit/395f8d2622b979559daf56...
Author: Dani Donisa
Date: 2019-11-12 (Tue, 12 Nov 2019)
Changed paths:
M src/api/app/controllers/staging/staged_requests_controller.rb
A src/api/app/models/staging/excluded_request_not_found.rb
M src/api/app/models/staging/request_excluder.rb
M src/api/app/models/staging/staged_requests.rb
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_the_remove_exclusion_parameter/and_not_having_any_excluded_request/1_2_7_1_1.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_the_remove_exclusion_parameter/and_not_having_any_excluded_request/1_2_7_1_2.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_the_remove_exclusion_parameter/and_not_having_any_excluded_request/1_2_7_1_3.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_none_is_excluded/1_2_8_1_1.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_none_is_excluded/1_2_8_1_2.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_none_is_excluded/1_2_8_1_3.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_none_is_excluded/1_2_8_1_4.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_one_is_excluded_but_the_other_is_not/1_2_8_2_1.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_one_is_excluded_but_the_other_is_not/1_2_8_2_2.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_one_is_excluded_but_the_other_is_not/1_2_8_2_3.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_one_is_excluded_but_the_other_is_not/when_not_providing_the_remove_exclusion_parameter/1_2_8_2_1_1.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_one_is_excluded_but_the_other_is_not/when_not_providing_the_remove_exclusion_parameter/1_2_8_2_1_2.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_one_is_excluded_but_the_other_is_not/when_not_providing_the_remove_exclusion_parameter/1_2_8_2_1_3.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_one_is_excluded_but_the_other_is_not/when_not_providing_the_remove_exclusion_parameter/1_2_8_2_1_4.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_one_is_excluded_but_the_other_is_not/when_not_providing_the_remove_exclusion_parameter/did_not_stage_all_the_requests.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_one_is_excluded_but_the_other_is_not/when_not_providing_the_remove_exclusion_parameter/returns_an_error_saying_which_request_is_not_excluded.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_one_is_excluded_but_the_other_is_not/when_not_providing_the_remove_exclusion_parameter/returns_an_error_saying_which_request_was_not_staged.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_one_is_excluded_but_the_other_is_not/when_not_providing_the_remove_exclusion_parameter/returns_instructions_in_the_error_saying_how_to_fix_it.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_one_is_excluded_but_the_other_is_not/when_not_providing_the_remove_exclusion_parameter/still_has_a_request_pending_to_stage.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_one_is_excluded_but_the_other_is_not/when_not_providing_the_remove_exclusion_parameter/still_has_an_exclusion_left.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_one_is_excluded_but_the_other_is_not/when_providing_the_remove_exclusion_parameter/1_2_8_2_2_1.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_one_is_excluded_but_the_other_is_not/when_providing_the_remove_exclusion_parameter/did_stage_all_the_requests.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_one_is_excluded_but_the_other_is_not/when_providing_the_remove_exclusion_parameter/returns_an_error_saying_which_request_is_not_excluded.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_one_is_excluded_but_the_other_is_not/when_providing_the_remove_exclusion_parameter/still_has_an_exclusion_left.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_only_one_is_excluded/1_2_8_1_1.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_only_one_is_excluded/1_2_8_1_2.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_only_one_is_excluded/1_2_8_1_3.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_only_one_is_excluded/1_2_8_1_4.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/with_an_excluded_request/when_not_providing_the_remove_exclusion_parameter/1_2_6_1_1.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/with_an_excluded_request/when_not_providing_the_remove_exclusion_parameter/1_2_6_1_2.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/with_an_excluded_request/when_not_providing_the_remove_exclusion_parameter/1_2_6_1_3.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/with_an_excluded_request/when_providing_the_remove_exclusion_parameter/1_2_6_2_1.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/with_an_excluded_request/when_providing_the_remove_exclusion_parameter/1_2_6_2_2.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/with_an_excluded_request/when_providing_the_remove_exclusion_parameter/1_2_6_2_3.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/with_an_excluded_request/when_providing_the_remove_exclusion_parameter/1_2_6_2_4.yml
M src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/with_valid_staging_project/1_2_5_3.yml
M src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/with_valid_staging_project/1_2_5_4.yml
M src/api/spec/controllers/staging/staged_requests_controller_spec.rb
Log Message:
-----------
Accept a parameter to remove exclusion from requests before staging
Stage request action now accepts the new parameter remove exclusion
Right now, you can't stage an excluded request. You have to:
1. remove the exclusion first
2. stage the request afterwards
This opens a time window where maintainers can compete to stage the
same request.
This PR implements the acceptance of a new parameter during the
request staging to do 1. and 2. in the same action.
Fixes #8525
Commit: 437924fc621c857c6855ed35c1cecc28c4159d69
https://github.com/openSUSE/open-build-service/commit/437924fc621c857c6855ed...
Author: Dani Donisa
Date: 2019-11-12 (Tue, 12 Nov 2019)
Changed paths:
M docs/api/api/api.txt
Log Message:
-----------
Add API documentation
Commit: f43864e078dcd8bc25013213a8e82809db2de50b
https://github.com/openSUSE/open-build-service/commit/f43864e078dcd8bc250132...
Author: Victor Pereira
Date: 2019-11-12 (Tue, 12 Nov 2019)
Changed paths:
M docs/api/api/api.txt
M src/api/app/controllers/staging/staged_requests_controller.rb
A src/api/app/models/staging/excluded_request_not_found.rb
M src/api/app/models/staging/request_excluder.rb
M src/api/app/models/staging/staged_requests.rb
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_the_remove_exclusion_parameter/and_not_having_any_excluded_request/1_2_7_1_1.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_the_remove_exclusion_parameter/and_not_having_any_excluded_request/1_2_7_1_2.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_the_remove_exclusion_parameter/and_not_having_any_excluded_request/1_2_7_1_3.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_none_is_excluded/1_2_8_1_1.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_none_is_excluded/1_2_8_1_2.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_none_is_excluded/1_2_8_1_3.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_none_is_excluded/1_2_8_1_4.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_one_is_excluded_but_the_other_is_not/1_2_8_2_1.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_one_is_excluded_but_the_other_is_not/1_2_8_2_2.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_one_is_excluded_but_the_other_is_not/1_2_8_2_3.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_one_is_excluded_but_the_other_is_not/when_not_providing_the_remove_exclusion_parameter/1_2_8_2_1_1.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_one_is_excluded_but_the_other_is_not/when_not_providing_the_remove_exclusion_parameter/1_2_8_2_1_2.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_one_is_excluded_but_the_other_is_not/when_not_providing_the_remove_exclusion_parameter/1_2_8_2_1_3.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_one_is_excluded_but_the_other_is_not/when_not_providing_the_remove_exclusion_parameter/1_2_8_2_1_4.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_one_is_excluded_but_the_other_is_not/when_not_providing_the_remove_exclusion_parameter/did_not_stage_all_the_requests.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_one_is_excluded_but_the_other_is_not/when_not_providing_the_remove_exclusion_parameter/returns_an_error_saying_which_request_is_not_excluded.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_one_is_excluded_but_the_other_is_not/when_not_providing_the_remove_exclusion_parameter/returns_an_error_saying_which_request_was_not_staged.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_one_is_excluded_but_the_other_is_not/when_not_providing_the_remove_exclusion_parameter/returns_instructions_in_the_error_saying_how_to_fix_it.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_one_is_excluded_but_the_other_is_not/when_not_providing_the_remove_exclusion_parameter/still_has_a_request_pending_to_stage.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_one_is_excluded_but_the_other_is_not/when_not_providing_the_remove_exclusion_parameter/still_has_an_exclusion_left.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_one_is_excluded_but_the_other_is_not/when_providing_the_remove_exclusion_parameter/1_2_8_2_2_1.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_one_is_excluded_but_the_other_is_not/when_providing_the_remove_exclusion_parameter/did_stage_all_the_requests.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_one_is_excluded_but_the_other_is_not/when_providing_the_remove_exclusion_parameter/returns_an_error_saying_which_request_is_not_excluded.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_one_is_excluded_but_the_other_is_not/when_providing_the_remove_exclusion_parameter/still_has_an_exclusion_left.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_only_one_is_excluded/1_2_8_1_1.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_only_one_is_excluded/1_2_8_1_2.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_only_one_is_excluded/1_2_8_1_3.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/when_providing_two_request/and_only_one_is_excluded/1_2_8_1_4.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/with_an_excluded_request/when_not_providing_the_remove_exclusion_parameter/1_2_6_1_1.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/with_an_excluded_request/when_not_providing_the_remove_exclusion_parameter/1_2_6_1_2.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/with_an_excluded_request/when_not_providing_the_remove_exclusion_parameter/1_2_6_1_3.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/with_an_excluded_request/when_providing_the_remove_exclusion_parameter/1_2_6_2_1.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/with_an_excluded_request/when_providing_the_remove_exclusion_parameter/1_2_6_2_2.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/with_an_excluded_request/when_providing_the_remove_exclusion_parameter/1_2_6_2_3.yml
A src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/with_an_excluded_request/when_providing_the_remove_exclusion_parameter/1_2_6_2_4.yml
M src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/with_valid_staging_project/1_2_5_3.yml
M src/api/spec/cassettes/Staging_StagedRequestsController/POST_create/with_valid_staging_project/1_2_5_4.yml
M src/api/spec/controllers/staging/staged_requests_controller_spec.rb
Log Message:
-----------
Merge pull request #8639 from danidoni/8525-accept-a-parameter-to-remove-exclusion-from-requests-before-staging-them
Accept a parameter to remove exclusion from requests before staging
Compare: https://github.com/openSUSE/open-build-service/compare/e19ac4ddfa2c...f43864...