-
Notifications
You must be signed in to change notification settings - Fork 592
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
Update yeti analyzer #2930
Update yeti analyzer #2930
Conversation
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.
Overall looks good. Just a couple of quick questions
self.yeti_api_root = root | ||
self.yeti_web_root = root.replace("/api/v2", "") |
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 guess this is to support old configurations?
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.
Yeah this is to ensure that it's easier to maintain future versions of the Yeti API.
self.yeti_web_root = current_app.config.get("YETI_API_ROOT") | ||
self.yeti_web_root.replace("/api", "") | ||
root = current_app.config.get("YETI_API_ROOT") | ||
if root.endswith("/"): |
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.
Isn't this handled at the Yeti web layer?
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.
Yes, but it's to avoid sending queries like /api/v2//blah
. It also depends on how people have their webserver setup, I suppose.
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.
looking good
Update the Yeti analyzer to use the v2 API that will be released soon.
Checks