elastic / kibana

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

[Licensing] Expose getter in the plugin's start contract #194573

Open afharo opened 2 hours ago

afharo commented 2 hours ago

In https://github.com/elastic/kibana/pull/194499, we identified a few instances of plugins calling the refresh() method as a way to await the license's resolution. The problem is that this method forces the retrieval of the license, causing extra load.

To avoid confusion, we can expose a getter that returns a promise that resolves to the license once available.

elasticmachine commented 2 hours ago

Pinging @elastic/kibana-core (Team:Core)