Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: In DS Query- Linting shows an error when the widget is added after the query is created #23868

Closed
1 task done
btsgh opened this issue May 30, 2023 · 1 comment · Fixed by #23865
Closed
1 task done
Assignees
Labels
Bug Something isn't working Javascript Product Issues related to users writing javascript in appsmith JS Linting & Errors Issues related to JS Linting and errors Medium Issues that frustrate users due to poor UX Production Query & JS Pod Issues related to the query & JS Pod Regressed Scenarios that were working before but have now regressed

Comments

@btsgh
Copy link
Collaborator

btsgh commented May 30, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Description

When I create a query referencing a widget, add add this widget later onto the canvas, the binding still shows up with the red tag underneath the widget name pointing out that widget does not exist, though the values/data of the widget can be seen on hover.``

Steps To Reproduce

  1. Create an S3 ds and create a new query [Create a new file query maybe]
  2. Fill in the required fields
  3. In content, enter {{FilePicker1.files[0]}}
  4. Now go to canvas and add the file picker widget which is named FilePicker1
  5. Go back to the query screen and note that the binding still shows up as an error and does not pick the FilePicker, though its data is evaluated properly on hover.
Screenshot 2023-05-30 at 5 13 14 PM Screenshot 2023-05-30 at 5 08 26 PM

Public Sample App

No response

Environment

Production

Issue video log

No response

Version

Cloud

@btsgh btsgh added Bug Something isn't working Production Needs Triaging Needs attention from maintainers to triage JS Linting & Errors Issues related to JS Linting and errors Medium Issues that frustrate users due to poor UX labels May 30, 2023
@github-actions github-actions bot added the Javascript Product Issues related to users writing javascript in appsmith label May 30, 2023
@bharath31 bharath31 removed the Needs Triaging Needs attention from maintainers to triage label Jun 15, 2023
@bharath31 bharath31 assigned ohansFavour and unassigned bharath31 and satbir121 Jun 15, 2023
@ohansFavour
Copy link
Contributor

ohansFavour commented Jun 15, 2023

This is related to #24194, and will be fixed here

@ramsaptami ramsaptami added the Regressed Scenarios that were working before but have now regressed label Jun 27, 2023
ohansFavour added a commit that referenced this issue Jul 5, 2023
## 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

#23865 (comment)
>
>
#### Issues raised during DP testing

#23865 (comment)
response:
#23865 (comment)
>
>
>
## 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 <[email protected]>
Co-authored-by: Ivan Akulov <[email protected]>
@Nikhil-Nandagopal Nikhil-Nandagopal added the Query & JS Pod Issues related to the query & JS Pod label Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Javascript Product Issues related to users writing javascript in appsmith JS Linting & Errors Issues related to JS Linting and errors Medium Issues that frustrate users due to poor UX Production Query & JS Pod Issues related to the query & JS Pod Regressed Scenarios that were working before but have now regressed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants