-
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
[Onboarding] Stack - update index management breadcrumbs #209599
base: main
Are you sure you want to change the base?
[Onboarding] Stack - update index management breadcrumbs #209599
Conversation
check extensionService value in index_list
15172fd
to
42e6684
Compare
Flaky Test Runner Stats🟠 Some tests failed. - kibana-flaky-test-suite-runner#7833[❌] x-pack/test/functional_search/config.ts: 0/25 tests passed. |
…b.com:saarikabhasi/kibana into onboarding/update-breadcrumbs-indexmanagement
Flaky Test Runner Stats🟠 Some tests failed. - kibana-flaky-test-suite-runner#7834[❌] x-pack/test/functional_search/config.ts: 0/25 tests passed. |
...m/plugins/shared/index_management/public/application/sections/home/index_list/index_list.tsx
Outdated
Show resolved
Hide resolved
x-pack/platform/plugins/shared/index_management/public/application/services/breadcrumbs.ts
Outdated
Show resolved
Hide resolved
a73ede5
to
b5ed052
Compare
Flaky Test Runner Stats🟠 Some tests failed. - kibana-flaky-test-suite-runner#7961[❌] x-pack/test/functional_solution_sidenav/config.ts: 0/25 tests passed. |
…b.com:saarikabhasi/kibana into onboarding/update-breadcrumbs-indexmanagement
@mattkime I have updated this PR and is ready for review. In this solution, search_indices plugin registers a new application for index management app and the breadcrumbs logic is handled via search indices plugin. Could you please take a look again, thanks! |
…b.com:saarikabhasi/kibana into onboarding/update-breadcrumbs-indexmanagement
Flaky Test Runner Stats🟠 Some tests failed. - kibana-flaky-test-suite-runner#7967[✅] x-pack/test/functional_solution_sidenav/config.ts: 25/25 tests passed. |
…b.com:saarikabhasi/kibana into onboarding/update-breadcrumbs-indexmanagement
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Module Count
Public APIs missing comments
Async chunks
Page load bundle
Unknown metric groupsAPI count
async chunk count
History
|
Flaky Test Runner Stats🟠 Some tests failed. - kibana-flaky-test-suite-runner#7974[❌] x-pack/test_serverless/functional/test_suites/search/common_configs/config.group1.ts: 1/25 tests passed. |
Flaky Test Runner Stats🟠 Some tests failed. - kibana-flaky-test-suite-runner#7978[❌] x-pack/test_serverless/functional/test_suites/search/common_configs/config.group1.ts: 22/25 tests passed. |
This seems to be unrelated failures, retrying build succeeds failed FTRs and I cannot reproduce the errors locally. |
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.
I'm mostly curious about the relationship between ManagementAppMountParams and SearchIndicesAppMountParams types. I think they should be the same unless there's something I'm missing.
@@ -129,7 +130,7 @@ export async function mountManagementSection({ | |||
}: { | |||
coreSetup: CoreSetup<StartDependencies>; | |||
usageCollection: UsageCollectionSetup; | |||
params: ManagementAppMountParams; | |||
params: ManagementAppMountParams | SearchIndicesAppMountParams; |
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.
I left another similar comment before, got a bit confused and deleted it BUT - I'm confused why there needs to be different types here. It seems like they should be the same or at least extremely similar.
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.
SearchIndicesAppMountParams
is a subset of ManagementAppMountParams
. The ManagementAppMountParams has few required field which would be undefined when mounting from search_indices
plugin. This would cause type_check error.
Also from the code, I understand those fields are not used by mount_management_section in index management.
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.
I think other way to simplify, is to create a new type IndexManagementAppMountParams
which is a subset of ManagementAppMountParams and replace mount_management_section to use this type instead of ManagementAppMountParams. I will try that and confirm nothing breaks and update this PR
…b.com:saarikabhasi/kibana into onboarding/update-breadcrumbs-indexmanagement
Summary
Requirement:
In stack and when its search solution space, we need to update search index details breadcrumbs, when navigated via Content -> Index Management :
Content / Index Management / Indices
Content / Index Management / indices / <index_name>
Stack management
from the breadcrumbIn Classic nav, index management index details page breadcrumbs will have no change
Solutions
Currently, Index management app is rendered from management_app. The management app sets breadcrumbs for all the dependant apps. The easiest way to implement is to set breadcrumbs based on active solution type -
es
but this would alter breadcrumbs when index management app is rendered from side nav footer ( management -> index management) and other related management apps as well.Other options is to modify setBreadcrumbs in ManagementAppMountParams but the setBreadcrumbs is used by multiple other apps.
In this PR, index management app is mounted via search indices plugin. In this way we can customize breadcrumbs for index management when rendered from search_indices plugin. When its search solution type, index management app will work independently from management app.
Screenshots
Search solution Nav - Changed breadcrumb ( dropped stack management & added index name)
Serverless
Note: No change in functionality from this PR. Added for additional info
index details page breadcrumbs should be
Data/ Index Management / Indices/<index_name>
index list page breadcrumbs should be
Data/ Index Management / Indices/
Serverless Details page

Checklist
Check the PR satisfies following conditions.
Reviewers should verify this PR satisfies this list as well.