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

WIP- create mixin for chart query #19812

Closed
wants to merge 1 commit into from

Conversation

eschutho
Copy link
Member

@eschutho eschutho commented Apr 21, 2022

SUMMARY

Per (SIP pending) and #18584 we are in the process of allowing creation of a chart without a dataset. A chart will be able to be created (not saved) by a query, saved query, table, or dataset. This is just step one, chart creation with a query. There is no form data or query context yet.. that will be in a follow up PR.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@superset-github-bot superset-github-bot bot added the Superset-Community-Partners Preset community partner program participants label Apr 21, 2022
@eschutho eschutho marked this pull request as draft April 21, 2022 21:13
@codecov
Copy link

codecov bot commented Apr 21, 2022

Codecov Report

Merging #19812 (8659381) into master (fcc8080) will decrease coverage by 12.59%.
The diff coverage is 75.00%.

@@             Coverage Diff             @@
##           master   #19812       +/-   ##
===========================================
- Coverage   66.53%   53.94%   -12.60%     
===========================================
  Files        1692     1692               
  Lines       64780    64829       +49     
  Branches     6661     6661               
===========================================
- Hits        43103    34971     -8132     
- Misses      19977    28158     +8181     
  Partials     1700     1700               
Flag Coverage Δ
hive 52.88% <75.00%> (+0.02%) ⬆️
mysql ?
postgres ?
presto 52.73% <75.00%> (+0.02%) ⬆️
python 56.74% <75.00%> (-25.64%) ⬇️
sqlite ?
unit 47.96% <66.66%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
superset/models/helpers.py 75.51% <73.68%> (-15.63%) ⬇️
superset/config.py 90.81% <75.00%> (-0.60%) ⬇️
superset/models/sql_lab.py 84.41% <100.00%> (-7.15%) ⬇️
superset/utils/dashboard_import_export.py 0.00% <0.00%> (-100.00%) ⬇️
superset/key_value/commands/upsert.py 0.00% <0.00%> (-89.59%) ⬇️
superset/key_value/commands/update.py 0.00% <0.00%> (-89.37%) ⬇️
superset/key_value/commands/delete.py 0.00% <0.00%> (-85.30%) ⬇️
superset/key_value/commands/delete_expired.py 0.00% <0.00%> (-80.77%) ⬇️
superset/dashboards/commands/importers/v0.py 14.79% <0.00%> (-75.15%) ⬇️
superset/datasets/commands/importers/v0.py 24.82% <0.00%> (-68.80%) ⬇️
... and 270 more

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 fcc8080...8659381. Read the comment docs.

@eschutho eschutho removed the Superset-Community-Partners Preset community partner program participants label May 4, 2022
# def type(self) -> str:
# return f"{self.__class__.__name__.lower()}"

type = "query"
Copy link
Member Author

@eschutho eschutho May 10, 2022

Choose a reason for hiding this comment

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

can we make this more specific like model_type, data_type

Copy link
Member Author

Choose a reason for hiding this comment

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

this needs to get moved into the subclass.

# def type(self) -> str:
# return f"{self.__class__.__name__.lower()}"

type = "query"
Copy link
Member Author

Choose a reason for hiding this comment

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

can we make this more specific like model_type?

@eschutho eschutho closed this Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant