[openSUSE/open-build-service] 882090: Create TriggerWorkflowController
Branch: refs/heads/master Home: https://github.com/openSUSE/open-build-service Commit: 882090506d41eb822ee79121f6fdaa3b8d684475 https://github.com/openSUSE/open-build-service/commit/882090506d41eb822ee791... Author: Dany Marcoux <dmarcoux@posteo.de> Date: 2021-05-10 (Mon, 10 May 2021) Changed paths: A src/api/app/controllers/trigger_workflow_controller.rb M src/api/config/routes/api_routes.rb Log Message: ----------- Create TriggerWorkflowController Co-authored-by: Eduardo Navarro <enavarro@suse.com> Co-authored-by: Daniel Donisa <daniel.donisa@suse.com> Co-authored-by: Saray Cabrera Padrón <scabrerapadron@suse.de> Co-authored-by: Victor Pereira <vpereira@suse.com> Commit: 1d46df829616ac4903a97e7bbe327c0418183d74 https://github.com/openSUSE/open-build-service/commit/1d46df829616ac4903a97e... Author: Eduardo Navarro <enavarro@suse.com> Date: 2021-05-20 (Thu, 20 May 2021) Changed paths: M src/api/app/controllers/trigger_workflow_controller.rb Log Message: ----------- Skip callbacks not needed for a workflow token Commit: c322e8189083e96f720a30c91e7b32ed441f02d0 https://github.com/openSUSE/open-build-service/commit/c322e8189083e96f720a30... Author: Eduardo Navarro <enavarro@suse.com> Date: 2021-05-21 (Fri, 21 May 2021) Changed paths: M src/api/app/controllers/trigger/errors.rb M src/api/app/controllers/trigger_workflow_controller.rb A src/api/spec/controllers/trigger_workflow_controller_spec.rb Log Message: ----------- Return accurate error messages Return a "Bad request" error when the HTTP request headers are not valid, for the trigger/workflow endpoint. The response returned previously was a "Forbidden" error, that in this case makes little sense. Return a BadScmPayload error for empty or wrong JSON payload in the /trigger/workflow endpoint. Commit: 27d2bd50541be82f99c9cdb708227e0c5eb2a0cd https://github.com/openSUSE/open-build-service/commit/27d2bd50541be82f99c9cd... Author: Saray Cabrera Padrón <scabrerapadron@suse.de> Date: 2021-05-21 (Fri, 21 May 2021) Changed paths: M src/api/app/controllers/person/token_controller.rb M src/api/app/policies/token/workflow_policy.rb M src/api/lib/tasks/dev.rake M src/api/spec/controllers/trigger_workflow_controller_spec.rb M src/api/spec/policies/token/workflow_policy_spec.rb M src/api/spec/support/beta.rb Log Message: ----------- Set workflow token creation/triggering under feature flag Only users with the `trigger_workflow` feature flag enabled can create and trigger a workflow token. Co-authored-by: Eduardo Navarro <enavarro@suse.com> Commit: 1379e7286ef419c56bc4f6f71a95bbdda79d2400 https://github.com/openSUSE/open-build-service/commit/1379e7286ef419c56bc4f6... Author: Dany Marcoux <danymarcoux@gmail.com> Date: 2021-05-25 (Tue, 25 May 2021) Changed paths: M src/api/app/controllers/person/token_controller.rb M src/api/app/controllers/trigger/errors.rb A src/api/app/controllers/trigger_workflow_controller.rb M src/api/app/policies/token/workflow_policy.rb M src/api/config/routes/api_routes.rb M src/api/lib/tasks/dev.rake A src/api/spec/controllers/trigger_workflow_controller_spec.rb M src/api/spec/policies/token/workflow_policy_spec.rb M src/api/spec/support/beta.rb Log Message: ----------- Merge pull request #11103 from dmarcoux/obs-workflows-trigger_workflow_controller Create TriggerWorkflowController Compare: https://github.com/openSUSE/open-build-service/compare/d9655b863dbd...1379e7...
participants (1)
-
Dany Marcoux