appsmith icon indicating copy to clipboard operation
appsmith copied to clipboard

Store return type to enable js actions in best match

Open hetunandu opened this issue 3 years ago • 3 comments

hetunandu avatar Dec 01 '21 06:12 hetunandu

@hetunandu can you add more details to this issue?

Nikhil-Nandagopal avatar Apr 11 '22 11:04 Nikhil-Nandagopal

If we can determine the return value of a JS function, we can use our best match to suggest JS functions on widget properties. For example if we know a JS function returns an array of objects, we can show it in the best match of table data

hetunandu avatar Apr 11 '22 12:04 hetunandu

If we can determine the return value of a JS function, we can use our best match to suggest JS functions on widget properties. For example if we know a JS function returns an array of objects, we can show it in the best match of table data

There could be a possibility of a function returning different type of data according to condition?
Just to clarify do we want to show autocomplete best match suggestion according to the last ran data type of JS Function? @hetunandu

rishabhrathod01 avatar Aug 05 '22 19:08 rishabhrathod01

@Rishabh-Rathod, while this is possible, it is a rare case. Mostly the data type would be the same in most cases and that is all we need to predict the best match.

hetunandu avatar Aug 16 '22 05:08 hetunandu

closing this in favour of #17684

bharath31 avatar Apr 12 '23 14:04 bharath31