-
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
[Index Management] Fix broken app links #71007
[Index Management] Fix broken app links #71007
Conversation
Pinging @elastic/es-ui (Team:Elasticsearch UI) |
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 didn't really review the code, just glanced through out of curiosity and had one comment.
@@ -153,7 +158,13 @@ export const TabSummary: React.FunctionComponent<Props> = ({ templateDetails }) | |||
</EuiDescriptionListTitle> | |||
<EuiDescriptionListDescription> | |||
{ilmPolicy && ilmPolicy.name ? ( | |||
<EuiLink href={getILMPolicyPath(ilmPolicy.name)}>{ilmPolicy.name}</EuiLink> | |||
<EuiLink |
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.
Just a note that we need an href
here too, so users can copy the url or open the link in a new tab. If you grep for reactRouterNavigate
you can see how we use this utility in various plugins to provide both an href and an onClick.
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.
@cjcenizal thanks for pointing this out! From what I can see, reactRouterNavigate
doesn't work when navigating to other apps. I came across #67697, which suggests using history.parentHistory
. This would work, however, it is private in ScopedHistory
. I will change it back to a href
for now, but there will be a full page refresh.
💚 Build SucceededBuild metrics
History
To update your PR or re-run it, just comment with: |
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.
Tested locally and code changes look good! Great work @alisonelizabeth !
In ILM and CCR, you should be able to view related indices. This appears to be a regression of #67940.
I'm not 100% on how the regression came from that particular PR - looks like I'm missing something! Was it because of the introduction of includeHiddenIndices?
Thanks for the review @jloleysens!
It looks like you changed the way we get the filter value. So instead of |
This PR fixes some broken cross-app linking in Index Management.
When an index template has an associated ILM policy, the link in the details panel should direct the user to ILM.
In ILM and CCR, you should be able to view related indices. This appears to be a regression of [Index Management] Add data streams functionality to indices tab #67940.
ILM
CCR
Other changes:
I also noticed we have both a
navigation
androuting
file. I combined these into one file; let me know if there are any objections.