-
Notifications
You must be signed in to change notification settings - Fork 115
Telemetry server-side flag integration #646
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Sai Shree Pradhan <[email protected]>
Signed-off-by: Sai Shree Pradhan <[email protected]>
Signed-off-by: Sai Shree Pradhan <[email protected]>
Signed-off-by: Sai Shree Pradhan <[email protected]>
Signed-off-by: Sai Shree Pradhan <[email protected]>
from typing import Dict, Optional, List, Any, TYPE_CHECKING | ||
|
||
if TYPE_CHECKING: | ||
from databricks.sql.client import Connection |
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's this?
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.
It is for static type checking and prevents circular imports
# We don't check for an in-flight refresh; the executor queues the task, which is safe. | ||
self._executor.submit(self._refresh_flags) | ||
|
||
assert self._flags is not None |
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.
does this mean we will just fail if we aren't able to fetch flags? shouldn't we do safe defaults?
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.
If there is an exception in _refresh_flags()
, _flags
is set to an empty Dict. If the particular flag we are checking is set to None
, we use the default value passed in the args.
What type of PR is this?
Description
How is this tested?
Related Tickets & Documents
PECOBLR-583