-
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
Extract index pattern validation rules into ui/public #22606
Extract index pattern validation rules into ui/public #22606
Conversation
…urn a value which accurately reflects the name.
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.
Small nitpick, otherwise code LGTM!
@@ -17,6 +17,8 @@ | |||
* under the License. | |||
*/ | |||
|
|||
export { INDEX_PATTERN_ILLEGAL_CHARACTERS } from 'ui/index_patterns'; |
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.
it's nice to import everything the wizard needs from its own constants file, but I don't love having the same object exported from 2 different places. using
import { INDEX_PATTERN_ILLEGAL_CHARACTERS as ILLEGAL_CHARACTERS } from 'ui/index_patterns';
in step_index_pattern.js
instead is not much additional overhead imo
💔 Build Failed |
💔 Build Failed |
These tests have failed on Jenkins but I can only get a couple of them to fail locally:
|
💚 Build Succeeded |
💚 Build Succeeded |
This will allow us to more easily re-use these rules in rollups.