woodpecker/server/store/datastore
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
..
migration Fix linter (#3354) 2024-02-08 22:49:07 +01:00
agent.go Enable golangci linter stylecheck (#3167) 2024-01-10 22:56:42 +01:00
agent_test.go Fix agent updating (#3287) 2024-01-28 12:29:56 +01:00
config.go Simplify store interfaces (#3437) 2024-02-25 10:37:10 +01:00
config_test.go Simplify store interfaces (#3437) 2024-02-25 10:37:10 +01:00
cron.go Replace goimports with gci (#3202) 2024-01-14 18:22:06 +01:00
cron_test.go Enable golangci linter stylecheck (#3167) 2024-01-10 22:56:42 +01:00
engine.go Replace goimports with gci (#3202) 2024-01-14 18:22:06 +01:00
engine_test.go Replace goimports with gci (#3202) 2024-01-14 18:22:06 +01:00
errors.go Update go module path for major version 2 (#2905) 2023-12-08 08:15:08 +01:00
feed.go Clean up models (#3228) 2024-01-22 07:56:18 +01:00
feed_test.go Use assert for test (#3201) 2024-01-14 19:33:58 +01:00
helper.go Update go module path for major version 2 (#2905) 2023-12-08 08:15:08 +01:00
helper_test.go Replace goimports with gci (#3202) 2024-01-14 18:22:06 +01:00
init.go Migrate to Xorm (#474) 2021-11-13 20:18:06 +01:00
init_cgo.go Add linter revive (#554) 2021-12-01 14:22:06 +01:00
log.go Simplify store interfaces (#3437) 2024-02-25 10:37:10 +01:00
log_test.go Simplify store interfaces (#3437) 2024-02-25 10:37:10 +01:00
org.go Add check for storage where repo/org name is empty (#2968) 2023-12-19 06:03:56 +01:00
org_test.go Add check for storage where repo/org name is empty (#2968) 2023-12-19 06:03:56 +01:00
permission.go Simplify store interfaces (#3437) 2024-02-25 10:37:10 +01:00
permission_test.go Simplify store interfaces (#3437) 2024-02-25 10:37:10 +01:00
pipeline.go Update pipeline state on server as a whole on approval (#3504) 2024-03-18 20:07:45 +01:00
pipeline_test.go Simplify store interfaces (#3437) 2024-02-25 10:37:10 +01:00
redirection.go Simplify store interfaces (#3437) 2024-02-25 10:37:10 +01:00
redirection_test.go Simplify store interfaces (#3437) 2024-02-25 10:37:10 +01:00
registry.go Update go module path for major version 2 (#2905) 2023-12-08 08:15:08 +01:00
registry_test.go Clean up models (#3228) 2024-01-22 07:56:18 +01:00
repo.go Add check for storage where repo/org name is empty (#2968) 2023-12-19 06:03:56 +01:00
repo_test.go Make PipelineConfig unique again (#3215) 2024-01-18 23:50:29 +02:00
secret.go Update go module path for major version 2 (#2905) 2023-12-08 08:15:08 +01:00
secret_test.go Use assert for test (#3201) 2024-01-14 19:33:58 +01:00
server_config.go Update go module path for major version 2 (#2905) 2023-12-08 08:15:08 +01:00
server_config_test.go Use assert for test (#3201) 2024-01-14 19:33:58 +01:00
step.go Update go module path for major version 2 (#2905) 2023-12-08 08:15:08 +01:00
step_test.go Use assert for test (#3201) 2024-01-14 19:33:58 +01:00
task.go Update go module path for major version 2 (#2905) 2023-12-08 08:15:08 +01:00
task_test.go Use assert for test (#3201) 2024-01-14 19:33:58 +01:00
user.go Update go module path for major version 2 (#2905) 2023-12-08 08:15:08 +01:00
users_test.go Add spellcheck config (#3018) 2024-01-27 21:15:10 +01:00
workflow.go Update pipeline state on server as a whole on approval (#3504) 2024-03-18 20:07:45 +01:00
workflow_test.go Use assert for test (#3201) 2024-01-14 19:33:58 +01:00
xorm.go Replace interface{} with any (#2807) 2023-11-12 18:23:48 +01:00