-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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] Only request fields that are shown to user when using new fields API #91897
Comments
Pinging @elastic/kibana-app (Team:KibanaApp) |
There is no additional request (shouldn't be?) between steps 5 and 6, so I am confused what the issue here is |
Everything described here is the expected behavior. The inspector shows the last executed request, which was the one requesting all the fields explicitly since you have a source filter configured. |
@majagrubic I see, I assumed we were making a new request when adding columns- this doesn't seem like a bug in the Discover app. Do you think it would be a bug in the saved search embeddable, which is making a larger-than-needed request? |
Search embeddable will always request '*':
Or did you have something else in mind? |
@majagrubic Right, but maybe we could optimize the request to not need as much data. Are the edge cases where that wouldn't work? |
I think |
We're needing to request all fields, since we're using the same result to show when the document is expanded (i.e. the full document). There is no additional request happening for expanded documents (for now by choice because of the performance impact), i.e. if we would only request columns configured in the table and a user would then watch the whole document it would only contain those columns and not the full document. |
Can we close this issue as it's not really an issue? |
Update: I am not sure if I understood Wylie initially correctly when I read that issue. I think there is an issue here, we're currently in the saves search embeddable ignoring the field filters completely. Though I am not sure if that is exactly what Wylie meant. UPDATE2: I actually was looking at some wrong place with that comment above, so ignore it. |
This is a bug in Discover on master
Steps to reproduce:
discover:searchFieldsFromSource
fields: [{ field: '*' }, ...date fields]
, which is normal without excluded fieldsfields: [{ field: 'field1' }, { field: 'field2' }]
bytes
, to add to the tablebytes
.The text was updated successfully, but these errors were encountered: