Skip to content

Turn Asset Inventory plugin into a Security Solution page#205363

Merged
albertoblaz merged 7 commits intoelastic:mainfrom
albertoblaz:refactor-asset-inventory-page
Jan 9, 2025
Merged

Turn Asset Inventory plugin into a Security Solution page#205363
albertoblaz merged 7 commits intoelastic:mainfrom
albertoblaz:refactor-asset-inventory-page

Conversation

@albertoblaz
Copy link
Copy Markdown
Contributor

@albertoblaz albertoblaz commented Jan 2, 2025

Summary

Turn AssetInventory plugin into a simple Security solution page based on this conversation:

Follow-up of this work, where we initially developed the Asset Inventory bare-bones as a plugin:

Part of this work stream though not originally planned:

Motivation

Reasoning behind is enabling fast development changes without any major refactors in other packages/components that need to be reused, which seems impossible as of now with the current codebase.

Checklist

  • If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the docker list
  • This was checked for breaking HTTP API changes, and any breaking changes have been approved by the breaking-change committee. The release_note:breaking label should be applied in these situations.
  • The PR description includes the appropriate Release Notes section, and the correct release_note:* label is applied per the guidelines

Identify risks

In the future, we'll probably have to turn AssetInventory into a sub-plugin again. Doing so doesn't bring any risk in the present, and should only involve the re-generation of the deleted files in this PR.

@albertoblaz albertoblaz added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting Team:Cloud Security Cloud Security team related labels Jan 2, 2025
@albertoblaz albertoblaz self-assigned this Jan 2, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 2, 2025

A documentation preview will be available soon.

Request a new doc build by commenting
  • Rebuild this PR: run docs-build
  • Rebuild this PR and all Elastic docs: run docs-build rebuild

run docs-build is much faster than run docs-build rebuild. A rebuild should only be needed in rare situations.

If your PR continues to fail for an unknown reason, the doc build pipeline may be broken. Elastic employees can check the pipeline status here.

@albertoblaz albertoblaz force-pushed the refactor-asset-inventory-page branch 2 times, most recently from a21e122 to cc05d46 Compare January 2, 2025 15:54
@albertoblaz albertoblaz force-pushed the refactor-asset-inventory-page branch from cc05d46 to a792dee Compare January 2, 2025 16:23
@albertoblaz albertoblaz marked this pull request as ready for review January 9, 2025 07:20
@albertoblaz albertoblaz requested review from a team as code owners January 9, 2025 07:20
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-cloud-security-posture (Team:Cloud Security)

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
assetInventory 6 - -6
securitySolution 6536 6537 +1
total -5

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
assetInventory 8 - -8

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
assetInventory 817.0B - -817.0B
securitySolution 22.2MB 22.2MB +1008.0B
total +191.0B

Public APIs missing exports

Total count of every type that is part of your API that should be exported but is not. This will cause broken links in the API documentation system. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats exports for more detailed information.

id before after diff
assetInventory 1 - -1

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
assetInventory 3.3KB - -3.3KB
Unknown metric groups

API count

id before after diff
assetInventory 8 - -8

async chunk count

id before after diff
assetInventory 1 - -1
securitySolution 108 109 +1
total -0

ESLint disabled line counts

id before after diff
assetInventory 5 - -5
securitySolution 573 574 +1
total -4

Total ESLint disabled count

id before after diff
assetInventory 5 - -5
securitySolution 656 657 +1
total -4

History

cc @albertoblaz

@albertoblaz albertoblaz merged commit 1e9606d into elastic:main Jan 9, 2025
@albertoblaz albertoblaz deleted the refactor-asset-inventory-page branch January 9, 2025 12:53
@albertoblaz albertoblaz changed the title Turn AssetInventory sub-plugin into a Security solution page Turn Asset Inventory plugin into a Security Solution page Jan 9, 2025
@albertoblaz albertoblaz linked an issue Jan 9, 2025 that may be closed by this pull request
3 tasks
Zacqary pushed a commit to Zacqary/kibana that referenced this pull request Jan 9, 2025
…#205363)

## Summary

Turn AssetInventory plugin into a simple Security solution page based on
this conversation:
- elastic/security-team#10346

Follow-up of this work, where we initially developed the Asset Inventory
bare-bones as a plugin:
- elastic#201704

Part of this work stream though not originally planned:
- elastic/security-team#11247

### Motivation

Reasoning behind is enabling fast development changes without any major
refactors in other packages/components that need to be reused, which
seems impossible as of now with the current codebase.

### Checklist

- [x] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [x] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

### Identify risks

In the future, we'll probably have to turn AssetInventory into a
sub-plugin again. Doing so doesn't bring any risk in the present, and
should only involve the re-generation of the deleted files in this PR.

---------

Co-authored-by: Paulo Henrique <paulo.henrique@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
viduni94 pushed a commit to viduni94/kibana that referenced this pull request Jan 23, 2025
…#205363)

## Summary

Turn AssetInventory plugin into a simple Security solution page based on
this conversation:
- elastic/security-team#10346

Follow-up of this work, where we initially developed the Asset Inventory
bare-bones as a plugin:
- elastic#201704

Part of this work stream though not originally planned:
- elastic/security-team#11247

### Motivation

Reasoning behind is enabling fast development changes without any major
refactors in other packages/components that need to be reused, which
seems impossible as of now with the current codebase.

### Checklist

- [x] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [x] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

### Identify risks

In the future, we'll probably have to turn AssetInventory into a
sub-plugin again. Doing so doesn't bring any risk in the present, and
should only involve the re-generation of the deleted files in this PR.

---------

Co-authored-by: Paulo Henrique <paulo.henrique@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:Cloud Security Cloud Security team related v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate Asset Inventory plugin into Security Solution

6 participants