Skip to content

[Discover] When switching from Fields API to _source, default column is confused in context view #91493

Closed

Description

Kibana version:
master

Describe the bug:
When in context view of Discover and we toggle the UI setting for readFromSource and navigate back to Discover, the "old" default column is still shown (eg. _source instead of Document)

Steps to reproduce:

  1. Go to Discover
  2. Select an index pattern that has documents
  3. Click "View surrounding documents"
  4. Wait for the context view to load; observe that the default column has loaded correctly (should be Document)
  5. Go to Advanced Settings > Discover
  6. Toggle readFieldsFromSource
  7. Go back to Discover, context view should be opened
  8. Observe the default column didn't change

Expected behavior:
Default column changes based on the UI setting

Screenshots (if relevant):

Errors in browser console (if relevant):

Provide logs and/or server output (if relevant):

Any additional context:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Feature:DiscoverDiscover ApplicationTeam:VisualizationsVisualization editors, elastic-charts and infrastructurebugFixes for quality problems that affect the customer experiencev7.12.0

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions