mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 10:40:07 -04:00
closes https://github.com/elastic/kibana/issues/158561
## 📝 Summary
This PR adds a new customization point to allow for prepending custom
filter controls to the search bar.
At the moment we are only showing a default namespace filter, once this
is ready we will then check how to provide curated filters per
integration.
## ✅ Testing
1. Make sure to have some documents to different data sets with
different namespace, you can use [this
document](https://www.elastic.co/guide/en/elasticsearch/reference/current/set-up-a-data-stream.html)
as an example
2. Navigate to Discover with the log-explorer profile, `/p/log-explorer`
3. Validate that the new filter control is there
4. Filter using this new control and make sure documents are filtered
out
## 🎥 Demo
6828f62f
-dd09-42bd-930c-dd7eaf94958b
---------
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
11 lines
325 B
JSON
11 lines
325 B
JSON
{
|
|
"type": "plugin",
|
|
"id": "@kbn/discover-customization-examples-plugin",
|
|
"owner": "@elastic/kibana-data-discovery",
|
|
"plugin": {
|
|
"id": "discoverCustomizationExamples",
|
|
"server": false,
|
|
"browser": true,
|
|
"requiredPlugins": ["controls", "developerExamples", "discover", "embeddable", "kibanaUtils"]
|
|
}
|
|
}
|