[openSUSE/open-build-service] 45bb4d: [api] fix releaseing multibuild flavor via token
Branch: refs/heads/master Home: https://github.com/openSUSE/open-build-service Commit: 45bb4dd7b8b6c515b161b8cecbf03bac4f8de40e https://github.com/openSUSE/open-build-service/commit/45bb4dd7b8b6c515b161b8... Author: Adrian Schröter <adrian@suse.de> Date: 2021-05-27 (Thu, 27 May 2021) Changed paths: M src/api/app/controllers/trigger_controller.rb M src/api/app/models/token/release.rb Log Message: ----------- [api] fix releaseing multibuild flavor via token set_multibuild_flavor is now setting only the multibuild container as the method name implies. Doing so no matter if the package comes via a link or not, since it does not matter for container name. do not abort due to wrong guessed flavors because the wrong source state might be read. options[:package] can not be a string for releasing as it would crash when trying to lookup the release name, so having a seperate string for container name. (and to avoid the logic that it is a multibuild, if it is not a package object) simplify authorization object code Commit: 93afa3a0f48a89a46cb437cf002f42fee7112bcd https://github.com/openSUSE/open-build-service/commit/93afa3a0f48a89a46cb437... Author: Henne Vogelsang <hvogel@opensuse.org> Date: 2021-05-27 (Thu, 27 May 2021) Changed paths: M src/api/app/controllers/trigger_controller.rb Log Message: ----------- Make the linter happy Co-authored-by: Dani Donisa <dani.doni@gmail.com> Commit: 9d54c2883359a0e280ef2b67b352ba92bdda2fa5 https://github.com/openSUSE/open-build-service/commit/9d54c2883359a0e280ef2b... Author: Henne Vogelsang <hvogel@opensuse.org> Date: 2021-05-27 (Thu, 27 May 2021) Changed paths: M src/api/spec/controllers/trigger_controller_spec.rb Log Message: ----------- Adopt the spec to recent changes Commit: ad4c0e3dc340a46bbe8260d3333aa82dce987642 https://github.com/openSUSE/open-build-service/commit/ad4c0e3dc340a46bbe8260... Author: Henne Vogelsang <hvogel@opensuse.org> Date: 2021-05-27 (Thu, 27 May 2021) Changed paths: M src/api/spec/cassettes/TriggerController/_set_multibuild_flavor/with_a_token_that_allows_multibuild/assigns_flavor_name.yml M src/api/spec/cassettes/TriggerController/_set_multibuild_flavor/with_a_token_that_allows_multibuild/authorizes_package_object.yml A src/api/spec/cassettes/TriggerController/_set_multibuild_flavor/with_a_token_that_does_not_allow_multibuild/raises_not_found.yml Log Message: ----------- Adopt casettes to recent changes Commit: 6d1245beb614f990ed02cc1089c64a4d73b6053d https://github.com/openSUSE/open-build-service/commit/6d1245beb614f990ed02cc... Author: Henne Vogelsang <hvogel@opensuse.org> Date: 2021-05-27 (Thu, 27 May 2021) Changed paths: M src/api/app/controllers/trigger_controller.rb M src/api/app/models/token/release.rb M src/api/spec/cassettes/TriggerController/_set_multibuild_flavor/with_a_token_that_allows_multibuild/assigns_flavor_name.yml M src/api/spec/cassettes/TriggerController/_set_multibuild_flavor/with_a_token_that_allows_multibuild/authorizes_package_object.yml A src/api/spec/cassettes/TriggerController/_set_multibuild_flavor/with_a_token_that_does_not_allow_multibuild/raises_not_found.yml M src/api/spec/controllers/trigger_controller_spec.rb Log Message: ----------- Merge pull request #11184 from adrianschroeter/fix_release [api] fix releaseing multibuild container Compare: https://github.com/openSUSE/open-build-service/compare/8c09837bde0e...6d1245...
participants (1)
-
Henne Vogelsang