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

perf: ⚡️ Expand All and Collapse All render only once #63

Merged
merged 2 commits into from
Apr 25, 2019

Conversation

SaiFi0102
Copy link
Contributor

Currently ExpandAllNodes and CollapseAllNodes render for each and every parent node and can cause the browser to hang for large reports.

This PR improves the performance by first processing the metadata of the report and rendering only once at the end.

Also includes setTreeDepth() API function (I'll open a PR in frappe to handle initial_depth)

Also includes setTreeDepth() function
@netchampfaris netchampfaris dismissed a stale review April 25, 2019 06:51

perf: ⚡️ Expand All and Collapse All render only once (#63)

@netchampfaris netchampfaris merged commit 67f9717 into frappe:master Apr 25, 2019
@netchampfaris
Copy link
Collaborator

🎉 This PR is included in version 1.12.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@SaiFi0102 SaiFi0102 deleted the Expand-Collapse-Depth branch April 27, 2019 05:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants