[Security Solution] Add 3rd level breadcrumb to admin page#71275
[Security Solution] Add 3rd level breadcrumb to admin page#71275parkiino merged 11 commits intoelastic:masterfrom
Conversation
|
Pinging @elastic/endpoint-app-team (Feature:Endpoint) |
|
Pinging @elastic/endpoint-management (Team:Endpoint Management) |
|
this looks good to me, but I want @paul-tavares to review before merging this in for 7.9. Worst case, we just merge in 8.0 and backport after the 7.9 branch is cut. Thanks for putting up the PR @parkiino ! |
💚 Build SucceededBuild metrics@kbn/optimizer bundle module count
History
To update your PR or re-run it, just comment with: |
| const isAdminRoutes = (spyState: RouteSpyState): spyState is AdministrationRouteSpyState => | ||
| spyState != null && spyState.pageName === SecurityPageName.administration; | ||
|
|
||
| // eslint-disable-next-line complexity |
There was a problem hiding this comment.
Curious what the ESLint error was here.
| return [ | ||
| { | ||
| name: i18n.translate('xpack.securitySolution.managementTabs.endpoints', { | ||
| name: i18n.translate('xpack.securitySolution.managementTabs.hosts', { |
There was a problem hiding this comment.
I see you created a translations.ts module under management/common/ where both Host and Policies tab names are defined - should they be used here as well?
| state: { | ||
| onDoneNavigateTo: [ | ||
| 'securitySolution:management', | ||
| 'securitySolution:administration', |
There was a problem hiding this comment.
This should actually be replaced with the constant we have in management/common/constants: MANAGEMENT_APP_ID
| state: { | ||
| onCancelNavigateTo: [ | ||
| 'securitySolution:management', | ||
| 'securitySolution:administration', |
There was a problem hiding this comment.
Same here and other places below - use MANAGEMENT_APP_ID
| const navigateToAppMockedCalls = coreStart.application.navigateToApp.mock.calls; | ||
| expect(navigateToAppMockedCalls[navigateToAppMockedCalls.length - 1]).toEqual([ | ||
| 'securitySolution:management', | ||
| 'securitySolution:administration', |
There was a problem hiding this comment.
:-)
Here as well (maybe global search and replace under security_solution/public dir
| let breadcrumb = [ | ||
| { | ||
| text: ADMINISTRATION, | ||
| href: getUrlForApp(`${APP_ID}:${SecurityPageName.administration}`, { |
There was a problem hiding this comment.
use MANAGEMENT_APP_ID instead here
|
|
||
| core.application.register({ | ||
| id: `${APP_ID}:${SecurityPageName.management}`, | ||
| id: `${APP_ID}:${SecurityPageName.administration}`, |
There was a problem hiding this comment.
maybe we should use the management const here too MANAGEMENT_APP_ID
| `${APP_ID}:${SecurityPageName.timelines}`, | ||
| `${APP_ID}:${SecurityPageName.case}`, | ||
| `${APP_ID}:${SecurityPageName.management}`, | ||
| `${APP_ID}:${SecurityPageName.administration}`, |
paul-tavares
left a comment
There was a problem hiding this comment.
Thanks for working on this. Nice job 👍 ⭐
All of my comment can be done in a separate PR as they are minor and really should not hold this up.
I would suggest that the description of this PR (and ultimately the Squash and Merge commit message) be clearer around the changes made. I think the bulk of the changes were refactoring ++ bug fix (I think?) around the renaming of the Management tab to Administration (Do I have that right?)
…1275) [Endpoint Security] Add 3rd level (hosts / policies) breadcrumb to admin page
* master: (314 commits) [APM] Use status_code field to calculate error rate (elastic#71109) [Observability] Change appLink passing the date range (elastic#71259) [Security] Add Timeline improvements (elastic#71506) adjust vislib bar opacity (elastic#71421) Fix ScopedHistory mock and adapt usages (elastic#71404) [Security Solution] Add hook for reading/writing resolver query params (elastic#70809) [APM] Bug fixes from ML integration testing (elastic#71564) [Discover] Add caused_by.type and caused_by.reason to error toast modal (elastic#70404) [Security Solution] Add 3rd level breadcrumb to admin page (elastic#71275) [Security Solution][Exceptions] Exception modal bulk close alerts that match exception attributes (elastic#71321) Change signal.rule.risk score mapping from keyword to float (elastic#71126) Added help text where needed on connectors and alert actions UI (elastic#69601) [SIEM][Detections] Value Lists Management Modal (elastic#67068) [test] Skips test preventing promotion of ES snapshot elastic#71582 [test] Skips test preventing promotion of ES snapshot elastic#71555 [ILM] Fix alignment of the timing field (elastic#71273) [SIEM][Detection Engine][Lists] Adds the ability for exception lists to be multi-list queried. (elastic#71540) initial telemetry setup (elastic#69330) [Reporting] Formatting fixes for CSV export in Discover, CSV download from Dashboard panel (elastic#67027) Search across spaces (elastic#67644) ...
…t-apps-page-titles * 'master' of github.com:elastic/kibana: (88 commits) [ML] Functional tests - disable DFA creation and cloning tests [APM] Use status_code field to calculate error rate (elastic#71109) [Observability] Change appLink passing the date range (elastic#71259) [Security] Add Timeline improvements (elastic#71506) adjust vislib bar opacity (elastic#71421) Fix ScopedHistory mock and adapt usages (elastic#71404) [Security Solution] Add hook for reading/writing resolver query params (elastic#70809) [APM] Bug fixes from ML integration testing (elastic#71564) [Discover] Add caused_by.type and caused_by.reason to error toast modal (elastic#70404) [Security Solution] Add 3rd level breadcrumb to admin page (elastic#71275) [Security Solution][Exceptions] Exception modal bulk close alerts that match exception attributes (elastic#71321) Change signal.rule.risk score mapping from keyword to float (elastic#71126) Added help text where needed on connectors and alert actions UI (elastic#69601) [SIEM][Detections] Value Lists Management Modal (elastic#67068) [test] Skips test preventing promotion of ES snapshot elastic#71582 [test] Skips test preventing promotion of ES snapshot elastic#71555 [ILM] Fix alignment of the timing field (elastic#71273) [SIEM][Detection Engine][Lists] Adds the ability for exception lists to be multi-list queried. (elastic#71540) initial telemetry setup (elastic#69330) [Reporting] Formatting fixes for CSV export in Discover, CSV download from Dashboard panel (elastic#67027) ... # Conflicts: # x-pack/plugins/index_management/public/application/index.tsx
* master: (72 commits) [test] Skips test preventing promotion of ES snapshot elastic#71612 [Logs UI] Remove UUID from Alert Instances (elastic#71340) [Metrics UI] Remove UUID from Alert Instance IDs (elastic#71335) [ML] Functional tests - disable DFA creation and cloning tests [APM] Use status_code field to calculate error rate (elastic#71109) [Observability] Change appLink passing the date range (elastic#71259) [Security] Add Timeline improvements (elastic#71506) adjust vislib bar opacity (elastic#71421) Fix ScopedHistory mock and adapt usages (elastic#71404) [Security Solution] Add hook for reading/writing resolver query params (elastic#70809) [APM] Bug fixes from ML integration testing (elastic#71564) [Discover] Add caused_by.type and caused_by.reason to error toast modal (elastic#70404) [Security Solution] Add 3rd level breadcrumb to admin page (elastic#71275) [Security Solution][Exceptions] Exception modal bulk close alerts that match exception attributes (elastic#71321) Change signal.rule.risk score mapping from keyword to float (elastic#71126) Added help text where needed on connectors and alert actions UI (elastic#69601) [SIEM][Detections] Value Lists Management Modal (elastic#67068) [test] Skips test preventing promotion of ES snapshot elastic#71582 [test] Skips test preventing promotion of ES snapshot elastic#71555 [ILM] Fix alignment of the timing field (elastic#71273) ...
Summary
Checklist
Delete any items that are not applicable to this PR.
For maintainers