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

[API] Fix get pipelines return code in case of nonexistent project #3625

Merged
merged 1 commit into from
May 29, 2023

Conversation

yanburman
Copy link
Contributor

Copy link
Contributor

@Tankilevitch Tankilevitch left a comment

Choose a reason for hiding this comment

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

Looking at the logic that is being "catched" it seems quite weird that if we don't find that pipeline under the requested project we return MLRunInvalidArgumentError which returns 400, while I would expect to get 404 which is the mlrun error - MLRunNotFoundError.

please adjust it as well

Copy link
Contributor

@Tankilevitch Tankilevitch left a comment

Choose a reason for hiding this comment

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

Looking at the logic that is being "catched" it seems quite weird that if we don't find that pipeline under the requested project we return MLRunInvalidArgumentError which returns 400, while I would expect to get 404 which is the mlrun error - MLRunNotFoundError.

please adjust it as well

Signed-off-by: Yan Burman <yanburman@users.noreply.github.com>
@Tankilevitch Tankilevitch merged commit 83022b5 into mlrun:development May 29, 2023
14 checks passed
@yanburman yanburman deleted the pipelines_err branch May 29, 2023 10:56
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.

None yet

3 participants