You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "sadpandajoe (via GitHub)" <gi...@apache.org> on 2026/10/15 18:23:08 UTC

[PR] fix(dashboard): stop Edit Properties hanging on dashboards with many charts [superset]

sadpandajoe opened a new pull request, #45354:
URL: https://github.com/apache/superset/pull/45354

   ### SUMMARY
   The dashboard Properties modal built one object from the dashboard payload and fed it to the antd form store — through `form.setFieldsValue`, `<Form initialValues>` and the inline-title sync effect — with `metadata` included. No form field reads `metadata`, but hydration gives every interactive chart a `chartsInScope` list of all the other charts (`dashboard/actions/hydrate.ts:322-329`, `dashboard/util/crossFilters.ts:73-109`), so `metadata.chart_configuration` grows with the square of the chart count. rc-field-form deep-merges everything it is given (`@rc-component/util/lib/utils/set.js`), doing an immutable `set` per leaf and copying each parent array, so the cost is roughly the cube of the chart count — and every later `setFieldsValue` pays it again. In jsdom at 333 charts (the chart count in the issue) opening the modal took about 12 s, with 11.4 s of self time in `internalSet`; without `chart_configuration` it took about 140 ms.
   
   No specific introducing change identified. The cross-filter scoping that creates `chartsInScope` came in with #24020 and #24642, and `metadata` has been passed to the form since the modal was written.
   
   The fix leaves `metadata` off that object entirely. Nothing reads it back: the raw metadata is already kept in the `jsonMetadata` editor state and in `originalDashboardMetadata`, and `onFinish` reads only `title`, `description`, `slug`, `certifiedBy` and `certificationDetails` from the form. So the JSON editor, `common.conf` and the other sections are unaffected, and the form store can no longer receive the quadratic value from any entry point.
   
   Not changed here: the Advanced settings JSON editor still renders the large `chart_configuration` (about 113k lines at 333 charts) when that panel is expanded, and saving still persists the quadratic `chartsInScope` into `json_metadata`.
   
   ### TESTING INSTRUCTIONS
   1. Open a dashboard with a few hundred charts (or load a copy whose `json_metadata` has a `chart_configuration` with a `chartsInScope` list per chart).
   2. Click Edit dashboard, then ⋯ → Edit properties.
   3. The modal should open and respond straight away, and the browser tab should not freeze.
   4. Edit the title and the other fields, click Apply, and confirm the dashboard picks up the changes.
   5. Open the modal from the dashboard list (Edit on a row) and confirm it still loads and saves.
   
   ### ADDITIONAL INFORMATION
   - [x] Has associated issue: Fixes #45339
   - [ ] Required feature flags:
   - [ ] Changes UI
   - [ ] Includes DB Migration (follow approval process in [SIP-59](https://github.com/apache/superset/issues/13351))
     - [ ] 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
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] fix(dashboard): stop Edit Properties hanging on dashboards with many charts [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas merged PR #45354:
URL: https://github.com/apache/superset/pull/45354


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] fix(dashboard): stop Edit Properties hanging on dashboards with many charts [superset]

Posted by "codeant-ai-for-open-source[bot] (via GitHub)" <gi...@apache.org>.
codeant-ai-for-open-source[bot] commented on PR #45354:
URL: https://github.com/apache/superset/pull/45354#issuecomment-6199398465

   ## CodeAnt PR Risk: Low Risk
   
   - The PR appears safe to merge; it avoids deep-merging unused dashboard metadata into the properties form.
   - The added test checks that a dashboard with many charts still initializes its title and excludes metadata from the form store.
   
   **Assessed commit:** `c340288794cf`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] fix(dashboard): stop Edit Properties hanging on dashboards with many charts [superset]

Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #45354:
URL: https://github.com/apache/superset/pull/45354#issuecomment-6200917245

   ## [Codecov](https://app.codecov.io/gh/apache/superset/pull/45354?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   :white_check_mark: All modified and coverable lines are covered by tests.
   :white_check_mark: Project coverage is 83.46%. Comparing base ([`72bfc41`](https://app.codecov.io/gh/apache/superset/commit/72bfc4134f2552edde432092f754569a1fd40988?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`c340288`](https://app.codecov.io/gh/apache/superset/commit/c340288794cff7b0c332c1cbadd0ac93178d0ae8?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
   :warning: Report is 2 commits behind head on master.
   
   <details><summary>Additional details and impacted files</summary>
   
   
   
   ```diff
   @@           Coverage Diff           @@
   ##           master   #45354   +/-   ##
   =======================================
     Coverage   83.45%   83.46%           
   =======================================
     Files        3045     3045           
     Lines      199194   199194           
     Branches    46455    46455           
   =======================================
   + Hits       166241   166251   +10     
   + Misses      29727    29717   -10     
     Partials     3226     3226           
   ```
   
   | [Flag](https://app.codecov.io/gh/apache/superset/pull/45354/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
   |---|---|---|
   | [javascript](https://app.codecov.io/gh/apache/superset/pull/45354/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `79.19% <ø> (+0.01%)` | :arrow_up: |
   
   Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.
   </details>
   
   [:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/superset/pull/45354?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).   
   :loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   <details><summary> :rocket: New features to boost your workflow: </summary>
   
   - :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
   - :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org