-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Fleet] Add custom integrations API #112481
[Fleet] Add custom integrations API #112481
Conversation
⏳ Build in-progress, with failures
Failed CI StepsHistory
To update your PR or re-run it, just comment with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did a first pass look at the basic structure and I generally think the approach makes sense. This will definitely be cleaner once we can move the merging logic to the server-side and provide a single API endpoint that returns the merged and normalized data.
src/plugins/custom_integrations/server/custom_integration_registry.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/home/index.tsx
Show resolved
Hide resolved
src/plugins/home/server/services/tutorials/tutorials_registry.ts
Outdated
Show resolved
Hide resolved
src/plugins/home/server/services/tutorials/lib/tutorial_schema.ts
Outdated
Show resolved
Hide resolved
Pinging @elastic/fleet (Team:Fleet) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Took a look here and went through @joshdover's previous comments. I don't have anything much to add of concern other than what he already mentioned and what was resolved there.
I think the typing is a bit of a lingering concern, but I'm comfortable with what we have set up for IntegrationCard
objects, etc here in this PR.
I pulled this PR down locally and verified the functionality of the EMS tutorial integration card. Things look good!
Thanks for all your work on this! 🚀
...gins/fleet/public/applications/integrations/sections/epm/components/package_card.stories.tsx
Show resolved
Hide resolved
@@ -0,0 +1,9 @@ | |||
# customIntegrations |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The docs will need fleshing out and conversion to .mdx
if we want to include them in the new dev docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx. my preference is to hold off on dev-docs in this PR. These will evolve fairly quickly. Would prefer to introduce only in separate PR when contract stabilizes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some NITs and comments, overall LGTM
src/plugins/home/server/services/tutorials/tutorials_registry.ts
Outdated
Show resolved
Hide resolved
src/plugins/home/server/services/tutorials/tutorials_registry.ts
Outdated
Show resolved
Hide resolved
src/plugins/home/server/services/tutorials/tutorials_registry.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The approach looks ok to me although the new custom_integrations
plugin is sorely missing unit tests.
I know it seems like a harmless enough plugin but we need to make sure it gives new users a great first impression!
IMO, we should also add support for localization as soon as possible. 7.16 will be around for a while.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@TinaHeiligers thx for the review! I added unit test coverage and a new api integration test for the new plugin. |
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Page load bundle
Unknown metric groupsAPI count
History
To update your PR or re-run it, just comment with: |
💔 Backport failed
To backport manually run: |
Add a new plugin `custom_integrations`. This plugin allows for the registration of data-integrations tutorials. The Fleet-integrations app will display these alongside the existing Elastic Agent integrations. # Conflicts: # packages/kbn-optimizer/limits.yml
Add a new plugin `custom_integrations`. This plugin allows for the registration of data-integrations tutorials. The Fleet-integrations app will display these alongside the existing Elastic Agent integrations. # Conflicts: # packages/kbn-optimizer/limits.yml
As the merges are now available for above PR, is it possible that we can have mocks for user-facing changes. Also, it will be great if you could provide us more info on how to validate above. Currently, attempted to look out changes on latest 8.0 snapshot build available on cloud-qa platform, however couldn't find as described in ticket. Further, we observed an inactive link for custom inputs under integration tab. So we have reported issue [8.0]: Custom inputs link under integration tab is inactive.. Thanks |
@dikshachauhan-qasource since it is closed, I would also follow up with an email, to the author after a day if there is no response. it would be good to confirm if we have mocks, but we may not. :) thanks for testing and poking it. |
@dikshachauhan-qasource these are primarly internal changes. The only user-facing change is the additiong of the EMS-tutorial as a new card. So from the pointers at the screenshot here, #112481 (comment), that's not related to this change. Doing a |
Thanks for the feedback. We have validated above related issue on shipped 7.15 build and found it working fine. Further, as per ticket, Please assign all the related tickets that will be coming under this feature change, so that we can record them and validate at our end. Thanks |
Part of #93084
Summary
internal changes:
custom_integrations
. This plugin can be used by others to register integrations that need to show up on the fleet-integration UX apphome
plugincustom_integrations
. Others became more generic to accomodate non-epr integration-types.user-facing changes:
Checklist
Delete any items that are not applicable to this PR.
For maintainers