[Asset Manager] Creates baseline public asset client for use in public plugins#167191
[Asset Manager] Creates baseline public asset client for use in public plugins#167191jasonrhodes merged 25 commits intoelastic:mainfrom
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
6dd1ac9 to
64602d7
Compare
There was a problem hiding this comment.
The original config.ts test was split in two configurations, one for testing apis with assets source and the other for signals. Currently the signals test suite is enabled
There was a problem hiding this comment.
Oh ok good call out, I'll take a look and maybe adjust slightly in my next PR
x-pack/plugins/asset_manager/public/lib/public_assets_client.test.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/asset_manager/public/lib/public_assets_client.test.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
can the packages import types from assetmanager plugin instead ?
There was a problem hiding this comment.
Should packages import from plugins? That sounds wrong, but maybe it's allowed for types only? Not sure it's a good idea...
There was a problem hiding this comment.
packages already do that (eg kbn-data-service, alert_details..) but I don't know if that's recommended
There was a problem hiding this comment.
Ok, I'll try to poke around and think on that a bit.
|
This recently merged PR is going to cause conflicts for this PR -- I'll fix. |
759b999 to
2738219
Compare
|
I think there is an issue with public access to the config. I can't seem to enable the public plugin because my config isn't being read. |
legrego
left a comment
There was a problem hiding this comment.
Change to test/plugin_functional/test_suites/core_plugins/rendering.ts LGTM
|
@kibanamachine run elasticsearch-ci/docs |
1 similar comment
|
@kibanamachine run elasticsearch-ci/docs |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Module Count
Public APIs missing comments
Public APIs missing exports
Page load bundle
History
To update your PR or re-run it, just comment with: |
Closes #167075
Summary
Adds a public asset client available in the
setuplifecycle hook for plugins that depend on this one.getHostsis the only method available on this client for now.TODO, before merge:
Testing this PR
One way of testing this new client is to apply the attached test-assets.patch file locally, adjust the date range in the getHosts query that is added in the infra plugin, and then start Kibana and navigate to the infra app. You should see print out in the browser console.
test-assets.patch