-
Notifications
You must be signed in to change notification settings - Fork 11
feat: Fir 12126 make engine parameter optional #152
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
feat: Fir 12126 make engine parameter optional #152
Conversation
Lgtm, just wondering if we can use |
Oh, that actually seems to be much better, didn't see that endpoint. Will use this one |
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
assert database is not None | ||
|
||
if engine_name: | ||
if not engine_name and not engine_url: |
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.
Change the documentation on L153 to reflect the changes
HTTPStatusError, | ||
KeyError, | ||
) as e: | ||
raise InterfaceError(f"Unable to retrieve default engine endpoint: {e}.") |
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.
What if the real error is wrong credentials or expired/incorrect token?
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.
Sure, we could also catch AuthenticationError
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.
On the other side, I think AuthenticationError
is pretty representative itself, so I think we should just let it propagate further
Kudos, SonarCloud Quality Gate passed! |
Allow users to skip engine parameter. Get default engine url in this case.
Added unit and integration tests