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

Add backend pipeline validation #63

Merged
merged 2 commits into from
Feb 17, 2024
Merged

Conversation

joshtyf
Copy link
Owner

@joshtyf joshtyf commented Feb 15, 2024

Description

Add pipeline validation logic. This PR mainly targets new created pipelines. I will create a separate validation in the future when updating pipelines.

I've yet to utilise the method ValidatePipeline as I'm considering to create a middleware to validate the request body in the API POST /api/pipeline. This will be done in a separate PR.

Closes #40

@joshtyf joshtyf added backend Backend related feature A new feature labels Feb 15, 2024
@joshtyf joshtyf added this to the M2: More features milestone Feb 15, 2024
@joshtyf joshtyf self-assigned this Feb 15, 2024
Copy link
Collaborator

@Ziyang-98 Ziyang-98 left a comment

Choose a reason for hiding this comment

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

LGTM for now. Btw for pipeline validation, should there be a check for approval step to be present for all pipelines? I assume every pipeline needs the approval step.

@joshtyf
Copy link
Owner Author

joshtyf commented Feb 17, 2024

@Ziyang-98 not too sure about needing approval on every request as some requests might not be as critical. we can implement it in the future if needed

@joshtyf joshtyf merged commit 16cf368 into main Feb 17, 2024
2 checks passed
@joshtyf joshtyf deleted the feature/backend-pipeline-validation branch March 10, 2024 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Backend related feature A new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Validate pipeline schema in backend
2 participants