Open shwetha-ramesh opened 2 years ago
@shwetha-ramesh Does this happen for every widget, API, query? Or is this only for the table widget?
@shwetha-ramesh Does this happen for every widget, API, query? Or is this only for the table widget?
I have observed only in table widget.
WRT 1, Numbers are not valid identifiers in javascript. The issue exists on other widgets as well. Widget won't break but we cannot use the widget properties in js expressions. we should restrict users from renaming in this case. somewhat similar to #8881
@sbalaji1192 is right, We should not allow numbers as widget name, I believe that is a platform level change.
cc @riodeuno
Probably should be a high priority issue and not critical. @ajinkyakulkarni ill leave the call to you
@somangshu @sbalaji1192 Yes, numbers should not be the first character in identifiers. It is illegal in JS. Resolution approach:
Using the above two features, we should disallow naming entities using numbers as the first character.
I did some analysis on this issue and found that its happening only if the name starts with a digit and to resove this
Please let me know wheather appsmith is accepting PRs related to widgets before I proceed with the changes.
Is there an existing issue for this?
Current Behavior
2 issues are observed when renaming the table.
https://loom.com/share/9930dff46f2141f7bf1167256a8e2566
Steps To Reproduce
Expected behavior: Table must not break when renamed to just number or must show an error message that it is not allowed.
Environment
Production
Version
Cloud