Skip to content
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

[Cloud Security] Refactoring cloud-security-posture packages' folder structure #196008

Merged

Conversation

kfirpeled
Copy link
Contributor

@kfirpeled kfirpeled commented Oct 12, 2024

Summary

Organized the team's packages under the same root folder

 "@kbn/cloud-security-posture": "link:x-pack/packages/cloud_security_posture/public",
 "@kbn/cloud-security-posture-common": "link:x-pack/packages/kbn-cloud-security-posture/common",
 "@kbn/cloud-security-posture-graph": "link:x-pack/packages/kbn-cloud-security-posture/graph",

@kfirpeled kfirpeled added release_note:skip Skip the PR/issue when compiling release notes backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) labels Oct 12, 2024
@kfirpeled kfirpeled requested a review from a team as a code owner October 12, 2024 03:45
@kfirpeled kfirpeled requested a review from opauloh October 12, 2024 03:45
@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] Jest Tests #11 / UserRepresentation call onRemoveItem correctly

Metrics [docs]

✅ unchanged

History

@maxcold
Copy link
Contributor

maxcold commented Oct 14, 2024

@kfirpeled context behind the change?

Copy link
Contributor

@maxcold maxcold left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@animehart fyi
@kfirpeled can you update README on the kbn-cloud-security-package to mention which packages we have and for what usecase

@kfirpeled
Copy link
Contributor Author

@kfirpeled context behind the change?

Sure, sorry for the lack of context and thanks for checking it out.

@opauloh suggested to restructure our folders to a more intuitive way. Here his original comment #195307 (comment)

I do agree that if we gonna have multiple packages available, and not only public/common. It would make it easier to restructure the folders and packages as Paulo suggested.

You can take an example how apm team structured their packages, it looks quite convenient

@kfirpeled kfirpeled enabled auto-merge (squash) October 14, 2024 12:53
@kfirpeled kfirpeled merged commit 96eff23 into elastic:main Oct 14, 2024
38 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/11329861798

@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
8.x Backport failed because of merge conflicts

You might need to backport the following PRs to 8.x:
- [ECO][Infra] Add callout for ingesting metrics data in Host and Container views (#195378)
- [ML] Update vCPUs ranges for start model deployment (#195617)
- [Search] Delete flow inference endpoint UI (#193642)
- Execution type field (#195884)
- Endpoint package policy advanced options for v8.16.0 (#195797)
- [[Discover] Add CTA to enable degraded docs indicator in ES

Manual backport

To create the backport manually run:

node scripts/backport --pr 196008

Questions ?

Please refer to the Backport tool documentation

@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/11329861798

@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
8.x Backport failed because of merge conflicts

You might need to backport the following PRs to 8.x:
- [ECO][Infra] Add callout for ingesting metrics data in Host and Container views (#195378)
- [ObsUX][Synthtrace] Fallback to latest GA package version if latest prerelease fetch fails (#195889)
- [Lens] Disable config axis side and color picker when groupid is breakdown and collaseFn enable (#195845)

Manual backport

To create the backport manually run:

node scripts/backport --pr 196008

Questions ?

Please refer to the Backport tool documentation

@kfirpeled
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kfirpeled added a commit to kfirpeled/kibana that referenced this pull request Oct 15, 2024
…structure (elastic#196008)

## Summary

Organized the team's packages under the same root folder

```
 "@kbn/cloud-security-posture": "link:x-pack/packages/cloud_security_posture/public",
 "@kbn/cloud-security-posture-common": "link:x-pack/packages/kbn-cloud-security-posture/common",
 "@kbn/cloud-security-posture-graph": "link:x-pack/packages/kbn-cloud-security-posture/graph",
```

---------

Co-authored-by: kibanamachine <[email protected]>
(cherry picked from commit 96eff23)

# Conflicts:
#	.github/CODEOWNERS
kfirpeled added a commit that referenced this pull request Oct 15, 2024
…older structure (#196008) (#196267)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Cloud Security] Refactoring cloud-security-posture packages' folder
structure (#196008)](#196008)

<!--- Backport version: 8.9.8 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Kfir
Peled","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-14T14:43:08Z","message":"[Cloud
Security] Refactoring cloud-security-posture packages' folder structure
(#196008)\n\n## Summary\r\n\r\nOrganized the team's packages under the
same root folder\r\n\r\n```\r\n \"@kbn/cloud-security-posture\":
\"link:x-pack/packages/cloud_security_posture/public\",\r\n
\"@kbn/cloud-security-posture-common\":
\"link:x-pack/packages/kbn-cloud-security-posture/common\",\r\n
\"@kbn/cloud-security-posture-graph\":
\"link:x-pack/packages/kbn-cloud-security-posture/graph\",\r\n```\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"96eff23f50f68a161b85d6d05309fa3ea6a287b4","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor"],"number":196008,"url":"https://github.com/elastic/kibana/pull/196008","mergeCommit":{"message":"[Cloud
Security] Refactoring cloud-security-posture packages' folder structure
(#196008)\n\n## Summary\r\n\r\nOrganized the team's packages under the
same root folder\r\n\r\n```\r\n \"@kbn/cloud-security-posture\":
\"link:x-pack/packages/cloud_security_posture/public\",\r\n
\"@kbn/cloud-security-posture-common\":
\"link:x-pack/packages/kbn-cloud-security-posture/common\",\r\n
\"@kbn/cloud-security-posture-graph\":
\"link:x-pack/packages/kbn-cloud-security-posture/graph\",\r\n```\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"96eff23f50f68a161b85d6d05309fa3ea6a287b4"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/196008","number":196008,"mergeCommit":{"message":"[Cloud
Security] Refactoring cloud-security-posture packages' folder structure
(#196008)\n\n## Summary\r\n\r\nOrganized the team's packages under the
same root folder\r\n\r\n```\r\n \"@kbn/cloud-security-posture\":
\"link:x-pack/packages/cloud_security_posture/public\",\r\n
\"@kbn/cloud-security-posture-common\":
\"link:x-pack/packages/kbn-cloud-security-posture/common\",\r\n
\"@kbn/cloud-security-posture-graph\":
\"link:x-pack/packages/kbn-cloud-security-posture/graph\",\r\n```\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"96eff23f50f68a161b85d6d05309fa3ea6a287b4"}}]}]
BACKPORT-->
@bhavyarm bhavyarm added the Team:Cloud Security Cloud Security team related label Oct 18, 2024
@elasticmachine
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) release_note:skip Skip the PR/issue when compiling release notes Team:Cloud Security Cloud Security team related v8.16.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants