-
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
[data view mgmt] change urls from indexPatterns to dataViews #114912
[data view mgmt] change urls from indexPatterns to dataViews #114912
Conversation
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.
maps changes LGTM
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.
LGTM! thanks @mattkime 🚀 🎸
ML changes LGTM 🎉 |
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.
KibanaVisEditors changes LGTM, I tested it locally and redirects seem to work fine :)
@@ -57,3 +58,5 @@ export const ManagementRouter = memo( | |||
</Router> | |||
) | |||
); | |||
|
|||
// |
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.
nit: I think that this has been added by accident.
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 PR is introducing specific hacks for one use case in the otherwise generic management framework which I think is the wrong way to implement this.
what about keeping an “indexpattern” management app registered which, on mount, simply redirects to the dataviews app? This is how we solved this for forwarding legacy “app/kibana” calls to “app/dashboards”, “app/visualize” and so on.
similar for the capabilities thing - maybe we should slightly extend the “app” definition here to allow a separate capability key which is not app.id ?
@flash1293 We could do that but we'd need to devise a way to prevent the management app from being shown in the sidebar. What do you think? I think I'd prefer to keep this as is until there are more instances of management redirects. This isn't a 'clean' way of doing things but its simpler than implementing a more generic solution. |
@mattkime Good point about hiding the redirect app, but I it's worth making redirects and capabilities under another id a concept of the |
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.
@Dosant Looks like you found a better way to find instances of these urls in the code base than I had used. I don't see a need to get all of them due to the redirects. I'd rather not expand the scope of this PR since I'm trying to get this merged by EOD tomorrow since I'm out next week. The additional urls could be addressed in a follow up. |
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 that redirect works as expected. Also tested without needed mgmt capabilities.
only remark: #114912 (comment)
💚 Build Succeeded
Metrics [docs]Async chunks
Page load bundle
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.
LGTM, thanks for making these changes @mattkime ! Tested and both redirect and disabled capability works fine.
Summary
Changing data view management urls from
indexPatterns
todataViews
. Includes redirects for old urls.