-
Notifications
You must be signed in to change notification settings - Fork 8.4k
[Lens] Edit data view in flyout #142362
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
[Lens] Edit data view in flyout #142362
Conversation
…nto inline-data-view-menu
Pinging @elastic/kibana-vis-editors @elastic/kibana-vis-editors-external (Team:VisEditors) |
@flash1293 this works fine. I have 2 questions:
|
…ana into ad-hoc-management-screen-2
Thanks for your review @stratoula !
That was a bug in the data view editor plugin, I fixed it
Good point - I changed the button label to "Continue to use without saving". It was meant to keep it as an ad-hoc data view but update it in-place. |
I also pulled in https://github.com/elastic/kibana/pull/142562/files to fix another problem I noticed with not all parts of the UI updating correctly. |
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.
Thanx @flash1293! This works great now! And thanx for pulling the changes from the other PR too. FYI, I did a latest change there because there were some unit tests failing e84bccb
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.
Code lgtm,
noticed some minor things during testing
src/plugins/data_view_editor/public/components/data_view_editor_flyout_content.tsx
Outdated
Show resolved
Hide resolved
@@ -376,6 +385,17 @@ const IndexPatternEditorFlyoutContentComponent = ({ | |||
<EuiTitle data-test-subj="flyoutTitle"> | |||
<h2>{editData ? editorTitleEditMode : editorTitle}</h2> | |||
</EuiTitle> | |||
{showManagementLink && editData && editData.id && ( |
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 hide it when you edit an ad-hoc data view (now we show it when you edit ad-hoc data view)
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.
Good point, added that
…r_flyout_content.tsx Co-authored-by: Anton Dosov <dosantappdev@gmail.com>
…ana into ad-hoc-management-screen-2
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Public APIs missing comments
Async chunks
Page load bundle
Unknown metric groupsAPI count
History
To update your PR or re-run it, just comment with: |
* add explore matching index * adjust type * move things around * fix types * fix tests * fix imports * fix limit * do not clean datasource on adding ad hoc data view * manage data view in flyout * fix phrase * make sure all changes are propagated correctly * fix test * Update src/plugins/data_view_editor/public/components/data_view_editor_flyout_content.tsx Co-authored-by: Anton Dosov <dosantappdev@gmail.com> * only show for persisted data views Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co> Co-authored-by: Anton Dosov <dosantappdev@gmail.com>
* add explore matching index * adjust type * move things around * fix types * fix tests * fix imports * fix limit * do not clean datasource on adding ad hoc data view * manage data view in flyout * fix phrase * make sure all changes are propagated correctly * fix test * Update src/plugins/data_view_editor/public/components/data_view_editor_flyout_content.tsx Co-authored-by: Anton Dosov <dosantappdev@gmail.com> * only show for persisted data views Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co> Co-authored-by: Anton Dosov <dosantappdev@gmail.com>
Part of #141806
If the app supports it, "Manage this data view" will open the flyout instead of navigating away:

In this case there is a link below the heading to go to the management page if the user wants to do that.
Discover is currently changing the state handling in this area, that's why it's only implemented in Lens for now.