Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
# Backport This will backport the following commits from `main` to `8.x`: - [[Cloud Security] Update graph appearance (#204610)](#204610) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Kfir Peled","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-19T14:50:39Z","message":"[Cloud Security] Update graph appearance (#204610)\n\n## Summary\r\n\r\n- [x] Remove the unknown or question symbols for entities who's type we\r\ndon't know\r\n- [x] Replace edges to be sharp path instead of a smooth one \r\n- [x] Changed background of alerted node from `danger` to `primary`\r\n- [x] Fix arrow popover color not in sync with background color \r\n- [x] Handles should be visible as a small dot\r\n- [x] Expand button's color should be similar to the nodes color\r\n- [x] Main alert path should be a solid line\r\n\r\nBefore:\r\n\r\n![Screenshot 2024-12-18 at 18 45\r\n31](https://github.com/user-attachments/assets/4fd24ec7-8a8b-4659-8605-a53685be8d78)\r\n\r\n\r\nAfter:\r\n\r\n![Screenshot 2024-12-18 at 19 08\r\n31](https://github.com/user-attachments/assets/ebeae458-075d-48a3-8a42-66787440adc1)\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/4253ec83-19da-4c34-bb80-cb4ca900672d\r\n\r\n\r\n**How to test**\r\n\r\nTo test this PR you can run\r\n\r\n```\r\nyarn storybook cloud_security_posture_packages\r\n```\r\n\r\nTo test e2e\r\n\r\n- Enable the feature flag \r\n\r\n`kibana.dev.yml`:\r\n\r\n```yaml\r\nuiSettings.overrides.securitySolution:enableVisualizationsInFlyout: true\r\nxpack.securitySolution.enableExperimental: ['graphVisualizationInFlyoutEnabled']\r\n```\r\n\r\n- Load mocked data:\r\n\r\n```bash\r\nnode scripts/es_archiver load x-pack/test/cloud_security_posture_functional/es_archives/logs_gcp_audit \\ \r\n --es-url http://elastic:changeme@localhost:9200 \\\r\n --kibana-url http://elastic:changeme@localhost:5601\r\n\r\nnode scripts/es_archiver load x-pack/test/cloud_security_posture_functional/es_archives/security_alerts \\\r\n --es-url http://elastic:changeme@localhost:9200 \\\r\n --kibana-url http://elastic:changeme@localhost:5601\r\n```\r\n\r\n- Make sure you include data from Oct 13 2024. (in the video I use Last\r\nyear)\r\n\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: Sean Rathier <[email protected]>\r\nCo-authored-by: Brad White <[email protected]>\r\nCo-authored-by: seanrathier <[email protected]>","sha":"576f3c5e81fee12cf1146b8d25b25e5ec865ea48","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Cloud Security","backport:prev-minor","ci:build-storybooks"],"title":"[Cloud Security] Update graph appearance","number":204610,"url":"https://github.com/elastic/kibana/pull/204610","mergeCommit":{"message":"[Cloud Security] Update graph appearance (#204610)\n\n## Summary\r\n\r\n- [x] Remove the unknown or question symbols for entities who's type we\r\ndon't know\r\n- [x] Replace edges to be sharp path instead of a smooth one \r\n- [x] Changed background of alerted node from `danger` to `primary`\r\n- [x] Fix arrow popover color not in sync with background color \r\n- [x] Handles should be visible as a small dot\r\n- [x] Expand button's color should be similar to the nodes color\r\n- [x] Main alert path should be a solid line\r\n\r\nBefore:\r\n\r\n![Screenshot 2024-12-18 at 18 45\r\n31](https://github.com/user-attachments/assets/4fd24ec7-8a8b-4659-8605-a53685be8d78)\r\n\r\n\r\nAfter:\r\n\r\n![Screenshot 2024-12-18 at 19 08\r\n31](https://github.com/user-attachments/assets/ebeae458-075d-48a3-8a42-66787440adc1)\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/4253ec83-19da-4c34-bb80-cb4ca900672d\r\n\r\n\r\n**How to test**\r\n\r\nTo test this PR you can run\r\n\r\n```\r\nyarn storybook cloud_security_posture_packages\r\n```\r\n\r\nTo test e2e\r\n\r\n- Enable the feature flag \r\n\r\n`kibana.dev.yml`:\r\n\r\n```yaml\r\nuiSettings.overrides.securitySolution:enableVisualizationsInFlyout: true\r\nxpack.securitySolution.enableExperimental: ['graphVisualizationInFlyoutEnabled']\r\n```\r\n\r\n- Load mocked data:\r\n\r\n```bash\r\nnode scripts/es_archiver load x-pack/test/cloud_security_posture_functional/es_archives/logs_gcp_audit \\ \r\n --es-url http://elastic:changeme@localhost:9200 \\\r\n --kibana-url http://elastic:changeme@localhost:5601\r\n\r\nnode scripts/es_archiver load x-pack/test/cloud_security_posture_functional/es_archives/security_alerts \\\r\n --es-url http://elastic:changeme@localhost:9200 \\\r\n --kibana-url http://elastic:changeme@localhost:5601\r\n```\r\n\r\n- Make sure you include data from Oct 13 2024. (in the video I use Last\r\nyear)\r\n\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: Sean Rathier <[email protected]>\r\nCo-authored-by: Brad White <[email protected]>\r\nCo-authored-by: seanrathier <[email protected]>","sha":"576f3c5e81fee12cf1146b8d25b25e5ec865ea48"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/204610","number":204610,"mergeCommit":{"message":"[Cloud Security] Update graph appearance (#204610)\n\n## Summary\r\n\r\n- [x] Remove the unknown or question symbols for entities who's type we\r\ndon't know\r\n- [x] Replace edges to be sharp path instead of a smooth one \r\n- [x] Changed background of alerted node from `danger` to `primary`\r\n- [x] Fix arrow popover color not in sync with background color \r\n- [x] Handles should be visible as a small dot\r\n- [x] Expand button's color should be similar to the nodes color\r\n- [x] Main alert path should be a solid line\r\n\r\nBefore:\r\n\r\n![Screenshot 2024-12-18 at 18 45\r\n31](https://github.com/user-attachments/assets/4fd24ec7-8a8b-4659-8605-a53685be8d78)\r\n\r\n\r\nAfter:\r\n\r\n![Screenshot 2024-12-18 at 19 08\r\n31](https://github.com/user-attachments/assets/ebeae458-075d-48a3-8a42-66787440adc1)\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/4253ec83-19da-4c34-bb80-cb4ca900672d\r\n\r\n\r\n**How to test**\r\n\r\nTo test this PR you can run\r\n\r\n```\r\nyarn storybook cloud_security_posture_packages\r\n```\r\n\r\nTo test e2e\r\n\r\n- Enable the feature flag \r\n\r\n`kibana.dev.yml`:\r\n\r\n```yaml\r\nuiSettings.overrides.securitySolution:enableVisualizationsInFlyout: true\r\nxpack.securitySolution.enableExperimental: ['graphVisualizationInFlyoutEnabled']\r\n```\r\n\r\n- Load mocked data:\r\n\r\n```bash\r\nnode scripts/es_archiver load x-pack/test/cloud_security_posture_functional/es_archives/logs_gcp_audit \\ \r\n --es-url http://elastic:changeme@localhost:9200 \\\r\n --kibana-url http://elastic:changeme@localhost:5601\r\n\r\nnode scripts/es_archiver load x-pack/test/cloud_security_posture_functional/es_archives/security_alerts \\\r\n --es-url http://elastic:changeme@localhost:9200 \\\r\n --kibana-url http://elastic:changeme@localhost:5601\r\n```\r\n\r\n- Make sure you include data from Oct 13 2024. (in the video I use Last\r\nyear)\r\n\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: Sean Rathier <[email protected]>\r\nCo-authored-by: Brad White <[email protected]>\r\nCo-authored-by: seanrathier <[email protected]>","sha":"576f3c5e81fee12cf1146b8d25b25e5ec865ea48"}}]}] BACKPORT--> Co-authored-by: Kfir Peled <[email protected]>
- Loading branch information