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: Leaves of disabled object fields are shown separately in the fields list #92019

Closed
flash1293 opened this issue Feb 19, 2021 · 2 comments
Labels
bug Fixes for quality problems that affect the customer experience Feature:Discover Discover Application Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@flash1293
Copy link
Contributor

flash1293 commented Feb 19, 2021

Describe the bug: When the fields API is enabled, all leaves of enabled: false object types are shown as separate entries in the field list

Steps to reproduce:

  1. Include something like this in the mapping:
"httpHeader" : {
          "type" : "object",
          "enabled" : false
        },
  1. Ingest data like this:
"httpHeader" : [
            {
              "name" : "Accept",
              "value" : "nothing"
            },
            {
              "name" : "Cache",
              "value" : "not-available"
            }
          ],
  1. Go to discover
  2. All leaves are shown as separate fields

Expected behavior:
Just the object field itself is shown as field

Screenshots (if relevant):
7.11 (using _source):
Screenshot 2021-02-19 at 15 36 22

master (using fields):
Screenshot 2021-02-19 at 15 36 07

@flash1293 flash1293 added bug Fixes for quality problems that affect the customer experience Feature:Discover Discover Application Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Feb 19, 2021
@elasticmachine
Copy link
Contributor

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

@flash1293
Copy link
Contributor Author

As discussed, closing this as working as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Discover Discover Application Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

2 participants