Skip to content

Improve expansion run page performance#1836

Merged
AaronPlave merged 2 commits into
developfrom
fix/1811/dynamically-load-expansion-run-details
Jan 13, 2026
Merged

Improve expansion run page performance#1836
AaronPlave merged 2 commits into
developfrom
fix/1811/dynamically-load-expansion-run-details

Conversation

@AaronPlave
Copy link
Copy Markdown
Contributor

@AaronPlave AaronPlave commented Jan 2, 2026

Dynamically fetch expansion run details on run row click in the top table instead of fetching all of the nested data for all expansion runs up front. This should significantly improve page load times in scenarios like #1811. Closes #1811.

Verification

  1. Use the DB seed scripts to insert expansion rules in the DB.
  2. Run PlanDev and create a test model with some activities
  3. Run expansion rules on your plan multiple times to generate some expansion runs
  4. Go to the Expansion page in the menu
  5. Go to the Runs tab in the top right
  6. Open your network tab and refresh
  7. Look at network requests for the expansion run and verify that only one run is being loaded at a time

OR run this branch on deployment with a large number of expansion runs already in the database, and verify that the Expansion Runs page no longer loads slowly.

@AaronPlave AaronPlave force-pushed the fix/1811/dynamically-load-expansion-run-details branch from df30d5b to c7ac752 Compare January 13, 2026 17:56
Comment thread src/types/expansion.ts Outdated
@AaronPlave AaronPlave merged commit cb43a0c into develop Jan 13, 2026
5 checks passed
@AaronPlave AaronPlave deleted the fix/1811/dynamically-load-expansion-run-details branch January 13, 2026 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot load Expansion Runs view

3 participants