Skip to content

[8.x] [Dashboards] Replace contentClient with getContentClient on DashboardStart server api (#217586)#217989

Merged
nickpeihl merged 2 commits intoelastic:8.xfrom
nickpeihl:backport/8.x/pr-217586
Apr 15, 2025
Merged

[8.x] [Dashboards] Replace contentClient with getContentClient on DashboardStart server api (#217586)#217989
nickpeihl merged 2 commits intoelastic:8.xfrom
nickpeihl:backport/8.x/pr-217586

Conversation

@nickpeihl
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

…Start server api (elastic#217586)

## Summary

Changes the DashboardStart server api to provide a getContentClient
function.

In elastic#214788, we set the
`contentClient` returned from the content management register method
after start lifecycle of all plugins. This means the `contentClient`
returned from the `DashboardStart` contract was undefined. This PR
changes the start contract to provide a getContentClient function
instead.

Only one consumer was using the contentClient from DashboardStart and
this PR also updates that consumer.

(cherry picked from commit 72d18d8)

# Conflicts:
#	x-pack/solutions/observability/plugins/observability/server/routes/alerts/route.ts
@nickpeihl nickpeihl merged commit fc686c5 into elastic:8.x Apr 15, 2025
8 checks passed
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants