PromucFlow_constructor/app/client/src/ce
Vemparala Surya Vamsi c8943509a0
chore: improved performance of getUnevaluatedDataTree (#37189)
## Description
Refactored getUnevaluatedDataTree selector to be more resilient to state
changes thereby reselect cache gets triggered less often. Identified an
action which was firing the selectors unnecessarily, fixed that as well.
For our customer during page load it used to take about 800ms
cumulatively, it has now dropped to about 160ms by about 80%. This is
also an impactful selector which cumulatively takes about 50,000 seconds
for all our client systems per week, hence we focussed our optimisation
here

## Automation

/ok-to-test tags="@tag.All"

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/11658078700>
> Commit: 557172d47b2232800355e1dc78c921d9cb56c725
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=11658078700&attempt=2"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.All`
> Spec:
> <hr>Mon, 04 Nov 2024 06:00:06 UTC
<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [ ] No


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Summary by CodeRabbit

- **Bug Fixes**
- Improved state management by preventing unnecessary updates to loading
entities, enhancing app performance.

- **Refactor**
- Updated the `loadingEntitiesReducer` to include an equality check for
loading entities before state updates.
- Enhanced date handling capabilities in the DatePicker widget tests and
commands.
- Restructured the `DataTreeFactory` class for improved modularity and
clarity in data tree creation.
- Simplified selector functions for better readability and
maintainability in data tree selectors.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-11-04 16:03:03 +05:30
..
actions chore: [Plugin Action Editor] Combine Plugin Editor UI state (#36651) 2024-10-08 16:12:27 +05:30
api chore: Refactor API (#36412) 2024-09-25 16:29:21 +05:30
components chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
configs chore: Removed manipulation for custom traceparent header (#37121) 2024-10-30 11:27:25 +05:30
constants chore: Add Rename context menu (#37116) 2024-10-31 17:25:04 +05:30
entities chore: improved performance of getUnevaluatedDataTree (#37189) 2024-11-04 16:03:03 +05:30
hooks fix: New query button does not show up issue fixed (#36766) 2024-10-09 13:22:27 +05:30
IDE/hooks chore: [Plugin Action Editor] Implement a useIsEditorIsInitialised hook (#36328) 2024-09-16 16:40:37 +05:30
navigation fix: API Body format focus retention (#37150) 2024-11-01 11:24:49 +05:30
pages chore: decouple editor components (#37102) 2024-11-04 15:32:30 +05:30
PluginActionEditor chore: Reordering response pane tabs to default to schema tab (#37100) 2024-10-25 18:05:02 +05:30
plugins/Linting chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
reducers chore: [Plugin Action Editor] Combine Plugin Editor UI state (#36651) 2024-10-08 16:12:27 +05:30
sagas chore: refactor query duplication flow (#36915) 2024-10-24 14:01:00 +05:30
selectors chore: Updating plugin action name editor component to use ADS text component (#36960) 2024-10-18 19:07:50 +05:30
types fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
utils chore: fix errors related to service worker in dev mode (#37012) 2024-10-23 14:48:29 +05:30
workers chore: cache dependencyMap computation on client (#35965) 2024-10-15 21:05:39 +05:30
AppRouter.tsx chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
RouteBuilder.ts chore: Split library side pane for adding package control section (#36926) 2024-10-22 10:48:03 +05:30
RouteParamsMiddleware.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00