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): max call size stack error #24304

Conversation

justinpark
Copy link
Member

SUMMARY

There's a case that dashboardLayout consists of the circular structure. Following is the case:

Screenshot 2023-06-06 at 4 26 31 PM

This causes the max. call stack size error in findTabsWithChartsInScopeHelper.
This commit fixes the infinite recursive loop in the circular structure.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

After:
No error

Before:
Maximum call stack size exceeded

TESTING INSTRUCTIONS

unit test with circular structure

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

@codecov
Copy link

codecov bot commented Jun 7, 2023

Codecov Report

Merging #24304 (54f97aa) into master (9df8d8d) will decrease coverage by 1.76%.
The diff coverage is 93.40%.

❗ Current head 54f97aa differs from pull request most recent head 14ecc0c. Consider uploading reports for the commit 14ecc0c to get more accurate results

@@            Coverage Diff             @@
##           master   #24304      +/-   ##
==========================================
- Coverage   68.30%   66.54%   -1.76%     
==========================================
  Files        1957     1957              
  Lines       75594    75627      +33     
  Branches     8224     8225       +1     
==========================================
- Hits        51637    50329    -1308     
- Misses      21849    23185    +1336     
- Partials     2108     2113       +5     
Flag Coverage Δ
hive ?
javascript 54.76% <48.14%> (+0.03%) ⬆️
presto ?
unit ?

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

Impacted Files Coverage Δ
...set-ui-core/src/ui-overrides/ExtensionsRegistry.ts 100.00% <ø> (ø)
...hart-echarts/src/BigNumber/BigNumberTotal/index.ts 66.66% <ø> (ø)
...arts/src/BigNumber/BigNumberWithTrendline/index.ts 66.66% <ø> (ø)
...t-frontend/plugins/plugin-chart-table/src/index.ts 66.66% <ø> (ø)
...nd/src/components/ErrorMessage/BasicErrorAlert.tsx 93.75% <ø> (ø)
superset-frontend/src/components/Table/index.tsx 75.29% <ø> (ø)
superset-frontend/src/components/Tags/Tag.tsx 62.50% <ø> (ø)
...veFilters/FilterBar/FilterControls/FilterValue.tsx 5.66% <0.00%> (-0.06%) ⬇️
superset-frontend/src/dashboard/types.ts 100.00% <ø> (ø)
...perset-frontend/src/hooks/apiResources/queryApi.ts 100.00% <ø> (ø)
... and 234 more

... and 49 files with indirect coverage changes

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

Copy link
Member

@michael-s-molina michael-s-molina left a comment

Choose a reason for hiding this comment

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

LGTM

@justinpark justinpark merged commit 9c7b8b8 into apache:master Jun 7, 2023
john-bodley pushed a commit to airbnb/superset-fork that referenced this pull request Jun 27, 2023
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 3.0.0 labels Mar 8, 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/M 🚢 3.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants