…eExecutionContextTracking flag (elastic#204547)
Resolves elastic#195778
## 🐞 Summary
This PR fixes missing executionContext in sharedux router by adding
`SharedUXContext` to the `KibanaRootContextProvider` (inside of the
`KibanaRenderContextProvider`). (More context provided in this
elastic#195778 (comment))
It also introduces `enableExecutionContextTracking` to enable tracking
logic to avoid creating a race condition for the existing custom
execution context tracking implementations.
I enabled this flag for the observability plugin and here is the
difference:
|Item|Screenshot|
|---|---|
|Before||
|After||
### 🧪 How to test
- Go to the observability alerts page and check the kibana-browser
request as shown above
### ✨ Possible future improvements
Allowing this logic to be provided by the consumer so that we can get
rid of custom implementations (Example: [APM custom execution
context](https://github.com/elastic/kibana/blob/e9671937bacfaa911d32de0e8885e7f26425888a/x-pack/plugins/observability_solution/apm/public/components/routing/app_root/update_execution_context_on_route_change.ts#L21,L25))
---------
Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
Co-authored-by: Davis McPhee <davis.mcphee@elastic.co>
Co-authored-by: Marco Antonio Ghiani <marcoantonio.ghiani@elastic.co>
Co-authored-by: Elena Stoeva <elenastoeva99@gmail.com>
(cherry picked from commit 53748fd)
# Conflicts:
# packages/react/kibana_context/render/render_provider.tsx
# packages/react/kibana_context/root/BUILD.bazel
# packages/react/kibana_context/root/root_provider.test.tsx
# packages/react/kibana_context/root/root_provider.tsx
# packages/react/kibana_context/root/tsconfig.json
Backport
This will backport the following commits from
mainto8.17:Questions ?
Please refer to the Backport tool documentation