-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Management] Highlight query in results for index pattern creation wi…
…zard (#16529) * Highlight matches in the table * Address issue with showing an error when the user types `.` which is invalid, but there shouldn't be an error * Use strong
- Loading branch information
1 parent
8664b55
commit 32f50b0
Showing
10 changed files
with
171 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...ons/indices/create_index_pattern_wizard/lib/__tests__/contains_invalid_characters.test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { containsInvalidCharacters } from '../contains_invalid_characters'; | ||
|
||
describe('containsInvalidCharacters', () => { | ||
it('should fail with illegal characters', () => { | ||
const valid = containsInvalidCharacters('abc', ['a']); | ||
expect(valid).toBeFalsy(); | ||
}); | ||
|
||
it('should pass with no illegal characters', () => { | ||
const valid = containsInvalidCharacters('abc', ['%']); | ||
expect(valid).toBeTruthy(); | ||
}); | ||
}); |
33 changes: 0 additions & 33 deletions
33
...ns/indices/create_index_pattern_wizard/lib/__tests__/is_index_pattern_query_valid.test.js
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...anagement/sections/indices/create_index_pattern_wizard/lib/contains_invalid_characters.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export function containsInvalidCharacters(pattern, illegalCharacters) { | ||
return !illegalCharacters.some(char => pattern.includes(char)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
...nagement/sections/indices/create_index_pattern_wizard/lib/is_index_pattern_query_valid.js
This file was deleted.
Oops, something went wrong.