-
Notifications
You must be signed in to change notification settings - Fork 238
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]: Raise NoResultFound Exception for Missing Base #2035
[Fix]: Raise NoResultFound Exception for Missing Base #2035
Conversation
…en a base is missing
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
The function fetch_base_by_id
is called in a number of functions outside of try-except. This change might introduce unexpected bugs. Please make sure to add exception handling to wherever this function is used and make sure that the logic is not changed (for instance, please make sure that none of the places calling this function consider a None result as if there is no results).
…-existent-id-results-in-a-non
…-existent-id-results-in-a-non
…n /container_url/ endpoint
Actually, no. The only function where Functions/routers that make use of the
re: @mmabrouk |
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.
I'm looking over the backward compatibility fix.
I won't comment on tech debt over tech debt over soon-to-be-updated services :D
…-existent-id-results-in-a-non
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.
Thanks @aybruhm QA'ed successfully
Description
This PR addresses an issue in the backend where attempting to fetch a configuration with a non-existent
base_id
resulted in a non-descriptive error. Theagenta.get_config
function has been updated to raise aNoResultFound
exception when the specified base does not exist, ensuring that error handling is more explicit and informative.Related Issue
Closes AGE-702
Changes Included
fetch_base_by_id
function to raise aNoResultFound
exception if the providedbase_id
does not match any existing base.What to QA
base_id
to ensure it works as expected.base_id
and verify that theNoResultFound
exception is raised and logged correctly.Acceptance Criteria
NoResultFound
exception is raised when a non-existentbase_id
is provided.