-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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] Make search_indices index details page as default route in index management #194857
base: main
Are you sure you want to change the base?
[Onboarding] Make search_indices index details page as default route in index management #194857
Conversation
Flaky Test Runner Stats🎉 All tests passed! - kibana-flaky-test-suite-runner#7076[✅] x-pack/test_serverless/api_integration/test_suites/search/common_configs/config.group1.ts: 25/25 tests passed. |
Flaky Test Runner Stats🎉 All tests passed! - kibana-flaky-test-suite-runner#7077[✅] x-pack/test_serverless/api_integration/test_suites/search/common_configs/config.group1.ts: 25/25 tests passed. |
renderRoute: () => { | ||
return '/app/elasticsearch/indices/index_details/'; | ||
}, | ||
}); |
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 we should take the index name and do the full template here. It would allow us to include a default tab.
renderRoute: () => { | |
return '/app/elasticsearch/indices/index_details/'; | |
}, | |
}); | |
renderRoute: ({ indexName }) => { | |
return `/app/elasticsearch/indices/index_details/${indexName}`; | |
}, | |
}); |
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.
updated in 9ab2e9b
const url = extensionsService.indexDetailsPageRoute.renderRoute({ index }); | ||
application.navigateToUrl(`${url}${index.name}`); |
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.
const url = extensionsService.indexDetailsPageRoute.renderRoute({ index }); | |
application.navigateToUrl(`${url}${index.name}`); | |
const url = extensionsService.indexDetailsPageRoute.renderRoute({ indexName: index.name }); | |
application.navigateToUrl(url); |
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.
updated in 9ab2e9b
@@ -30,6 +30,9 @@ export interface IndexBadge { | |||
filterExpression?: string; | |||
color: EuiBadgeProps['color']; | |||
} | |||
export interface IndexDetailsPageRoute { | |||
renderRoute: () => string; |
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.
In the usage this function is taking a variable. We should update this to have an accurate type.
renderRoute: () => string; | |
renderRoute: ({ indexName: string }) => string; |
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.
updated in 9ab2e9b
….com:saarikabhasi/kibana into onboarding/make-search-indices-default-route
history.push(getIndexDetailsLink(index.name, location.search || '')); | ||
} else { | ||
const route = extensionsService.indexDetailsPageRoute.renderRoute(index.name); | ||
application.navigateToUrl(route); |
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.
This will work in serverless but in stateful I think you need to prepend the base path.
application.navigateToUrl(http.basePath.prepend(route));
we could do the http.basePath.prepend(route)
in the renderRoute
function too, we have coreStart
available there.
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.
This will work in serverless but in stateful I think you need to prepend the base path.
Curious, why this wouldn't work in stateful ?
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
Summary
Makes
search_indices
index details page as default route in the index_management plugin list page.index.management.details.page.mov
How to test:
kibana.dev.yml
as this plugin is behind Feature flagindex management
app/app/elasticsearch/indices/index_details/my-index/data
xpack.searchIndices.enabled: false
inkibana.dev.yml
index management
appChecklist
Delete any items that are not applicable to this PR.