Skip to content

Import of vega viz saved object with filter displays error on filter after importing from 6.8.13 #83056

@bhavyarm

Description

@bhavyarm

Kibana version: 6.8.13->7.10.0/7.93

Elasticsearch version: 6.8.13->7.10.0/7.93

Server OS version: darwin_x86_64

Browser version: chrome latest

Browser OS version: OS X

Original install method (e.g. download page, yum, from source, etc.): from staging

Describe the bug: If user exports vega viz saved object from 6.8.13 - and imports to 7.10.0(same bug in 7.9.3) - Kibana displays error on the filter.

Steps to reproduce:

  1. Create a vega viz with filter in 6.8.13 ( I used logstash data from load sample data tutorial- https://www.elastic.co/guide/en/kibana/6.8/tutorial-load-dataset.html)
  2. Export the json containing it
  3. Load logstash data in 7.10.0(https://www.elastic.co/guide/en/kibana/current/tutorial-build-dashboard.html#tutorial-load-dataset) Import the json in 7.10.0 - associate the saved objects with the correct index patterns
  4. Open the logstash dashboard or vega viz in visualize - kibana displays error on filter
  5. Click on relationship on vega viz in saved objects table - Kibana displays "error undefined response)

Screenshots (if relevant):
Screen Shot 2020-11-10 at 9 17 19 AM

Screen Shot 2020-11-10 at 9 19 35 AM

Screen Shot 2020-11-10 at 9 20 17 AM

Errors in browser console (if relevant):

Uncaught Error: Could not locate that index-pattern (id: 63b00720-1dec-11eb-bd9c-25dc87804ac7), [click here to re-create it](management/kibana/indexPatterns)
    at IndexPattern._callee2$ (:5601/34038/bundles/plugin/data/data.plugin.js:14)
    at l (:5601/34038/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368)
    at Generator._invoke (:5601/34038/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368)
    at Generator.forEach.e.<computed> [as next] (:5601/34038/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368)
    at asyncGeneratorStep (:5601/34038/bundles/plugin/data/data.plugin.js:14)
    at _next (:5601/34038/bundles/plugin/data/data.plugin.js:14)
    at :5601/34038/bundles/plugin/data/data.plugin.js:14
    at new Promise (<anonymous>)
    at IndexPattern.<anonymous> (:5601/34038/bundles/plugin/data/data.plugin.js:14)
    at IndexPattern.updateFromElasticSearch (:5601/34038/bundles/plugin/data/data.plugin.js:14)

On saved objects table:

core.entry.js:34 GET http://localhost:5601/s/space_a/api/kibana/management/saved_objects/relationships/visualization/9d193fc0-1e1b-11eb-bd9c-25dc87804ac7?savedObjectTypes=config&savedObjectTypes=url&savedObjectTypes=index-pattern&savedObjectTypes=query&savedObjectTypes=visualization&savedObjectTypes=map&savedObjectTypes=canvas-element&savedObjectTypes=canvas-workpad&savedObjectTypes=canvas-workpad-template&savedObjectTypes=dashboard&savedObjectTypes=lens&savedObjectTypes=search&savedObjectTypes=infrastructure-ui-source&savedObjectTypes=metrics-explorer-view&savedObjectTypes=inventory-view 500 (Internal Server Error)
_callee3$ @ core.entry.js:34
l @ kbn-ui-shared-deps.js:368
(anonymous) @ kbn-ui-shared-deps.js:368
forEach.e.<computed> @ kbn-ui-shared-deps.js:368
fetch_asyncGeneratorStep @ core.entry.js:34
_next @ core.entry.js:34
(anonymous) @ core.entry.js:34
(anonymous) @ core.entry.js:34
fetchResponse @ core.entry.js:34
_callee$ @ core.entry.js:34
l @ kbn-ui-shared-deps.js:368
(anonymous) @ kbn-ui-shared-deps.js:368
forEach.e.<computed> @ kbn-ui-shared-deps.js:368
fetch_asyncGeneratorStep @ core.entry.js:34
_next @ core.entry.js:34
Promise.then (async)
fetch_asyncGeneratorStep @ core.entry.js:34
_next @ core.entry.js:34
(anonymous) @ core.entry.js:34
(anonymous) @ core.entry.js:34
(anonymous) @ core.entry.js:34
_callee2$ @ core.entry.js:34
l @ kbn-ui-shared-deps.js:368
(anonymous) @ kbn-ui-shared-deps.js:368
forEach.e.<computed> @ kbn-ui-shared-deps.js:368
fetch_asyncGeneratorStep @ core.entry.js:34
_next @ core.entry.js:34
(anonymous) @ core.entry.js:34
(anonymous) @ core.entry.js:34
(anonymous) @ core.entry.js:34
(anonymous) @ core.entry.js:34
_callee$ @ savedObjectsManagement.plugin.js:9
l @ kbn-ui-shared-deps.js:368
(anonymous) @ kbn-ui-shared-deps.js:368
forEach.e.<computed> @ kbn-ui-shared-deps.js:368
get_relationships_asyncGeneratorStep @ savedObjectsManagement.plugin.js:9
_next @ savedObjectsManagement.plugin.js:9
(anonymous) @ savedObjectsManagement.plugin.js:9
(anonymous) @ savedObjectsManagement.plugin.js:9
_getRelationships @ savedObjectsManagement.plugin.js:9
getRelationships @ savedObjectsManagement.plugin.js:9
_callee8$ @ 2.plugin.js:2
l @ kbn-ui-shared-deps.js:368
(anonymous) @ kbn-ui-shared-deps.js:368
forEach.e.<computed> @ kbn-ui-shared-deps.js:368
saved_objects_table_asyncGeneratorStep @ 2.plugin.js:2
_next @ 2.plugin.js:2
(anonymous) @ 2.plugin.js:2
(anonymous) @ 2.plugin.js:2
(anonymous) @ 2.plugin.js:2
_callee$ @ 2.plugin.js:2
l @ kbn-ui-shared-deps.js:368
(anonymous) @ kbn-ui-shared-deps.js:368
forEach.e.<computed> @ kbn-ui-shared-deps.js:368
relationships_asyncGeneratorStep @ 2.plugin.js:2
_next @ 2.plugin.js:2
(anonymous) @ 2.plugin.js:2
(anonymous) @ 2.plugin.js:2
getRelationshipData @ 2.plugin.js:2
UNSAFE_componentWillMount @ 2.plugin.js:2
Lo @ kbn-ui-shared-deps.js:422
Ga @ kbn-ui-shared-deps.js:422
xs @ kbn-ui-shared-deps.js:422
ml @ kbn-ui-shared-deps.js:422
hl @ kbn-ui-shared-deps.js:422
ol @ kbn-ui-shared-deps.js:422
(anonymous) @ kbn-ui-shared-deps.js:422
t.unstable_runWithPriority @ kbn-ui-shared-deps.js:430
Hi @ kbn-ui-shared-deps.js:422
Gi @ kbn-ui-shared-deps.js:422
Yi @ kbn-ui-shared-deps.js:422
se @ kbn-ui-shared-deps.js:422
An @ kbn-ui-shared-deps.js:422
Show 42 more frames

export_error_file.json.txt

Metadata

Metadata

Assignees

Labels

Feature:VegaVega visualizationsTeam:VisualizationsTeam label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t//bugFixes for quality problems that affect the customer experience

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions