PromucFlow_constructor/app/client/src
Diljit abb0878388
chore: optimise first evaluation by adding worker scope cache (CE) (#38068)
## Description
- Add evalContextCache to reduce the number of times the evalContext is created from the contextTree
- remove resetWorkerGlobalScope execution before every evalSync
- Instantiate the evalWorker in src/index.tsx


Fixes #`Issue Number`  
_or_  
Fixes `Issue URL`
> [!WARNING]  
> _If no issue exists, please create an issue first, and check with the
maintainers if the issue is valid._

## 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/12295048843>
> Commit: 04b1e859b02282ba9efa96aea25acc9f20098061
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=12295048843&attempt=1"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.All`
> Spec:
> <hr>Thu, 12 Dec 2024 12:21:04 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

- **New Features**
- Introduced a new property `actionNames` to enhance action tracking
within JavaScript action entities.
- Added a new feature flag `release_evaluation_scope_cache` for improved
feature management.
- Implemented a new function `isPropertyAnEntityAction` to identify
action properties in JavaScript entities.
- Enhanced the `loadAppEntities` method to improve JavaScript library
loading processes.
- Updated the evaluation context initialization process to utilize
`getDataTreeContext`.
- Expanded the `WIDGET_CONFIG_MAP` to include detailed configurations
for various widget types.

- **Bug Fixes**
- Enhanced error handling for unsafe function calls in evaluation logic.
- Improved error handling and logging for library installation and
uninstallation processes.

- **Tests**
- Expanded test coverage for action bindings and dependencies in the
`DataTreeEvaluator`.
- Updated tests to validate the new `actionNames` property and its
integration.
- Modified tests to ensure correct functionality of the `evaluateSync`
function.
- Added new test cases to assess the behavior of the evaluator with
widget updates.

- **Chores**
- Streamlined imports and initialization of worker instances across
various files.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-12-13 09:44:19 +05:30
..
actions chore: Debugger Quick wins (#37954) 2024-12-10 14:43:40 +00:00
api chore: Git mod - Connect/Import modal (#38098) 2024-12-12 19:04:21 +08:00
assets feat: update response tab UI (#37640) 2024-11-28 17:01:50 +05:30
ce chore: optimise first evaluation by adding worker scope cache (CE) (#38068) 2024-12-13 09:44:19 +05:30
components chore: Debugger Quick wins (#37954) 2024-12-10 14:43:40 +00:00
constants chore: Remove socket-io and websocket connections (#37784) 2024-11-28 10:58:56 +05:30
Datasource/components chore: reconnect ds detached from datasource editor part 1 (#35907) 2024-09-02 11:26:34 +05:30
ee feat: Schema tab UI update (#37420) 2024-11-26 09:42:33 +05:30
enterprise fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
entities chore: optimise first evaluation by adding worker scope cache (CE) (#38068) 2024-12-13 09:44:19 +05:30
git chore: git mod - adding init saga and connecting components to ctx (#38088) 2024-12-12 23:18:09 +08:00
globalStyles
icons chore:delete unused files (#36368) 2024-09-19 16:01:03 +03:00
IDE perf: entity group items filter utility refactor (#38108) 2024-12-12 10:06:32 +03:00
layoutSystems chore: add custom widget to anvil (#37878) 2024-12-06 16:03:40 +05:30
mockResponses
mocks chore: delete unused code (#36461) 2024-09-23 13:52:00 +03:00
modules/ui-builder/ui/wds chore: fix custom widget 's updateModel (#38129) 2024-12-12 14:39:53 +03:00
navigation fix: API Body format focus retention (#37150) 2024-11-01 11:24:49 +05:30
pages perf: entity group items filter utility refactor (#38108) 2024-12-12 10:06:32 +03:00
PluginActionEditor chore: Adding create module icon in the action context menu on EE (#38130) 2024-12-12 23:26:43 +05:30
plugins/Linting chore: add eslint package to handle linting (#37417) 2024-11-22 14:26:05 +05:30
polyfills chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
reducers chore: Debugger Quick wins (#37954) 2024-12-10 14:43:40 +00:00
reflow chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
sagas chore: optimise first evaluation by adding worker scope cache (CE) (#38068) 2024-12-13 09:44:19 +05:30
selectors chore: Updating generate page interaction to show it in a modal following the IDE 2.0 interaction pattern (#37414) 2024-11-19 12:05:10 +05:30
templates
theme
UITelemetry chore: Switch from OTLP HTTP/protobuf (New Relic) to HTTP/JSON (Grafana) (#37404) 2024-11-18 05:59:33 +00:00
usagePulse feat: Added analytics for pulse failure (#37781) 2024-11-28 12:20:14 +05:30
utils chore: optimise first evaluation by adding worker scope cache (CE) (#38068) 2024-12-13 09:44:19 +05:30
WidgetProvider chore: chore: add SVGR to appsmith-icon package, add processing for custom icons, update date-fns (#37115) 2024-10-28 14:55:42 +03:00
WidgetQueryGenerators chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
widgets feat: Implements HTML as a column type in table widget. (#37997) 2024-12-11 13:07:30 +05:30
workers chore: optimise first evaluation by adding worker scope cache (CE) (#38068) 2024-12-13 09:44:19 +05:30
App.css
AppErrorBoundry.tsx chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
config.d.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
Globals.d.ts
index.css chore: Remove google fonts imported from googleapis (#35392) 2024-08-07 08:49:04 +05:30
index.tsx chore: optimise first evaluation by adding worker scope cache (CE) (#38068) 2024-12-13 09:44:19 +05:30
LandingScreen.tsx chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
preload-route-chunks.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
react-app-env.d.ts
RouteChangeListener.tsx chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
serviceWorker.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
store.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
wdyr.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00