PromucFlow_constructor/app/client
Favour Ohanekwu b38f08de01
fix: Refactor dataTree diff translation (#20180)
## Description

### Cause of issue
During the translation of dataTree diff, a change from an `Array` to `undefined`, was interpreted as a **delete event**. This causes the path to be deleted from the dependencyMap, hence doesn't ever show up in the evaluation order.

### Solution
A change from an Array or Object to undefined is translated to 

1. Deletion of all Array accessor paths 
2. Edit of propertyPath


### Example

Multiselect1.selectedOptions changes from ["Red", "Green"] to **undefined**. This translates to

1. Delete event for Multiselect1.selectedOptions[0] &  Multiselect1.selectedOptions[1] 
2. Edit event for Multiselect1.selectedOptions



Fixes #20428 

## Type of change

- Bug fix (non-breaking change which fixes an issue)


## How Has This Been Tested?

- Manual
- Jest
- Cypress

### Test Plan
> Add Testsmith test cases links that relate to this PR

### 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
- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] PR is being merged under a feature flag


### QA activity:
- [ ] Test plan has been approved by relevant developers
- [ ] Test plan has been peer reviewed by QA
- [ ] Cypress test cases have been added and approved by either SDET or manual QA
- [ ] Organized project review call with relevant stakeholders after Round 1/2 of QA
- [ ] Added Test Plan Approved label after reveiwing all Cypress test

Co-authored-by: Aishwarya UR <aishwarya@appsmith.com>
2023-02-07 17:30:06 +05:30
..
cypress ci: run fat container docker inside perf tests and update setup-perf-test workflow to use localhost for accessing dev environment (#20280) 2023-02-07 15:56:41 +05:30
docker chore: Remove Maps API Key env variable for client (#19486) 2023-02-07 14:53:15 +05:30
generators feat: Auto height instant update (#19082) 2023-02-03 11:17:40 +05:30
patches
perf ci: run fat container docker inside perf tests and update setup-perf-test workflow to use localhost for accessing dev environment (#20280) 2023-02-07 15:56:41 +05:30
public chore: Remove Maps API Key env variable for client (#19486) 2023-02-07 14:53:15 +05:30
src fix: Refactor dataTree diff translation (#20180) 2023-02-07 17:30:06 +05:30
test refactor: Widget Selection (#19643) 2023-01-28 07:47:06 +05:30
typings chore: update dependencies in the client package (#18254) 2022-11-28 16:22:30 +00:00
.babelrc
.dockerignore
.editorconfig
.eslintrc.json
.flowconfig
.gitignore
.huskyrc
.lintstagedrc
.nvmrc
.prettierignore
.prettierrc
.sentryclirc
build.sh ci: Ship source maps + fix perf test failures on EE (#18700) 2022-12-09 18:40:59 +05:30
craco.build.config.js feat: Automatic height updates for widgets based on contents (Auto Height) (#18341) 2022-11-23 15:18:23 +05:30
craco.common.config.js
craco.dev.config.js chore: updated dependencies removed unused dependencies. (#19441) 2023-01-06 19:12:03 +05:30
cypress_ci.json test: Cypress Flaky fixes + Mock api update + PgAdminspec fix (#20032) 2023-02-02 13:29:24 +05:30
cypress.env.json feat: [Context Switching] Complex widgets and other Phase 2 items (#17046) 2022-12-08 12:51:58 +05:30
cypress.json test: Cypress Flaky fixes + Mock api update + PgAdminspec fix (#20032) 2023-02-02 13:29:24 +05:30
Dockerfile
index.tsx
jest.config.js chore: Remove Maps API Key env variable for client (#19486) 2023-02-07 14:53:15 +05:30
package.json feat: Renamed design system package (#19854) 2023-01-23 09:20:47 +05:30
postcss.config.js
README.md
README.old.md
start-https.sh chore: Remove Maps API Key env variable for client (#19486) 2023-02-07 14:53:15 +05:30
stats.json
tailwind.config.js
tsconfig.json feat: Import javascript libraries (#17895) 2022-12-21 22:44:47 +05:30
tsconfig.path.json
vercel.json
yarn.lock chore: bump jszip from 3.7.1 to 3.10.1 in /app/client (#20324) 2023-02-06 16:31:03 +05:30

Appsmith Client

This project was bootstrapped with Create React App.

For details on setting up your development machine, please refer to the Setup Guide