Skip to content
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

Merged
merged 1 commit into from
Mar 13, 2018

Conversation

williaster
Copy link
Contributor

@mistercrunch @graceguo-supercat @fabianmenges

This line of #4490 broke all non-formula type annotations as it didn't pass the slice_id through to get_form_data()

before:
image

after:
image

@codecov-io
Copy link

Codecov Report

Merging #4607 into master will increase coverage by 0.9%.
The diff coverage is 0%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
superset/views/core.py 71.19% <0%> (+0.05%) ⬆️
superset/connectors/druid/models.py 79.69% <0%> (+3.37%) ⬆️
superset/viz.py 81.86% <0%> (+3.4%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update de44098...0210bf0. Read the comment docs.

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)
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet

@williaster williaster merged commit 95a9b04 into master Mar 13, 2018
@graceguo-supercat
Copy link

LGTM!

@williaster williaster deleted the chris--fix-annotations branch March 13, 2018 21:50
graceguo-supercat pushed a commit to graceguo-supercat/superset that referenced this pull request Mar 15, 2018
michellethomas pushed a commit to michellethomas/panoramix that referenced this pull request May 24, 2018
wenchma pushed a commit to wenchma/incubator-superset that referenced this pull request Nov 16, 2018
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.24.0 labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.24.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants