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 reload crash #17992

Merged
merged 2 commits into from
Jan 11, 2022
Merged

Conversation

pkdotson
Copy link
Member

SUMMARY

Possible fix for issue where the gridcomponent might be undefined causing dashboard to crash.

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

Copy link
Member

@rusackas rusackas left a comment

Choose a reason for hiding this comment

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

This looks like the right spot to me.

@rusackas
Copy link
Member

For anyone wondering what this PR is about, we're seeing a weirdly erratic error on one particular example dashboard on our deployments, that's happening at this particular location in these lines. We're hopeful that this little safety check will resolve it 🤞, and will upload before/after screenshots if it works.

@codecov
Copy link

codecov bot commented Jan 11, 2022

Codecov Report

Merging #17992 (89fc3aa) into master (f7add54) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #17992   +/-   ##
=======================================
  Coverage   67.05%   67.05%           
=======================================
  Files        1612     1612           
  Lines       64999    64999           
  Branches     6872     6872           
=======================================
  Hits        43586    43586           
  Misses      19546    19546           
  Partials     1867     1867           
Flag Coverage Δ
javascript 53.79% <100.00%> (ø)

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

Impacted Files Coverage Δ
...rontend/src/dashboard/components/DashboardGrid.jsx 65.11% <100.00%> (ø)

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 f7add54...89fc3aa. Read the comment docs.

@pkdotson pkdotson merged commit 3d829fc into apache:master Jan 11, 2022
@rusackas rusackas deleted the fix-dashboard-reload-2 branch January 11, 2022 04:06
rosemarie-chiu pushed a commit to preset-io/superset that referenced this pull request Jan 11, 2022
* fix dashboard reload

* add more strict case

(cherry picked from commit 3d829fc)
eschutho pushed a commit that referenced this pull request Jan 27, 2022
* fix dashboard reload

* add more strict case
shcoderAlex pushed a commit to casual-precision/superset that referenced this pull request Feb 7, 2022
* fix dashboard reload

* add more strict case
bwang221 pushed a commit to casual-precision/superset that referenced this pull request Feb 10, 2022
* fix dashboard reload

* add more strict case
@mistercrunch mistercrunch added 🍒 1.4.1 🍒 1.4.2 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.5.0 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 preset-io size/XS v1.4.1 🍒 1.4.1 🍒 1.4.2 🚢 1.5.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants