mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[Discover][DataViews] Fix "View conflicts" button when data view id has special characters (#192374)
- Closes https://github.com/elastic/kibana/issues/192148 ## Summary This bug appears when a custom data view ID (like `logging-*:logs-*`) is used. The PR adds decoding for the `id` param for Data view edit page. ### For testing Create indices with different field types but with the same field names. ``` PUT my-index-1 { "mappings": { "dynamic": false, "properties": { "a": { "type": "float" } } } } PUT my-index-2 { "mappings": { "dynamic": false, "properties": { "a": { "type": "keyword" } } } } PUT my-index-1/_doc { "a": 500.4 } PUT my-index-2/_doc { "a": "hi there" } ``` Then create a data view with `my-index-*` as index pattern and a custom id `logging-*:logs-*`. Navigate to Data Views Management page and check the button.
This commit is contained in:
parent
4e8b050dab
commit
8da3f761f5
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ const EditIndexPatternCont: React.FC<RouteComponentProps<{ id: string }>> = ({ .
|
|||
|
||||
useEffect(() => {
|
||||
dataViews
|
||||
.get(props.match.params.id)
|
||||
.get(decodeURIComponent(props.match.params.id))
|
||||
.then((ip: DataView) => {
|
||||
setIndexPattern(ip);
|
||||
setBreadcrumbs(getEditBreadcrumbs(ip));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue