[openSUSE/open-build-service] f366d5: Move some methods from the component to the model
Branch: refs/heads/master Home: https://github.com/openSUSE/open-build-service Commit: f366d5be3ca8564171f7c442ce118e642ff558f1 https://github.com/openSUSE/open-build-service/commit/f366d5be3ca8564171f7c4... Author: Saray Cabrera Padrón <scabrerapadron@suse.de> Date: 2022-03-29 (Tue, 29 Mar 2022) Changed paths: M src/api/app/components/workflow_run_row_component.html.haml M src/api/app/components/workflow_run_row_component.rb M src/api/app/models/workflow_run.rb Log Message: ----------- Move some methods from the component to the model Move methods from WorkflowRunRowComponent to WorkflowRun model since some of them are going to be used from outside the component. Stop using @hook_event and @workflow_run as hook_event and workflow_run are available. Commit: 5a977eba4827a1ef20adcb7199a63ae82bfbf850 https://github.com/openSUSE/open-build-service/commit/5a977eba4827a1ef20adcb... Author: Saray Cabrera Padrón <scabrerapadron@suse.de> Date: 2022-03-29 (Tue, 29 Mar 2022) Changed paths: A src/api/lib/tasks/workflows.rake A src/api/spec/lib/tasks/workflows_spec.rb Log Message: ----------- Add a task to clean up workflow's closed projects If something goes wrong during the run of a workflow and the error is not correctly caught (yet), the workflow_run can stay in 'running' status forever and the temporary project created by the workflow is not removed as expected. Apart from fixing the errors, we need to ensure we clean up those projects. This rake task is introduced for that purpose. As the artifacts were never created, we rely on the workflow_run's payload information to get part of the project name (repository name and the PR number). Commit: 96148b1a43e9c8d854d37695f04deda03cb04919 https://github.com/openSUSE/open-build-service/commit/96148b1a43e9c8d854d376... Author: Saray Cabrera Padrón <scabrerapadron@suse.de> Date: 2022-03-30 (Wed, 30 Mar 2022) Changed paths: M src/api/app/components/workflow_run_row_component.html.haml M src/api/app/components/workflow_run_row_component.rb M src/api/app/models/workflow_run.rb A src/api/lib/tasks/workflows.rake A src/api/spec/lib/tasks/workflows_spec.rb Log Message: ----------- Merge pull request #12354 from saraycp/cleanup_running_workflows_with_closed_prs Clean up running workflows with closed PRs Compare: https://github.com/openSUSE/open-build-service/compare/d713385e8906...96148b...
participants (1)
-
Saray Cabrera Padrón