Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Discover] Adapt default column behavior #89826

Conversation

kertal
Copy link
Member

@kertal kertal commented Feb 1, 2021

Summary

This PR fixes the handling of defaultColumns (configureable in Advanced settings) allowing the user to pre configure the initial columns in Discover. With the usage of search fields this was broken (#83891), now it works again, with the exception that if _source is configured, and discover:searchFieldsFromSource is set to false, _source is filtered out.

Checklist

@kertal kertal requested a review from a team February 1, 2021 05:39
@kertal kertal marked this pull request as draft February 1, 2021 05:39
@kertal
Copy link
Member Author

kertal commented Feb 1, 2021

@elasticmachine merge upstream

…or' of github.com:kertal/kibana into kertal-pr-2021-01-29-discover-fix-default-column-behavior
@majagrubic
Copy link
Contributor

Looks good, but for some reason, when I pull this branch readFromSource is enabled by default. Was this created from master? Fields API should be on by default in master

@kertal
Copy link
Member Author

kertal commented Feb 1, 2021

Looks good, but for some reason, when I pull this branch readFromSource is enabled by default. Was this created from master? Fields API should be on by default in master

yes, from master, since no readFromSourcewere committed, I'd assume, Elasticsearch knows what you did last ... Friday?

@majagrubic
Copy link
Contributor

ah, nvm me. thought I had restarted it from the snapshot, but looks like I didn't :D

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
discover 413.0KB 413.0KB +18.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@kertal kertal added Team:Visualizations Visualization editors, elastic-charts and infrastructure release_note:skip Skip the PR/issue when compiling release notes labels Feb 1, 2021
@kertal kertal self-assigned this Feb 1, 2021
@kertal kertal marked this pull request as ready for review February 1, 2021 11:18
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@kertal
Copy link
Member Author

kertal commented Feb 1, 2021

just a note: this would make sense to add the index pattern, a default selection of columns

Copy link
Contributor

@majagrubic majagrubic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested this in Chrome on Mac OSX and works as expected

@kertal kertal merged commit 047dd29 into elastic:master Feb 2, 2021
@kertal kertal deleted the kertal-pr-2021-01-29-discover-fix-default-column-behavior branch February 2, 2021 16:32
kertal added a commit to kertal/kibana that referenced this pull request Feb 2, 2021
phillipb added a commit to phillipb/kibana that referenced this pull request Feb 2, 2021
…-ml-jobs

* 'master' of github.com:elastic/kibana: (254 commits)
  [Security Solution] [Detections] Remove allow_no_indices to prevent error being thrown in response of field capabilities (elastic#89927)
  Skip test for cloud (elastic#89450)
  [Fleet] Fix duplicate data streams being shown in UI (elastic#89812)
  Bump package dependencies (elastic#90034)
  [App Search] DRY helper for encoding/decoding routes that can have special characters in params (elastic#89811)
  TypeScript project references for Observability plugin (elastic#89320)
  [SearchSource] Combine sort and parent fields when serializing (elastic#89808)
  Made imports static (elastic#89935)
  [ml] migrate file_data_visualizer/import route to file_upload plugin (elastic#89640)
  [Discover] Adapt default column behavior (elastic#89826)
  Round start and end values (elastic#89030)
  Rename getProxyAgents to getCustomAgents (elastic#89813)
  [Form lib] UseField `onError` listener (elastic#89895)
  [APM] use latency sum instead of avg for impact (elastic#89990)
  migrate more core-owned plugins to tsproject ref (elastic#89975)
  [Logs UI] Load <LogStream> entries via async searches (elastic#86899)
  [APM] Abort browser requests when appropriate (elastic#89557)
  [Alerting] Allow user to select existing connector of same type when fixing broken connector (elastic#89062)
  [Data Table] Use shared CSV export mechanism (elastic#89702)
  chore(NA): improve logic check when installing Bazel tools (elastic#89634)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Discover Discover Application release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.12.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants