PromucFlow_constructor/app/client/src
arunvjn c8d661ab02
chore: prevent mutation during evaluation and execution (#27722)
## Description
Fixes the data mutation bug introduced back in
[#11001](https://github.com/appsmithorg/appsmith/pull/11001).
We now create 2 data tree in evaluation flow, one that is set against
the execution context (prone to mutation) and another one which only
gets the values of the path that is being evaluated.

Accidental mutation often crashes the app. To replicate  the issue
1. D&D a text widget and an Input widget
2. In the input widget default text field, write `{{ Text1.text = 123
}}`

Context -
https://theappsmith.slack.com/archives/C02K0SZQ7V3/p1695975703880489

#### PR fixes following issue(s)
Fixes #19221
>
>
#### Type of change
- Bug fix (non-breaking change which fixes an issue)
>
>
## Testing
>
#### How Has This Been Tested?
- [x] Manual
- [x] Jest
>
>
#### Test Plan
- [x] Test evaluations across widgets, framework functions, setter
methods
- [x] Existing application sanity check
- [x] Template apps and CRUD
>
>
#### Issues raised during DP testing
none
>
>
>
## Checklist:
#### Dev activity
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [ ] PR is being merged under a feature flag


#### QA activity:
- [x] [Speedbreak
features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-)
have been covered
- [x] Test plan covers all impacted features and [areas of
interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#areas-of-interest-)
- [ ] Test plan has been peer reviewed by project stakeholders and other
QA members
- [x] Manually tested functionality on DP
- [ ] We had an implementation alignment call with stakeholders post QA
Round 2
- [ ] Cypress test cases have been added and approved by SDET/manual QA
- [ ] Added `Test Plan Approved` label after Cypress tests were reviewed
- [ ] Added `Test Plan Approved` label after JUnit tests were reviewed
2023-10-10 12:38:45 +05:30
..
actions chore: Layout system wise restructuring of Canvas Widget (#27496) 2023-10-04 17:23:29 +05:30
api chore:add eslint rules (#27878) 2023-10-09 16:54:06 +03:00
assets chore: add color validation + native color picker (#25355) 2023-08-07 11:55:10 +03:00
ce chore: prevent mutation during evaluation and execution (#27722) 2023-10-10 12:38:45 +05:30
components fix: [one-click-binding] gsheets connection mode issue (#27613) 2023-10-09 21:25:50 +05:30
constants fix: table selection in schema preview data broken (#27823) 2023-10-06 17:35:19 +05:30
ee chore: Split share modal component into smaller components (#27681) 2023-10-09 00:18:46 +05:30
enterprise
entities fix: [one-click-binding] gsheets connection mode issue (#27613) 2023-10-09 21:25:50 +05:30
globalStyles feat: assistive binding (#27070) 2023-09-15 21:23:51 +05:30
icons chore:add eslint rules (#27878) 2023-10-09 16:54:06 +03:00
layoutSystems chore:add eslint rules (#27878) 2023-10-09 16:54:06 +03:00
mockComponentProps
mockResponses
mocks chore: Create layout system structure for Anvil and AnvilFlexComponent. (#27178) 2023-10-02 15:41:05 -04:00
navigation
pages chore:add eslint rules (#27878) 2023-10-09 16:54:06 +03:00
plugins/Linting feat: show lint error for imperative store update (#27708) 2023-09-29 18:00:23 +05:30
polyfills
reducers chore: code changes for widget position observer and widget name on canvas (#27367) 2023-10-06 15:37:43 +05:30
reflow
sagas chore:add eslint rules (#27878) 2023-10-09 16:54:06 +03:00
selectors chore: code changes for widget position observer and widget name on canvas (#27367) 2023-10-06 15:37:43 +05:30
templates
theme
transformers chore: code split for EE PR 2169 (#26669) 2023-09-11 14:09:41 +07:00
usagePulse changes in evaluation for EE - split (#27144) 2023-09-12 17:21:39 +05:30
utils chore:add eslint rules (#27878) 2023-10-09 16:54:06 +03:00
WidgetProvider feat: JSON form widget one click binding integration (#25873) 2023-10-03 13:40:51 +05:30
WidgetQueryGenerators fix: [one-click-binding] gsheets connection mode issue (#27613) 2023-10-09 21:25:50 +05:30
widgets chore:add eslint rules (#27878) 2023-10-09 16:54:06 +03:00
workers chore: prevent mutation during evaluation and execution (#27722) 2023-10-10 12:38:45 +05:30
App.css
AppErrorBoundry.tsx
config.d.ts
Globals.d.ts chore: Add support for 3D Custom ECharts (#26657) 2023-09-27 16:54:27 +05:30
index.css
index.tsx
LandingScreen.tsx
preload-route-chunks.ts fix: bump storybook version and move stories to storybook package (#25821) 2023-07-31 19:15:50 +03:00
react-app-env.d.ts
RouteBuilder.test.ts
RouteBuilder.ts
RouteChangeListener.tsx chore: added route listener on non-trackable URLs (#25671) 2023-08-11 17:04:42 +05:30
RouteParamsMiddleware.ts
serviceWorker.js
store.ts
wdyr.ts chore: improve eslint rules (#26056) 2023-08-07 15:38:48 +03:00