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(webserver): remove flow validation before taskDefault injection #2231

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

Skraye
Copy link
Member

@Skraye Skraye commented Oct 4, 2023

When using Terraform with flow as JSON (not keeping source), the @Valid annotation validate the flow before we inject TaskDefaults in it, returning 422 even if the flow have taskDefaults that correctly inject required properties.

Moreover, the flow is validated a second times with the taskDefaults injected, so the @Valid one can be omit the flow will still be validated.
image

@Skraye Skraye self-assigned this Oct 4, 2023
Copy link
Contributor

@moadibfr moadibfr left a comment

Choose a reason for hiding this comment

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

LGTM
Sorry I did not catch this when I looked at the code I saw the taskdefault injection and everything seemed right 😓

@loicmathieu
Copy link
Member

@Skraye did you also make the same change on EE?

@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 4, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@Skraye Skraye merged commit 9f93c71 into develop Oct 4, 2023
@Skraye Skraye deleted the fix/flow-422 branch October 4, 2023 20:19
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