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

Allow a maximum of 500 characters in a service dialog text box #4869

Closed
wants to merge 2 commits into from
Closed

Allow a maximum of 500 characters in a service dialog text box #4869

wants to merge 2 commits into from

Conversation

kruge002
Copy link
Contributor

@kruge002 kruge002 commented Nov 5, 2018

The service dialog text box has a maxlength of 50. This is too short. This is bothering people for years now: ManageIQ/manageiq#1226.
The best solution would be to add a 'maxlength' option to the dialog editor but the hereby proposed solution would make it workeable and would prevent people using a Text Area where they would prefer a text Box just because of the enforced maxlength of 50 characters for the text Box.

…ad of 50

The service dialog text box is too short. This is bothering people for years now: ManageIQ/manageiq#1226.
The best solution would be to add a 'maxlength' option to the dialog editor but the hereby proposed solution would make it workeable and would prevent people using a Text Area where they would prefer a text Box just because of the enforced maxlength of 50 characters for the text Box.
@miq-bot
Copy link
Member

miq-bot commented Nov 5, 2018

Checked commits https://github.com/kruge002/manageiq-ui-classic/compare/f7ebc89851470d7c9ea14c43cc05e541c185dd8b~...c898bd9ad9da89038abaefe0490c170cd0f67ceb with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
2 files checked, 0 offenses detected
Everything looks fine. ⭐

@romanblanco
Copy link
Member

romanblanco commented Nov 7, 2018

@kruge002 Could you send steps (or even screenshots) to reproduce the issue you're trying to fix?

The issue ManageIQ/manageiq#1226 seems to describe the old version of Dialog Editor, where the limit was probably applied.

Code for the new Dialog Editor lives in ui-components repository:
https://github.com/ManageIQ/ui-components/blob/master/src/dialog-editor/components/field/field.html#L13-L18

as well as the Dialog User - component, that renders the dialogs:
https://github.com/ManageIQ/ui-components/blob/master/src/dialog-user/components/dialog-user/dialogField.html#L29-L38

where no such limit seems to be applied.

EDIT: The code seems to be used for provisioning, and not editing the service dialog. Looks like we still use the old templates together with the new Dialog User. Still, steps to reproduce would help

@Fryguy
Copy link
Member

Fryguy commented Dec 18, 2018

cc @gmcculloug as you pinned the original issue.

@martinpovolny
Copy link
Member

@gmcculloug , @romanblanco : what's the status of this PR?

@romanblanco
Copy link
Member

@kruge002, any update?

@kruge002
Copy link
Contributor Author

I have created a service dialog in the Hammer release and currently there is no maximum length issue for a text field. So this PR can be closed. This PR was meant for the Fine release.

@kruge002 kruge002 closed this May 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants