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: authorization headers on Typhos help widget redirect #457
Conversation
@@ -15,7 +15,7 @@ def _warn_unhandled(instance, metadata_key, value): | |||
if value is None: | |||
return | |||
|
|||
logger.warning( | |||
logger.debug( |
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.
sneaky
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.
Begone, annoying log messages!
self, level, message, line_number, source_id | ||
): | ||
""" | ||
This hook redirects javascript console messages to Python logging. |
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.
A++ this is something that I need to duplicate in pmps-ui
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.
Everything here seems reasonable, I agree with putting the web stuff into its own submodule (I've had trouble finding it before) and I think you've gone to the correct level in making sure we don't share our credentials with arbitrary websites that we may find links to on confluence.
Description
typhos.web
(to isolate and also move web log messages to a different logger instance)TYPHOS_HELP_HEADERS_HOSTS
env variable)Motivation and Context
New confluence release includes a redirect, so our help system wasn't working with access tokens only being set on the first go.
How Has This Been Tested?
Interactively.
Where Has This Been Documented?
Mostly in this PR text and docstrings.
Screenshots (if appropriate):