PromucFlow_constructor/app/client/src/ce/sagas
arunvjn 6c81f07e79
fix: deleted JSObject names are not released for later use (#29148)
## Description
> Repeated refactor operations seems to leave stale JS Objects in the
dataTree causing the dataTree to occupy namespace that no longer exists.
This seems to have stemmed from the
`updateEvalTreeWithJSCollectionState` method in
app/client/src/workers/common/DataTreeEvaluator/index.ts, where we
update the existing evalTree with JSObjects and their variables from the
previous unEvalTree.
> This PR modifies `updateEvalTreeWithJSCollectionState` to not apply
variable state to evalTree if the entity is not present.

#### PR fixes following issue(s)
Fixes #29162
> if no issue exists, please create an issue and ask the maintainers
about this first
>
>
#### Media
> A video or a GIF is preferred. when using Loom, don’t embed because it
looks like it’s a GIF. instead, just link to the video
>
>
#### Type of change
- Bug fix (non-breaking change which fixes an issue)
>
>
## Testing
>
#### How Has This Been Tested?
- [x] Manual
- [x] Cypress
>
>
#### Test Plan
- [x] Repeated renaming operations should work.
- [x] Deleting a JS Object should make the name available for use.
- [x] Execution data should be preserved on rename operations
>
>
#### Issues raised during DP testing
> Link issues raised during DP testing for better visiblity and tracking
(copy link from comments dropped on this PR)
>
>
>
## 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:
- [ ] [Speedbreak
features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-)
have been covered
- [ ] 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
- [ ] 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-11-28 14:40:02 +05:30
..
ActionExecution fix: Preserve query execution data on name refactor (#28973) 2023-11-22 14:04:48 +05:30
analyticsSaga.ts chore: update eslint and dependencies then fix revealed errors (#27908) 2023-10-11 10:14:38 +03:00
ApiCallerSagas.ts chore: module editor api refactor (#28261) 2023-10-20 17:06:39 +05:30
ApplicationSagas.tsx chore: start with data store workspace id and fetch plugins info (#28763) 2023-11-13 09:43:17 +05:30
EnvironmentSagas.ts chore: code split for EE PR 2169 (#26669) 2023-09-11 14:09:41 +07:00
GitExtendedSagas.ts feat: branch protection (#28526) 2023-11-03 22:43:36 +05:30
index.tsx chore: Refactor entity explorer to support displaying module instances in the list (#28855) 2023-11-16 17:03:59 +05:30
JSActionSagas.ts fix: deleted JSObject names are not released for later use (#29148) 2023-11-28 14:40:02 +05:30
JSFunctionExecutionSaga.ts chore: Updating instance admin emails input field to tag input field for better UX (#27410) 2023-09-19 11:54:43 +05:30
NavigationSagas.ts chore: added route listener on non-trackable URLs (#25671) 2023-08-11 17:04:42 +05:30
PageSagas.tsx chore: Refactor entity explorer to support displaying module instances in the list (#28855) 2023-11-16 17:03:59 +05:30
SuperUserSagas.tsx feat: remove cloudHosting conditional check, change version name (#28086) 2023-10-15 02:11:29 +05:30
tenantSagas.tsx chore: Updating strings to sentence case and moving brand colors logic update to tenant reducer (#28219) 2023-10-19 23:42:01 +05:30
userSagas.tsx chore: invite unique emails to workspace (#28151) 2023-10-18 14:02:09 +05:30
WorkspaceSagas.ts chore: update eslint and dependencies then fix revealed errors (#27908) 2023-10-11 10:14:38 +03:00