Replace usage of public SO client with Fleet get Bulk Assets api#159653
Replace usage of public SO client with Fleet get Bulk Assets api#159653criamico merged 10 commits intoelastic:mainfrom
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
|
Pinging @elastic/infra-monitoring-ui (Team:Infra Monitoring UI) |
|
@elasticmachine merge upstream |
|
Pinging @elastic/fleet (Team:Fleet) |
x-pack/plugins/monitoring/public/application/pages/elasticsearch/ingest_pipeline_modal.tsx
Outdated
Show resolved
Hide resolved
| const savedObjectsClient = (await context.fleet).internalSoClient; | ||
| const { assetIds } = request.body; | ||
| const savedObjectsClient = (await context.fleet).internalSoClient; | ||
| const assets = await getBulkAssets(savedObjectsClient, assetIds as AssetSOObject[]); |
There was a problem hiding this comment.
I refactored this as I was trying to export it with PackageService from /server/plugin, so I decided to keep this change even if it's not strictly related to this PR
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Public APIs missing comments
Async chunks
Public APIs missing exports
Page load bundle
Unknown metric groupsAPI count
ESLint disabled line counts
References to deprecated APIs
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @criamico |
Closes #158598
Summary
Removes usage of deprecated SO client to fetch dashboard assets; Replaced with a call to the new Fleet endpoint
epm/bulk_assets(openapi)Testing
I'm not very familiar with stack monitoring, so I tried to reproduce what's described in the PR that originally introduced this dashboard; I couldn't trigger the modal but I can see the endpoint in the network requests:
It should be enough to test this change since is very small.