appsmith icon indicating copy to clipboard operation
appsmith copied to clipboard

[Bug]-[Infinity]:Smart Substitution parses formatted string texts incorrectly.

Open sondermanish opened this issue 2 years ago • 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Description

When a query with smart substitution turned on is sent for execution with a binding of nature "sometext{{bindedVariable}}", it evaluates to "sometext""" and hence throws error.
I.e: var a = "world" and the query looks like "Hello {{a}}" it evaluates to "Hello "World"" and the query fails to execute.

Steps To Reproduce

  • Create a datasource
  • Create an API/query for the above
  • Turn the Smart Substitution on from settings page of the query
  • Add a binding of the pattern: "sometext{{bindedVariable}}"
  • Run the query

Public Sample App

No response

Version

1.8.3

sondermanish avatar Sep 23 '22 12:09 sondermanish

Affects REST API users, 6m REST API usage : 5000

Stats

Stat Values
Reach 5000
Effort (months) <>

sribalajig avatar Sep 28 '22 07:09 sribalajig

@sondermanish can you please figure out what the estimate for this is.

sribalajig avatar Nov 17 '22 10:11 sribalajig