Skip to content

Conversation

@kgabryje
Copy link
Member

SUMMARY

ace-builds was 1 of the largest libraries in our bundle. It was always fetched when opening a dashboard even though it's only used in dashboard's edit mode (if there are markdown components), SQL lab, and SQL Editor popover in Explore.
This PR implements lazy loading that library.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Notice that we no longer fetch a 1.3MB chunk when opening a dashboard

Before:

Screenshot 2024-07-31 at 16 36 23

After:

Screenshot 2024-07-31 at 18 17 22

TESTING INSTRUCTIONS

  1. Open a dashboard
  2. Verify that the chunk containing ace-builds is not fetched initially
  3. Open edit mode and try to edit a markdown component - verify that it works fine
  4. Open SQL Lab - verify that SQL editor works fine
  5. Open a chart and metrics edit popover - verify that SQL editor works fine

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

@dosubot dosubot bot added change:frontend Requires changing the frontend dashboard:editmode Related to te Dashboard edit mode labels Jul 31, 2024
@michael-s-molina michael-s-molina added the review:checkpoint Last PR reviewed during the daily review standup label Jul 31, 2024
@mistercrunch mistercrunch added the dashboard:performance Related to Dashboard performance label Jul 31, 2024
@mistercrunch
Copy link
Member

Oh nice! Looks like this will positively impact the Explore page loading times positively too

Copy link
Member

@mistercrunch mistercrunch left a comment

Choose a reason for hiding this comment

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

LGTM

@kgabryje kgabryje merged commit d143b24 into apache:master Aug 1, 2024
@michael-s-molina michael-s-molina removed the review:checkpoint Last PR reviewed during the daily review standup label Aug 1, 2024
nyohasstium pushed a commit to Webgains/superset that referenced this pull request Jan 2, 2025
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 5.0.0 First shipped in 5.0.0 labels Jul 29, 2025
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 change:frontend Requires changing the frontend dashboard:editmode Related to te Dashboard edit mode dashboard:performance Related to Dashboard performance packages size/M 🚢 5.0.0 First shipped in 5.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants