-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Index patterns] Remove field cache #82223
[Index patterns] Remove field cache #82223
Conversation
…ve_legacy_es_client_usage
…:mattkime/kibana into field_caps_remove_legacy_es_client_usage
…legacy_es_client_usage
Hi, This new feature is a step back for us. It removes the abilities to hide fields for other spaces. Our use case: We are running Kibana with multiple spaces. Every space is a customer. This all was working great. With the new update the index field list is generated on-to-fly when kibana loads. We have manged to mitigate this by added custom code to kibana, so it just doesn't return the fields we don't want. Can we have the abilities to hide fields? |
@TDonselaar, thanks for the feedback. FYI seems like this enhancement issue would cover your use case. Also, you can try to use field filters for this, which is a recommended way. |
How so? It might not be ideal, but we should be able to find a work around. |
Filter fields just exclude the fields in the results, it doesn't stop them showing up in the filtering part of the UI. Example when I add a filter field: Then I go to a new dashboard and open a filter popup I still see the fields I added to the filter fields. So you see that the customer can still use the field. |
I'm currently verifying field filter functionality. I'm seeing the same thing you are and it doesn't appear to be working. |
@TDonselaar You could also look at using field level security in elasticsearch, this might even be a preferred method of working as its being enforced at a lower level. - https://www.elastic.co/guide/en/elasticsearch/reference/current/field-level-security.html |
I could think of two issue with my use case that might happen if I used field level security:
I haven't tested field level security, so I'm just presuming that I'll run into these issues. So #17270 option to hide fields would be a solution for my use case. |
This specifically does not happen.
Thats true. I think you should create a new issue with an enhancement request - a method of hiding fields from field lists. The fields still need to exist to be used in queries but shouldn't be presented to the user. The more detail about your specific needs the better. |
We have encountered an issue that might be related to this change. Scenario using Elastic Stack 7.15.1:
When precisely does this happen, i.e. the loading of the index pattern? Is it performed on regular intervals, triggered by some specific event or is the load performed only on Kibana's startup? |
@b0le Could you create a new issue and include a
On page load or when navigating between Kibana applications. |
Summary
Removes index pattern field cache and field refresh ui. Field list is loaded via field caps api when index pattern is loaded. Field attributes that we wish to persist are now saved separately from the field list on the SavedObject. The field list will only contain scripted fields.
Checklist
Delete any items that are not applicable to this PR.
For maintainers