-
Notifications
You must be signed in to change notification settings - Fork 57
Updating file name input validation rule to give warning for dollar characters #509
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
base: main
Are you sure you want to change the base?
Conversation
patches/7893-draft.diff
Outdated
| + client.showMessage(new MessageParams(MessageType.Error,Bundle.ERR_InvalidObjectName(name))); | ||
| + return client.showInputBox(new ShowInputBoxParams(Bundle.CTL_TemplateUI_SelectName(), desc.getProposedName())).thenCompose(this); | ||
| + } else if (name.contains("$")) { | ||
| + final MessageActionItem continue_action = new MessageActionItem("Continue"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add it in the bundle so that it can be localized.
patches/7893-draft.diff
Outdated
| + return client.showInputBox(new ShowInputBoxParams(Bundle.CTL_TemplateUI_SelectName(), desc.getProposedName())).thenCompose(this); | ||
| + } else if (name.contains("$")) { | ||
| + final MessageActionItem continue_action = new MessageActionItem("Continue"); | ||
| + final MessageActionItem try_again = new MessageActionItem("Try Again"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add it in the bundle so that it can be localized.
patches/7893-draft.diff
Outdated
| + final MessageActionItem continue_action = new MessageActionItem("Continue"); | ||
| + final MessageActionItem try_again = new MessageActionItem("Try Again"); | ||
| + ShowMessageRequestParams smrp = new ShowMessageRequestParams(Arrays.asList(continue_action, try_again)); | ||
| + smrp.setMessage("Object name contains $, not recommended for user defined objects , Do you want to continue with the current name or try again ?"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add it in the bundle so that it can be localized.
patches/7893-draft.diff
Outdated
| + final MessageActionItem continue_action = new MessageActionItem("Continue"); | ||
| + final MessageActionItem try_again = new MessageActionItem("Try Again"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Try to use the camel-case codestyle for naming variables etc.
f162935 to
ca1042e
Compare
ca1042e to
80ed7e2
Compare
Dollar characters are allowed for java objects but are not recommended for user defined objects this adds a check for the same .