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(dev-server run): Check for environment tag not being undefined #21232

Merged
merged 4 commits into from
Aug 30, 2022

Conversation

sinhashubham95
Copy link
Contributor

@sinhashubham95 sinhashubham95 commented Aug 29, 2022

SUMMARY

Environment tag is not set in the dev-server, so reference to a key in the environment tag was making the dev-server not loadable.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

Try to load Superset on dev-server, it does not load. After this fix, it should load.

ADDITIONAL INFORMATION

  • Has associated issue: Superset not get loaded properly in local environment #21230
  • 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

@codecov
Copy link

codecov bot commented Aug 29, 2022

Codecov Report

Merging #21232 (ae8161d) into master (1d3a805) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master   #21232      +/-   ##
==========================================
- Coverage   66.45%   66.45%   -0.01%     
==========================================
  Files        1784     1784              
  Lines       68142    68141       -1     
  Branches     7264     7265       +1     
==========================================
- Hits        45285    45284       -1     
+ Misses      20989    20988       -1     
- Partials     1868     1869       +1     
Flag Coverage Δ
javascript 52.49% <100.00%> (-0.01%) ⬇️

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

Impacted Files Coverage Δ
...ols/DndColumnSelectControl/ColumnSelectPopover.tsx 3.37% <ø> (+0.10%) ⬆️
...perset-frontend/src/views/components/RightMenu.tsx 63.33% <100.00%> (ø)
...tend/src/views/CRUD/data/database/DatabaseList.tsx 66.00% <0.00%> (-2.37%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sinhashubham95
Copy link
Contributor Author

@villebro can you please check this?

@mtv2102
Copy link

mtv2102 commented Aug 30, 2022

@sinhashubham95 I tried as like your changes from your commit [https://github.com//pull/21232/commits/53f9f75d443bba7689a2a77473fed2e11b999e23]
but my issue still remains same...Is there any other place that I missed out...?

Copy link
Member

@stephenLYZ stephenLYZ left a comment

Choose a reason for hiding this comment

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

LGTM!

@sinhashubham95
Copy link
Contributor Author

@villebro @stephenLYZ can you merge this?

@stephenLYZ stephenLYZ merged commit b354f22 into apache:master Aug 30, 2022
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.

Minor nit, other than that LGTM

@@ -281,7 +281,7 @@ const RightMenu = ({
onDatabaseAdd={handleDatabaseAdd}
/>
)}
{environmentTag.text && (
{environmentTag && environmentTag.text && (
Copy link
Member

Choose a reason for hiding this comment

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

Could we simplify this to

Suggested change
{environmentTag && environmentTag.text && (
{environmentTag?.text && (

Copy link
Member

Choose a reason for hiding this comment

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

Oh, too late 🙁

Copy link
Member

Choose a reason for hiding this comment

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

Ops...Let's put it on the next PR

Copy link
Member

Choose a reason for hiding this comment

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

Ops...Let's put it on the next PR

no worries, it was just a minor nit 🙂👍

Copy link
Member

Choose a reason for hiding this comment

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

Opened a PR to fix this once and for all.

@sinhashubham95 sinhashubham95 deleted the fix-local branch August 30, 2022 07:06
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 2.1.0 and removed 🚢 2.1.3 labels Mar 13, 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/XS 🚢 2.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants