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): load old workflow before changing anything in database #3772

Merged
merged 2 commits into from
Dec 28, 2018

Conversation

richardlt
Copy link
Member

@richardlt richardlt commented Dec 26, 2018

  1. Description
    Extract workflow loading out of import func and load the workflow before using workflow ParseAndImport.
    This will avoid problems to load the workflow when its components were already updated (ex: workflow.Push make changes on application before loading the workflow, this will generate an error if you remove a deployment strategy on an application).

  2. Related issues
    fix(api): push load old workflow with updated project data #3763

  3. About tests
    Create the workflow before updating it for put workflow endpoint. The put workflow will not create the workflow anymore.

  4. Mentions

@ovh/cds

@ovh-cds
Copy link
Collaborator

ovh-cds commented Dec 26, 2018

CDS Report it#7722.0 ✘

  • w-it
    • w-it ✘

…est case for put endpoint that should not create the workflow
@bnjjj bnjjj merged commit ffd7845 into master Dec 28, 2018
@richardlt richardlt deleted the fix-workflow-push-load-old branch December 28, 2018 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants