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: Remove grey bar for TableElement component when metadata is empty #16054

Merged
merged 16 commits into from
Aug 4, 2021

Conversation

hughhhh
Copy link
Member

@hughhhh hughhhh commented Aug 3, 2021

SUMMARY

A small grey bar would appear above the schema definition for gsheet table. The reason being gsheets returns empty array [] which is causing the component to render. I've added a additional condition to check if the metadata array is empty.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before:

Screen Shot 2021-08-03 at 4 25 46 PM

After:

Screen Shot 2021-08-03 at 4 26 10 PM

TESTING INSTRUCTIONS

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

@codecov
Copy link

codecov bot commented Aug 3, 2021

Codecov Report

Merging #16054 (b72a084) into master (7ef97a5) will decrease coverage by 0.13%.
The diff coverage is 100.00%.

❗ Current head b72a084 differs from pull request most recent head 1fed1fd. Consider uploading reports for the commit 1fed1fd to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master   #16054      +/-   ##
==========================================
- Coverage   76.79%   76.65%   -0.14%     
==========================================
  Files         995      995              
  Lines       52876    52876              
  Branches     6720     6720              
==========================================
- Hits        40606    40532      -74     
- Misses      12044    12118      +74     
  Partials      226      226              
Flag Coverage Δ
hive ?
javascript 71.28% <100.00%> (+0.01%) ⬆️

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

Impacted Files Coverage Δ
...et-frontend/src/SqlLab/components/TableElement.tsx 88.75% <100.00%> (ø)
superset/db_engines/hive.py 0.00% <0.00%> (-82.15%) ⬇️
superset/db_engine_specs/hive.py 69.80% <0.00%> (-16.87%) ⬇️
superset/views/database/mixins.py 81.03% <0.00%> (-1.73%) ⬇️
superset/db_engine_specs/presto.py 83.47% <0.00%> (-1.05%) ⬇️
superset/db_engine_specs/base.py 87.98% <0.00%> (-0.39%) ⬇️
superset/connectors/sqla/models.py 88.08% <0.00%> (-0.24%) ⬇️
superset/utils/core.py 88.09% <0.00%> (-0.13%) ⬇️
superset-frontend/src/components/Select/Select.tsx 73.75% <0.00%> (+1.35%) ⬆️

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 7ef97a5...1fed1fd. Read the comment docs.

@rosemarie-chiu
Copy link
Contributor

🏷 2021.31

@hughhhh hughhhh merged commit 11a2d4d into master Aug 4, 2021
henryyeh pushed a commit to preset-io/superset that referenced this pull request Aug 6, 2021
…pty (apache#16054)

* create serialize json function

* remove grey space with no metadata

* remove console log

(cherry picked from commit 11a2d4d)
villebro pushed a commit that referenced this pull request Aug 9, 2021
…pty (#16054)

* create serialize json function

* remove grey space with no metadata

* remove console log

(cherry picked from commit 11a2d4d)
@villebro villebro added the v1.3 label Aug 9, 2021
villebro pushed a commit that referenced this pull request Aug 10, 2021
…pty (#16054)

* create serialize json function

* remove grey space with no metadata

* remove console log

(cherry picked from commit 11a2d4d)
opus-42 pushed a commit to opus-42/incubator-superset that referenced this pull request Nov 14, 2021
…pty (apache#16054)

* create serialize json function

* remove grey space with no metadata

* remove console log
cccs-RyanS pushed a commit to CybercentreCanada/superset that referenced this pull request Dec 17, 2021
…pty (apache#16054)

* create serialize json function

* remove grey space with no metadata

* remove console log

(cherry picked from commit 11a2d4d)
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 28, 2021
…pty (apache#16054)

* create serialize json function

* remove grey space with no metadata

* remove console log
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 29, 2021
…pty (apache#16054)

* create serialize json function

* remove grey space with no metadata

* remove console log

(cherry picked from commit 11a2d4d)
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
…pty (apache#16054)

* create serialize json function

* remove grey space with no metadata

* remove console log

(cherry picked from commit d66ec6d)
@mistercrunch mistercrunch added 🍒 1.3.0 🍒 1.3.1 🍒 1.3.2 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.4.0 labels Mar 13, 2024
@mistercrunch mistercrunch deleted the hugh/fix-metadata-showing branch March 26, 2024 17:55
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 preset:2021.31 size/XS v1.3 🍒 1.3.0 🍒 1.3.1 🍒 1.3.2 🚢 1.4.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants