PromucFlow_constructor/app/client/src/selectors
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
..
actionSelectors.tsx chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
activeEditorFieldSelectors.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
analyticsSelectors.tsx fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
appSettingsPaneSelectors.tsx fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
appThemingSelectors.tsx fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
appViewSelectors.tsx fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
authSelectors.tsx fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
autoHeightSelectors.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
autoLayoutSelectors.tsx chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
buildingBlocksSelectors.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
canvasSelectors.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
crudInfoModalSelectors.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
curlImportSelectors.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
datasourceSelectors.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
dataTreeSelectors.ts chore: improved performance of getUnevaluatedDataTree (#37189) 2024-11-04 16:03:03 +05:30
debuggerSelectors.test.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
debuggerSelectors.tsx chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
editorContextSelectors.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
editorSelectors.tsx chore: [Plugin Action Editor] Combine Plugin Editor UI state (#36651) 2024-10-08 16:12:27 +05:30
errorSelectors.tsx fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
explorerSelector.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
flattenedChildCanvasSelector.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
focusHistorySelectors.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
formSelectors.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
gitSyncSelectors.tsx feat: adding branch persistence (#36622) 2024-10-14 19:04:16 +08:00
globalSearchSelectors.tsx fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
ideSelectors.tsx chore: Add Rename context menu (#37116) 2024-10-31 17:25:04 +05:30
jsPaneSelectors.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
layoutSystemSelectors.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
lintingSelectors.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
mainCanvasSelectors.tsx fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
navigationSelectors.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
onboardingSelectors.tsx chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
oneClickBindingSelectors.tsx fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
pageListSelectors.tsx chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
propertyPaneSelectors.tsx chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
settingsSelectors.tsx fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
tableFilterSelectors.tsx chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
templatesSelectors.tsx chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
themeSelectors.tsx chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
ui.tsx feat: editable ide tabs (#36665) 2024-10-14 11:05:38 +03:00
usersSelectors.tsx fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
widgetDragSelectors.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
widgetEnhancementSelectors.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
widgetReflowSelectors.tsx chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
widgetSelectors.test.tsx chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
widgetSelectors.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00