-
Notifications
You must be signed in to change notification settings - Fork 18
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
/container-images 404 error code fix #1802
/container-images 404 error code fix #1802
Conversation
75988f6
to
627b6a2
Compare
627b6a2
to
6125bb7
Compare
6125bb7
to
f905d74
Compare
thoth/user_api/api_v1.py
Outdated
return ( | ||
{ | ||
"container_images": entries, | ||
"parameters": parameters, | ||
}, | ||
200, | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is still needed here as navigation info. Return type should be a Union
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
noticed that the header dict is removed ,
it should be present , in 404 contion pass empty dict
Add check for empty list of entries to throw 404 error code Signed-off-by: Shreekara <sshreeka@redhat.com>
f905d74
to
1577263
Compare
/lgtm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
thanks 💯
/approve |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks 💯
/test aicoe-ci/prow/pre-commit |
@harshad16: The specified target(s) for
Use In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/test pre-commit |
2 similar comments
/test pre-commit |
/test pre-commit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
thanks
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: harshad16, KPostOffice, mayaCostantini The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Related Issues and Dependencies
Fixes: #1780
…
This Pull Request implements
Implement #1780 (comment)