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: don't show busted label for unknown data types #14585

Merged
merged 1 commit into from
May 13, 2021

Conversation

rusackas
Copy link
Member

SUMMARY

In the dataset editor modal, data columns with unknown types showed odd looking little empty Label components. This simply doesn't render those. We can add in some other "unknown" icon or other treatment, but it seemed like "less is more" in this case.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before:
image

After:
image

TEST PLAN

Pick a dataset in the CRUD view, click the pencil/edit action, and click the "Calculated Columns" tab to (most likely) see a specimen.

ADDITIONAL INFORMATION

  • Has associated issue: [cosmetic]multiple cosmetic issues in Explore #14570
  • 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

@codecov
Copy link

codecov bot commented May 12, 2021

Codecov Report

Merging #14585 (93f6207) into master (6d786d4) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #14585      +/-   ##
==========================================
- Coverage   77.40%   77.40%   -0.01%     
==========================================
  Files         958      958              
  Lines       48329    48329              
  Branches     5679     5679              
==========================================
- Hits        37410    37408       -2     
- Misses      10719    10721       +2     
  Partials      200      200              
Flag Coverage Δ
hive 80.89% <ø> (ø)
javascript 72.47% <0.00%> (ø)
mysql 81.15% <ø> (-0.01%) ⬇️
postgres 81.18% <ø> (ø)
presto 80.88% <ø> (-0.01%) ⬇️
python 81.71% <ø> (-0.01%) ⬇️
sqlite 80.79% <ø> (ø)

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

Impacted Files Coverage Δ
...erset-frontend/src/datasource/DatasourceEditor.jsx 66.38% <0.00%> (ø)
superset/db_engine_specs/presto.py 89.89% <0.00%> (-0.43%) ⬇️

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 6d786d4...93f6207. Read the comment docs.

@rusackas rusackas added the bash! label May 12, 2021
@junlincc
Copy link
Member

/testenv up

@github-actions
Copy link
Contributor

@junlincc Ephemeral environment spinning up at http://54.68.112.58:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

@junlincc junlincc self-requested a review May 13, 2021 00:21
Copy link
Member

@junlincc junlincc left a comment

Choose a reason for hiding this comment

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

Screen Shot 2021-05-12 at 5 21 32 PM

LGTM. thanks for the fix!

@junlincc
Copy link
Member

Oops,,,, i meant to use my QA account to approve. sorry

@junlincc junlincc added the need:review Requires a code review label May 13, 2021
Copy link
Member

@villebro villebro left a comment

Choose a reason for hiding this comment

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

LGTM!

@junlincc junlincc added need:merge The PR is ready to be merged and removed need:review Requires a code review labels May 13, 2021
@rusackas rusackas merged commit ad699e8 into master May 13, 2021
@rusackas rusackas deleted the no-empty-data-type-label branch May 13, 2021 06:16
@github-actions
Copy link
Contributor

Ephemeral environment shutdown and build artifacts deleted.

@junlincc junlincc added the rush! Requires immediate attention label May 18, 2021
henryyeh pushed a commit to preset-io/superset that referenced this pull request May 18, 2021
@junlincc junlincc removed the rush! Requires immediate attention label May 27, 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 need:merge The PR is ready to be merged preset-io size/XS 🚢 1.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants