woodpecker/server/pipeline
6543 e57a09a404
Update pipeline state on server as a whole on approval (#3504)
We can not just update some records for steps, as we want the pipeline
engine as single source of truth but not manage the state.
And the server should only manage the state but not how pipelines work.

We can match the pipeline but neither workflows or steps 1:1, so we
"update" them as a whole by deleting existing workflow and step data and
insert the new info from engine.

close   #3494
close  #3472

---------
*Sponsored by Kithara Software GmbH*

---------

Co-authored-by: Robert Kaussow <xoxys@rknet.org>
2024-03-18 20:07:45 +01:00
..
stepbuilder rename stepID to workflowID to reflect value (#3502) 2024-03-18 15:21:26 +01:00
approve.go Update pipeline state on server as a whole on approval (#3504) 2024-03-18 20:07:45 +01:00
cancel.go Remove multipart logger (#3200) 2024-01-14 10:54:02 +01:00
config.go Make PipelineConfig unique again (#3215) 2024-01-18 23:50:29 +02:00
create.go Store workflows/steps for blocked pipeline (#2757) 2024-02-22 15:48:29 +01:00
decline.go Store workflows/steps for blocked pipeline (#2757) 2024-02-22 15:48:29 +01:00
errors.go Enable nolintlint (#3158) 2024-01-10 12:11:18 +01:00
gated.go Update go module path for major version 2 (#2905) 2023-12-08 08:15:08 +01:00
helper.go Update go module path for major version 2 (#2905) 2023-12-08 08:15:08 +01:00
items.go Update pipeline state on server as a whole on approval (#3504) 2024-03-18 20:07:45 +01:00
items_test.go Add imports checks to linter (#3056) 2023-12-29 21:19:42 +01:00
pipeline_status.go Simplify store interfaces (#3437) 2024-02-25 10:37:10 +01:00
pipeline_status_test.go Simplify store interfaces (#3437) 2024-02-25 10:37:10 +01:00
queue.go Fix linter (#3354) 2024-02-08 22:49:07 +01:00
restart.go Store workflows/steps for blocked pipeline (#2757) 2024-02-22 15:48:29 +01:00
start.go Fix storing steps (#3431) 2024-02-25 08:16:14 +01:00
step_status.go Enable golangci linter gomnd (#3171) 2024-03-15 18:00:25 +01:00
step_status_test.go Enable golangci linter gomnd (#3171) 2024-03-15 18:00:25 +01:00
topic.go Replace goimports with gci (#3202) 2024-01-14 18:22:06 +01:00
workflowStatus.go Simplify store interfaces (#3437) 2024-02-25 10:37:10 +01:00