[openSUSE/open-build-service] 25a2f0: Introduces triggering Project operations
Branch: refs/heads/master Home: https://github.com/openSUSE/open-build-service Commit: 25a2f0ec3a45cb13befff385cc902a7ab771c939 https://github.com/openSUSE/open-build-service/commit/25a2f0ec3a45cb13befff3... Author: Henne Vogelsang <hvogel@opensuse.org> Date: 2023-12-18 (Mon, 18 Dec 2023) Changed paths: M src/api/.rubocop_todo.yml M src/api/app/controllers/concerns/triggerable.rb M src/api/app/controllers/person/token_controller.rb M src/api/app/controllers/trigger_controller.rb M src/api/app/lib/backend/api/build/project.rb M src/api/app/models/token/rebuild.rb M src/api/app/models/token/release.rb M src/api/app/policies/token/release_policy.rb M src/api/config/routes/api_routes.rb Log Message: ----------- Introduces triggering Project operations There are two types of trigger routes: On /trigger you can trigger an type of `Token` On /trigger/[rebuild, release, runservice, workflow] you can trigger only this type of `Token` If a `Token` has a `Package` the operation is executed on this `Package`. If a `Token` does not have a `Package` you can set one via the project/package parameters and the operation is executed on this `Package`. If a `Token::Rebuild` or a `Token::Release` has no `Package` you can set a `Project` via the project parameter and the operation is executed on this `Project`. Co-authored-by: Adrian Schröter <adrian@suse.de> Co-authored-by: Eduardo Navarro <enavarro@suse.com> Commit: b015ed735ec64f781f752443c51120be89d5c8cc https://github.com/openSUSE/open-build-service/commit/b015ed735ec64f781f7524... Author: Henne Vogelsang <hvogel@opensuse.org> Date: 2023-12-18 (Mon, 18 Dec 2023) Changed paths: R src/api/spec/cassettes/TriggerController/_rebuild/when_the_token_is_not_bound_to_a_package/without_a_package_passed_in_the_parameters/1_1_3_1_1.yml R src/api/spec/cassettes/TriggerController/_rebuild/when_the_token_is_not_bound_to_a_package/without_a_package_passed_in_the_parameters/1_1_3_1_2.yml R src/api/spec/cassettes/TriggerController/_rebuild/when_token_is_valid/1_1_2_1.yml A src/api/spec/cassettes/TriggerController/_rebuild/with_project_and_package_parameter/1_2_2_1.yml A src/api/spec/cassettes/TriggerController/_rebuild/with_project_parameter/1_2_3_1.yml A src/api/spec/cassettes/TriggerController/_rebuild/with_token_package/1_2_1_1.yml R src/api/spec/cassettes/TriggerController/_release/for_inexistent_project/1_2_1_1.yml R src/api/spec/cassettes/TriggerController/_release/when_the_token_is_not_bound_to_a_package/without_a_package_passed_in_the_parameters/1_2_6_1_1.yml R src/api/spec/cassettes/TriggerController/_release/when_the_token_is_not_bound_to_a_package/without_a_package_passed_in_the_parameters/1_2_6_1_2.yml R src/api/spec/cassettes/TriggerController/_release/when_there_are_no_release_targets/1_2_5_1.yml R src/api/spec/cassettes/TriggerController/_release/when_token_is_valid_and_package_exists/1_2_2_1.yml R src/api/spec/cassettes/TriggerController/_release/when_user_has_no_rights_for_source/1_2_3_1.yml R src/api/spec/cassettes/TriggerController/_release/when_user_has_no_rights_for_target/1_2_4_1.yml R src/api/spec/cassettes/TriggerController/_release/when_user_has_no_rights_for_target/1_2_4_2.yml A src/api/spec/cassettes/TriggerController/_release/with_project_and_package_parameter/1_3_2_1.yml A src/api/spec/cassettes/TriggerController/_release/with_project_parameter/1_3_3_1.yml A src/api/spec/cassettes/TriggerController/_release/with_token_package/1_3_1_1.yml R src/api/spec/cassettes/TriggerController/_runservice/1_3_1.yml A src/api/spec/cassettes/TriggerController/_runservice/_verfiy_package_params/1_4_3_1.yml R src/api/spec/cassettes/TriggerController/_runservice/when_the_token_is_not_bound_to_a_package/without_a_package_passed_in_the_parameters/1_3_2_1_1.yml R src/api/spec/cassettes/TriggerController/_runservice/when_the_token_is_not_bound_to_a_package/without_a_package_passed_in_the_parameters/1_3_2_1_2.yml A src/api/spec/cassettes/TriggerController/_runservice/with_project_and_package_parameter/1_4_2_1.yml A src/api/spec/cassettes/TriggerController/_runservice/with_token_package/1_4_1_1.yml M src/api/spec/controllers/person/token_controller_spec.rb M src/api/spec/controllers/trigger_controller_spec.rb M src/api/spec/factories/project.rb R src/api/test/functional/trigger_controller_test.rb Log Message: ----------- Expand the rspec suite to cover Tokens Drop the minitest test Co-authored-by: Eduardo Navarro <enavarro@suse.com> Commit: 8b874efd3f2975bbf4ec813819601480e7e37cb2 https://github.com/openSUSE/open-build-service/commit/8b874efd3f2975bbf4ec81... Author: Henne Vogelsang <hvogel@opensuse.org> Date: 2023-12-18 (Mon, 18 Dec 2023) Changed paths: M src/api/public/apidocs/OBS-v2.10.50.yaml M src/api/public/apidocs/paths/trigger_operation.yaml A src/api/public/apidocs/paths/trigger_rebuild.yaml A src/api/public/apidocs/paths/trigger_release.yaml A src/api/public/apidocs/paths/trigger_runservice.yaml A src/api/public/apidocs/paths/trigger_webhook.yaml A src/api/public/apidocs/paths/trigger_workflow.yaml Log Message: ----------- Document all of the /trigger API Co-authored-by: Eduardo Navarro <enavarro@suse.com> Commit: 84f525c8f04efa8e7e7ec7be0724a00f9b4ba302 https://github.com/openSUSE/open-build-service/commit/84f525c8f04efa8e7e7ec7... Author: Dani Donisa <dani.doni@gmail.com> Date: 2023-12-21 (Thu, 21 Dec 2023) Changed paths: M src/api/.rubocop_todo.yml M src/api/app/controllers/concerns/triggerable.rb M src/api/app/controllers/person/token_controller.rb M src/api/app/controllers/trigger_controller.rb M src/api/app/lib/backend/api/build/project.rb M src/api/app/models/token/rebuild.rb M src/api/app/models/token/release.rb M src/api/app/policies/token/release_policy.rb M src/api/config/routes/api_routes.rb M src/api/public/apidocs/OBS-v2.10.50.yaml M src/api/public/apidocs/paths/trigger_operation.yaml A src/api/public/apidocs/paths/trigger_rebuild.yaml A src/api/public/apidocs/paths/trigger_release.yaml A src/api/public/apidocs/paths/trigger_runservice.yaml A src/api/public/apidocs/paths/trigger_webhook.yaml A src/api/public/apidocs/paths/trigger_workflow.yaml R src/api/spec/cassettes/TriggerController/_rebuild/when_the_token_is_not_bound_to_a_package/without_a_package_passed_in_the_parameters/1_1_3_1_1.yml R src/api/spec/cassettes/TriggerController/_rebuild/when_the_token_is_not_bound_to_a_package/without_a_package_passed_in_the_parameters/1_1_3_1_2.yml R src/api/spec/cassettes/TriggerController/_rebuild/when_token_is_valid/1_1_2_1.yml A src/api/spec/cassettes/TriggerController/_rebuild/with_project_and_package_parameter/1_2_2_1.yml A src/api/spec/cassettes/TriggerController/_rebuild/with_project_parameter/1_2_3_1.yml A src/api/spec/cassettes/TriggerController/_rebuild/with_token_package/1_2_1_1.yml R src/api/spec/cassettes/TriggerController/_release/for_inexistent_project/1_2_1_1.yml R src/api/spec/cassettes/TriggerController/_release/when_the_token_is_not_bound_to_a_package/without_a_package_passed_in_the_parameters/1_2_6_1_1.yml R src/api/spec/cassettes/TriggerController/_release/when_the_token_is_not_bound_to_a_package/without_a_package_passed_in_the_parameters/1_2_6_1_2.yml R src/api/spec/cassettes/TriggerController/_release/when_there_are_no_release_targets/1_2_5_1.yml R src/api/spec/cassettes/TriggerController/_release/when_token_is_valid_and_package_exists/1_2_2_1.yml R src/api/spec/cassettes/TriggerController/_release/when_user_has_no_rights_for_source/1_2_3_1.yml R src/api/spec/cassettes/TriggerController/_release/when_user_has_no_rights_for_target/1_2_4_1.yml R src/api/spec/cassettes/TriggerController/_release/when_user_has_no_rights_for_target/1_2_4_2.yml A src/api/spec/cassettes/TriggerController/_release/with_project_and_package_parameter/1_3_2_1.yml A src/api/spec/cassettes/TriggerController/_release/with_project_parameter/1_3_3_1.yml A src/api/spec/cassettes/TriggerController/_release/with_token_package/1_3_1_1.yml R src/api/spec/cassettes/TriggerController/_runservice/1_3_1.yml A src/api/spec/cassettes/TriggerController/_runservice/_verfiy_package_params/1_4_3_1.yml R src/api/spec/cassettes/TriggerController/_runservice/when_the_token_is_not_bound_to_a_package/without_a_package_passed_in_the_parameters/1_3_2_1_1.yml R src/api/spec/cassettes/TriggerController/_runservice/when_the_token_is_not_bound_to_a_package/without_a_package_passed_in_the_parameters/1_3_2_1_2.yml A src/api/spec/cassettes/TriggerController/_runservice/with_project_and_package_parameter/1_4_2_1.yml A src/api/spec/cassettes/TriggerController/_runservice/with_token_package/1_4_1_1.yml M src/api/spec/controllers/person/token_controller_spec.rb M src/api/spec/controllers/trigger_controller_spec.rb M src/api/spec/factories/project.rb R src/api/test/functional/trigger_controller_test.rb Log Message: ----------- Merge pull request #15261 from hennevogel/feature/token_operations_on_project Introduces token operations on project Compare: https://github.com/openSUSE/open-build-service/compare/560162e92566...84f525...
participants (1)
-
Dani Donisa