Skip to content

User cannot generate a csv report while adding(& saving) or deleting (& saving) filters on an index pattern. #63366

@bhavyarm

Description

@bhavyarm

Kibana version: 7.7.0 BC5 (latest snapshot from apr 13th)

Elasticsearch version: 7.7.0 BC5 (latest snapshot from apr 13th)

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 adds a filter or deletes a filter - on an index pattern - even after saving - Kibana doesn't let her generate csv report in discover. Instead it keeps displaying the message - please save your work.

Please note - if you switch the index pattern and then open the saved search on the previous index pattern with/without filter on which you were trying to generate report - then Kibana lets you generate the CSV report without any issues.

Steps to reproduce:

  1. Add a filter on any of the sample data in Kibana in discover
  2. Save the state as saved search
  3. Go to share - click on CSV report - Kibana tells the user to save the work.
  4. Delete the filter and save it - click on share and csv report - Kibana tells the user to save the work
  5. Click on new - Kibana switches the index pattern to default
  6. Click open and open the saved search from step 2 or step 4 - you can successfully generate a CSV report.

Screenshots (if relevant):
Screen Shot 2020-04-13 at 11 44 34 AM

Errors in browser console (if relevant):
While saving the discover state with .keyword filter:

kbn-ui-shared-deps.js:334 TypeError: Cannot read property 'change' of undefined
    at 22.bundle.js:3
    at c.$digest (kbn-ui-shared-deps.js:334)
    at kbn-ui-shared-deps.js:334
    at Yr.completeTask (kbn-ui-shared-deps.js:334)
    at kbn-ui-shared-deps.js:334
(anonymous) @ kbn-ui-shared-deps.js:334
(anonymous) @ kbn-ui-shared-deps.js:334
$digest @ kbn-ui-shared-deps.js:334
(anonymous) @ kbn-ui-shared-deps.js:334
Yr.completeTask @ kbn-ui-shared-deps.js:334
(anonymous) @ kbn-ui-shared-deps.js:334
setTimeout (async)
o.defer @ kbn-ui-shared-deps.js:334
$evalAsync @ kbn-ui-shared-deps.js:334
_callee10$ @ 22.bundle.js:3
l @ kbn-ui-shared-deps.js:288
(anonymous) @ kbn-ui-shared-deps.js:288
forEach.e.<computed> @ kbn-ui-shared-deps.js:288
asyncGeneratorStep @ 22.bundle.js:3
_next @ 22.bundle.js:3
Promise.then (async)
asyncGeneratorStep @ 22.bundle.js:3
_next @ 22.bundle.js:3
Promise.then (async)
asyncGeneratorStep @ 22.bundle.js:3
_next @ 22.bundle.js:3
(anonymous) @ 22.bundle.js:3
(anonymous) @ 22.bundle.js:3
_saveDataSource @ 22.bundle.js:3
saveDataSource @ 22.bundle.js:3
onSave @ 22.bundle.js:3
_callee$ @ commons.bundle.js:3
l @ kbn-ui-shared-deps.js:288
(anonymous) @ kbn-ui-shared-deps.js:288
forEach.e.<computed> @ kbn-ui-shared-deps.js:288
asyncGeneratorStep @ commons.bundle.js:3
_next @ commons.bundle.js:3
(anonymous) @ commons.bundle.js:3
(anonymous) @ commons.bundle.js:3
onSaveConfirmed @ commons.bundle.js:3
_callee$ @ commons.bundle.js:3
l @ kbn-ui-shared-deps.js:288
(anonymous) @ kbn-ui-shared-deps.js:288
forEach.e.<computed> @ kbn-ui-shared-deps.js:288
asyncGeneratorStep @ commons.bundle.js:3
_next @ commons.bundle.js:3
(anonymous) @ commons.bundle.js:3
(anonymous) @ commons.bundle.js:3
(anonymous) @ commons.bundle.js:3
m @ kbn-ui-shared-deps.js:342
w @ kbn-ui-shared-deps.js:342
(anonymous) @ kbn-ui-shared-deps.js:342
x @ kbn-ui-shared-deps.js:342
L @ kbn-ui-shared-deps.js:342
T @ kbn-ui-shared-deps.js:342
O @ kbn-ui-shared-deps.js:342
Cn @ kbn-ui-shared-deps.js:342
ce @ kbn-ui-shared-deps.js:342
Ln @ kbn-ui-shared-deps.js:342
Dn @ kbn-ui-shared-deps.js:342
On @ kbn-ui-shared-deps.js:342
t.unstable_runWithPriority @ kbn-ui-shared-deps.js:350
Hi @ kbn-ui-shared-deps.js:342
se @ kbn-ui-shared-deps.js:342
Tn @ kbn-ui-shared-deps.js:342
Show 27 more frames

Metadata

Metadata

Assignees

Labels

Feature:DiscoverDiscover ApplicationFeature:FiltersTeam:VisualizationsTeam label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t//bugFixes for quality problems that affect the customer experienceregressionzDeprecated Feature:ReportingUse Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions