PromucFlow_constructor/app/client/cypress/e2e/Regression/ClientSide
Favour Ohanekwu e6f2dcacde
feat: Improve Linting performance (#23865)
## Description
This PR introduces a new architecture, making evaluation and linting
independent.

<img width="500" alt="Screenshot 2023-07-04 at 17 24 40"
src="https://github.com/appsmithorg/appsmith/assets/46670083/00b1eab9-cd79-4442-b51a-5345c2d6c4da">


In the previous architecture, one dependency graph was used to hold the
relationship between entities in the application and subsequently, the
"evaluation order" and "paths to lint" were generated.

Although similar, the dependency graph required for evaluation and
linting differ. For example, trigger fields should not depend on any
other entity/entity path in the eval's dependency graph since they are
not reactive. This is not the case for the linting dependency graph.

## Performance

- This PR introduces "lint only" actions. These actions trigger linting,
but not evaluation. For example, UPDATE_JS_ACTION_BODY_INIT (which is
fired immediately after a user edits the body of a JS Object). Since
linting fires without waiting for a successful update on the server,
**response time decreases by 40%** (from 2s to 1.2s).


- Reduction in time taken to generate paths requiring linting.

<img width="715" alt="Screenshot 2023-07-04 at 18 10 52"
src="https://github.com/appsmithorg/appsmith/assets/46670083/d73a4bfc-de73-4fa7-bdca-af1e5d8ce8a1">



#### PR fixes following issue(s)
Fixes #23447 
Fixes #23166
Fixes #24194 
Fixes #23720 
Fixes #23868 
Fixes #21895 

Latest DP: https://appsmith-r3f9e325p-get-appsmith.vercel.app/



#### Type of change

- Chore (housekeeping or task changes that don't impact user perception)

## Testing
>
#### How Has This Been Tested?
- [x] Manual
- [ ] Jest
- [ ] Cypress
>
>
#### Test Plan

https://github.com/appsmithorg/appsmith/pull/23865#issuecomment-1606738633
>
>
#### Issues raised during DP testing

https://github.com/appsmithorg/appsmith/pull/23865#issuecomment-1608779227
response:
https://github.com/appsmithorg/appsmith/pull/23865#issuecomment-1619677033
>
>
>
## 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:
- [ ] [Speedbreak
features](https://github.com/appsmithorg/TestSmith/wiki/Test-plan-implementation#speedbreaker-features-to-consider-for-every-change)
have been covered
- [ ] Test plan covers all impacted features and [areas of
interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans/_edit#areas-of-interest)
- [x] 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

---------

Co-authored-by: arunvjn <arun@appsmith.com>
Co-authored-by: Ivan Akulov <mail@iamakulov.com>
2023-07-05 14:34:03 +01:00
..
ActionExecution test: Cypress | Simplifying AddDsl method (#24991) 2023-07-04 22:03:31 +05:30
AdminSettings test: Cypress | Flaky fixes (#24925) 2023-07-01 00:16:57 +05:30
AppNavigation test: Cypress | Flaky fixes (#25083) 2023-07-05 00:59:22 +05:30
AuditLogs
Autocomplete test: Cypress | Simplifying AddDsl method (#24991) 2023-07-04 22:03:31 +05:30
Binding test: Cypress | Simplifying AddDsl method (#24991) 2023-07-04 22:03:31 +05:30
Branding test: Cypress version upgrade Cy 11.2 + Flaky fixes (#23667) 2023-05-24 18:00:39 +05:30
BugTests feat: Improve Linting performance (#23865) 2023-07-05 14:34:03 +01:00
CodeComment test: Cypress | Simplifying AddDsl method (#24991) 2023-07-04 22:03:31 +05:30
DynamicHeight test: Cypress | Simplifying AddDsl method (#24991) 2023-07-04 22:03:31 +05:30
Editor fix: excluding intercom test cases for airgap (#23974) 2023-06-02 12:10:49 +05:30
EmbedSettings test: Cypress | Flaky fixes (#24925) 2023-07-01 00:16:57 +05:30
ExplorerTests test: Cypress | Simplifying AddDsl method (#24991) 2023-07-04 22:03:31 +05:30
Fork test: Cypress | Simplifying AddDsl method (#24991) 2023-07-04 22:03:31 +05:30
FormLogin
FormNativeToRawTests test: Cypress | Cy 12 upgrade + Flaky fixes (#23852) 2023-06-15 18:51:11 +05:30
Git test: Cypress | Simplifying AddDsl method (#24991) 2023-07-04 22:03:31 +05:30
Github
Google
IDE test: Cypress | Simplifying AddDsl method (#24991) 2023-07-04 22:03:31 +05:30
JSLibrary test: Cypress | Cy 12 upgrade + Flaky fixes (#23852) 2023-06-15 18:51:11 +05:30
JSObject test: Cypress version upgrade Cy 11.2 + Flaky fixes (#23667) 2023-05-24 18:00:39 +05:30
Linting feat: Improve Linting performance (#23865) 2023-07-05 14:34:03 +01:00
MobileResponsiveTests test: Cypress | Simplifying AddDsl method (#24991) 2023-07-04 22:03:31 +05:30
Onboarding test: Cypress - Flaky Fix (#25070) 2023-07-04 22:40:06 +05:30
OneClickBinding test: Cypress | Flaky fixes (#24925) 2023-07-01 00:16:57 +05:30
OtherUIFeatures fix: removes error count form widget name component (#24653) 2023-07-05 11:34:09 +05:30
PeekOverlay fix: peeking on undefined properties (#23818) 2023-06-05 09:24:10 +05:30
Performance feat: Improve Linting performance (#23865) 2023-07-05 14:34:03 +01:00
ProductRamps feat: in-app ramps for private embed feature (#24507) 2023-06-21 13:39:14 +05:30
PropertyPane test: Cypress | Simplifying AddDsl method (#24991) 2023-07-04 22:03:31 +05:30
PublishedApps test: Cypress | Simplifying AddDsl method (#24991) 2023-07-04 22:03:31 +05:30
Refactoring test: Cypress | Simplifying AddDsl method (#24991) 2023-07-04 22:03:31 +05:30
SettingsPane fix: puts navbar functionality behind feature flag (#24561) 2023-06-22 10:30:24 +05:30
Templates fix: Reset templates filter for templates modal (#24192) 2023-06-29 11:52:05 +05:30
ThemingTests test: Cypress | ThemingTests fixes (#24577) 2023-06-17 20:16:39 +05:30
UserProfile test: Cypress version upgrade Cy 11.2 + Flaky fixes (#23667) 2023-05-24 18:00:39 +05:30
VisualTests test: Cypress | Cy 12 upgrade + Flaky fixes (#23852) 2023-06-15 18:51:11 +05:30
Widgets test: Fixing promotion failure (#25095) 2023-07-05 12:05:55 +05:30
Workspace test: Cypress | Simplifying AddDsl method (#24991) 2023-07-04 22:03:31 +05:30