Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(api): fix stop workflow run for purge #3149

Merged
merged 2 commits into from
Aug 7, 2018
Merged

Conversation

bnjjj
Copy link
Contributor

@bnjjj bnjjj commented Aug 6, 2018

Signed-off-by: Benjamin Coenen [email protected]

  1. Description
  2. Related issues
  3. About tests
  4. Mentions

@ovh/cds

@bnjjj bnjjj added the bug label Aug 6, 2018
@bnjjj bnjjj requested review from yesnault and fsamin August 6, 2018 15:03
@@ -658,7 +658,8 @@ func updateNodeRunCommits(db gorp.SqlExecutor, id int64, commits []sdk.VCSCommit
return nil
}

func updateNodeRunStatusAndStage(db gorp.SqlExecutor, nodeRun *sdk.WorkflowNodeRun) error {
// UpdateNodeRunStatusAndStage update just noderun status and stage
func UpdateNodeRunStatusAndStage(db gorp.SqlExecutor, nodeRun *sdk.WorkflowNodeRun) error {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think updateNodeRunStatusAndStage should not be public, it's a very low-level function, only called by other private functions.

Maybe the goal achieved in the purge package querying and modifying workflowNoRun is also a bit low-level and should be in the workflow package.

@fsamin fsamin merged commit 7aa9b83 into master Aug 7, 2018
@fsamin fsamin deleted the fix_stop_workflow_purge branch August 8, 2018 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants