-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
[slice_json] pass slice id to get_form_data() #4607
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4607 +/- ##
=========================================
+ Coverage 71.18% 72.08% +0.9%
=========================================
Files 189 189
Lines 14847 15512 +665
Branches 1086 1086
=========================================
+ Hits 10569 11182 +613
- Misses 4275 4327 +52
Partials 3 3
Continue to review full report at Codecov.
|
datasource_type = viz_obj.datasource.type | ||
datasource_id = viz_obj.datasource.id | ||
form_data, slc = self.get_form_data() | ||
form_data, slc = self.get_form_data(slice_id) |
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 the overriding, e.g. since
and until
still work?
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 I talked to @graceguo-supercat about get_form_data
and it's supposed to encapsulate all of the logic for form data + overrides. you can see on this line that it will override the saved slice params with any in the request
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.
Sweet
LGTM! |
(cherry picked from commit 95a9b04)
@mistercrunch @graceguo-supercat @fabianmenges
This line of #4490 broke all non-formula type annotations as it didn't pass the
slice_id
through toget_form_data()
before:
after: