-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
remove ui settings client-side validation #100311
remove ui settings client-side validation #100311
Conversation
Pinging @elastic/kibana-core (Team:Core) |
}, | ||
schema: schema.string({ | ||
validate: (value) => { | ||
if (!/^\d+[mg][b]$/i.test(value)) { |
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.
Maybe we should test the value is a valid ByteSize ?
export class ByteSizeType extends Type<ByteSizeValue> { |
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.
Kibana app changes LGTM, validation for invalid JSON still works.
Can someone elaborate on why we are removing this from the client? It seems like useful UX because the user sees right away their input is invalid instead of trying to click an enabled save button which will cause an error.
The linked issue is pretty light on details.
I don't have a strong opinion on this - as you mentioned it's not used much anyway.
@flash1293 The client-side validation is not used for UI settings set via HTTP endpoints and |
…uisettings-client-validation
💚 Build SucceededMetrics [docs]Public APIs missing comments
Async chunks
Public APIs missing exports
Unknown metric groupsAPI count
References to deprecated APIs
History
To update your PR or re-run it, just comment with: |
* remove ui settings client-side validation * fix linter * fix tests * update generated doc
* remove ui settings client-side validation * fix linter * fix tests * update generated doc
Summary
Fix #83038
Remove the uiSettings legacy client-side validation
Checklist