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] Adding SIP-15 support for the query context #9219
[fix] Adding SIP-15 support for the query context #9219
Conversation
@@ -973,7 +984,12 @@ def test_results_default_deserialization(self): | |||
"sql": "SELECT * FROM birth_names LIMIT 100", | |||
"status": utils.QueryStatus.PENDING, | |||
} | |||
serialized_data, selected_columns, all_columns, expanded_columns = sql_lab._serialize_and_expand_data( | |||
( |
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.
This is black
formatting.
@@ -1016,7 +1032,12 @@ def test_results_msgpack_deserialization(self): | |||
"sql": "SELECT * FROM birth_names LIMIT 100", | |||
"status": utils.QueryStatus.PENDING, | |||
} | |||
serialized_data, selected_columns, all_columns, expanded_columns = sql_lab._serialize_and_expand_data( | |||
( |
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.
This is black
formatting.
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 as quick fix, however I wonder if we should try to establish conventions for what should go into extras
and what warrants a dedicated attribute, e.g. relative_start
, relative_end
etc, which IMO seem very much like extras. FYI @rusackas re: viz.py
deprecation
@villbro I agree. I’m not sure what the original intent was for |
Looking at the current signature, I feel comfortable with most of the other parameters, but the |
CATEGORY
Choose one
This PR ensures that the query context sets the query time range endpoints if undefined and SIP-15 is enabled.
SUMMARY
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TEST PLAN
Added unit test.
ADDITIONAL INFORMATION
REVIEWERS
to: @etr2460 @villebro