[Logs App] Use new getActiveSpace function, abandon getInjectedVar() #68142
Labels
chore
Feature:Logs UI
Logs UI feature
Team:Infra Monitoring UI - DEPRECATED
DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services
Milestone
This call here: https://github.com/elastic/kibana/blob/master/x-pack/plugins/infra/public/utils/use_kibana_space_id.ts#L16 is apparently the last thing that is keeping Kibana's legacy spaces plugin alive.
We need to replace that call with the new platform spaces plugin's
getActiveSpace()
method: https://github.com/elastic/kibana/blob/master/x-pack/plugins/spaces/public/plugin.tsx#L94-L97Note: the new platform version is an async call, so the
useKibanaSpaceId
hook will need to be re-thought.Thanks for bringing this to our attention, @legrego ! <3
The text was updated successfully, but these errors were encountered: