Skip to content

Don't render child rows for closed groups#24637

Merged
bbovenzi merged 1 commit into
apache:mainfrom
astronomer:fix-group-collapse
Jun 28, 2022
Merged

Don't render child rows for closed groups#24637
bbovenzi merged 1 commit into
apache:mainfrom
astronomer:fix-group-collapse

Conversation

@bbovenzi

Copy link
Copy Markdown
Contributor

On DAGs with many task groups, collapsing/expanding a group or selecting a task instance can take a really long time. This PR doesn't try to render a any child rows is their parent group is closed. This does force us to remove the open/close animation. But the page is quite a bit faster on large DAGs with many closed groups.

Profiles from 6 runs of a DAG 100 groups of 20 tasks each (2000 task * 6 runs):

Before:
Screen Shot 2022-06-24 at 11 17 52 AM

After:
Screen Shot 2022-06-24 at 11 19 09 AM


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragement file, named {pr_number}.significant.rst, in newsfragments.

@boring-cyborg boring-cyborg Bot added area:UI Related to UI/UX. For Frontend Developers. area:webserver Webserver related Issues labels Jun 24, 2022
@github-actions github-actions Bot added the okay to merge It's ok to merge this PR as it does not require more tests label Jun 28, 2022
@github-actions

Copy link
Copy Markdown
Contributor

The PR is likely OK to be merged with just subset of tests for default Python and Database versions without running the full matrix of tests, because it does not modify the core of Airflow. If the committers decide that the full tests matrix is needed, they will add the label 'full tests needed'. Then you should rebase to the latest main or amend the last commit of the PR, and push it with --force-with-lease.

@bbovenzi bbovenzi merged commit 8f638bb into apache:main Jun 28, 2022
@bbovenzi bbovenzi deleted the fix-group-collapse branch June 28, 2022 15:28
@bbovenzi bbovenzi added this to the Airflow 2.3.3 milestone Jun 28, 2022
ephraimbuddy pushed a commit that referenced this pull request Jun 30, 2022
@ephraimbuddy ephraimbuddy added the type:bug-fix Changelog: Bug Fixes label Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers. area:webserver Webserver related Issues okay to merge It's ok to merge this PR as it does not require more tests type:bug-fix Changelog: Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants