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

fix: dashboard datasources filter None #14471

Merged

Conversation

etr2460
Copy link
Member

@etr2460 etr2460 commented May 4, 2021

SUMMARY

Mypy types led me astray and proved that dashboard.datasources was actually a Set[Optional[BaseDatasource]]. I've updated logic to filter out None datasources for dashboards, updated the types to be correct, and handle slice.datasource == None throughout the app

TEST PLAN

CI

ADDITIONAL INFORMATION

  • Has associated issue:
  • 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

to: @villebro @john-bodley @graceguo-supercat @ktmud @suddjian

@codecov
Copy link

codecov bot commented May 4, 2021

Codecov Report

Merging #14471 (7007b57) into master (d138b44) will decrease coverage by 0.14%.
The diff coverage is 63.63%.

❗ Current head 7007b57 differs from pull request most recent head 4ab992c. Consider uploading reports for the commit 4ab992c to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master   #14471      +/-   ##
==========================================
- Coverage   77.11%   76.97%   -0.15%     
==========================================
  Files         952      952              
  Lines       48156    48161       +5     
  Branches     6054     6054              
==========================================
- Hits        37137    37071      -66     
- Misses      10818    10889      +71     
  Partials      201      201              
Flag Coverage Δ
hive ?
mysql 81.05% <63.63%> (-0.01%) ⬇️
postgres 81.07% <63.63%> (-0.03%) ⬇️
presto 80.79% <63.63%> (-0.01%) ⬇️
python 81.36% <63.63%> (-0.28%) ⬇️
sqlite 80.69% <63.63%> (-0.01%) ⬇️

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

Impacted Files Coverage Δ
superset/views/core.py 75.49% <25.00%> (-0.15%) ⬇️
superset/views/utils.py 84.06% <50.00%> (ø)
superset/models/dashboard.py 77.98% <100.00%> (ø)
superset/models/slice.py 86.03% <100.00%> (+0.07%) ⬆️
superset/db_engines/hive.py 0.00% <0.00%> (-82.15%) ⬇️
superset/db_engine_specs/hive.py 70.32% <0.00%> (-17.08%) ⬇️
superset/connectors/sqla/models.py 89.83% <0.00%> (-0.25%) ⬇️
superset/utils/core.py 88.77% <0.00%> (-0.13%) ⬇️

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 d138b44...4ab992c. Read the comment docs.

@etr2460 etr2460 merged commit a816655 into apache:master May 4, 2021
etr2460 pushed a commit to airbnb/superset-fork that referenced this pull request May 4, 2021
john-bodley pushed a commit to airbnb/superset-fork that referenced this pull request May 5, 2021
cccs-RyanS pushed a commit to CybercentreCanada/superset that referenced this pull request Dec 17, 2021
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 29, 2021
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.3.0 labels Mar 12, 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 size/S 🚢 1.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants