elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.7k stars 8.24k forks source link

[AO] Only access the title for a data view using `getIndexPattern` method #164367

Open simianhacker opened 1 year ago

simianhacker commented 1 year ago

We need to update the following files to stop accessing the title attribute directly:

elasticmachine commented 1 year ago

Pinging @elastic/actionable-observability (Team: Actionable Observability)

maryam-saeidi commented 1 year ago

@simianhacker What is the difference between using getIndexPattern and directly accessing the title?

simianhacker commented 1 year ago

@maryam-saeidi They are essentially the same thing... title is set to whatever you have chosen for the index pattern. For example, if I was creating a new DataView called Metricbeat Indices and I set the index pattern to metricbeat-*, the title attribute would be metricbeat-* and the name would be Metricbeat Indices. I believe the Kibana team is trying to undo this by depreciating accessing these "legacy" fields directly and moving people to use the accessor methods like getindexPattern or getName.

elasticmachine commented 1 year ago

Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)

maryam-saeidi commented 1 month ago

@mgiota Are you working on this issue, or shall we remove you from assignees?