[Discover] Create data view from sidebar#123391
Conversation
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
src/plugins/discover/public/application/main/components/layout/discover_layout.tsx
Outdated
Show resolved
Hide resolved
src/plugins/discover/public/application/main/components/sidebar/discover_sidebar_responsive.tsx
Show resolved
Hide resolved
There was a problem hiding this comment.
Tested a-la-carte and works as expected, Safari, Chrome, it's a great addition! 🥳
One question, shouldn't we start with this action in the popover?

- create a data view, 2. add a field, 3. manage fields .... that order feels better to me subjectively, because it's what u usually do in case you wanna create a data view.
|
@elasticmachine merge upstream |
|
@kertal think this was originally introduced to make addition/editing of runtime fields easier. in my opinion, that's the primary use of the dropdown, and creating a data view is just a bonus. but I'll let @ryankeairns weigh in on this one. |
|
@elasticmachine merge upstream |
|
The way I 'read' it, you are currently in a selected data view. I would start with the actions that pertain to the current state/selection, then lastly place the option to change the state (i.e. create a new data view) To that point, I would even add a divider after the top two actions. Here is an example of the divider usage in Canvas: |
|
@elasticmachine merge upstream |
There was a problem hiding this comment.
Thanks for adding this. After reviewing the UI changes, I would like to request a few changes. These also align with the forthcoming Unified Search efforts.
👉 These can be found in this design PR and merged at your convenience: majagrubic#5
- Add a title (to avoid redundant use of 'data view' text in each link)
- Update link text/copy
- Remove padding
- Increase panel size from
stom
Design tweaks for Discover new data view
ryankeairns
left a comment
There was a problem hiding this comment.
Thanks for merging the design changes.
|
ACK but won't make it to start a final test today ... qq: should't this be 8.2. ... to walk hand in hand with adding it to Lens? |
|
I don't see a reason why it wouldn't make 8.1, but if you think it makes more sense to wait for 8.2, that's fine as well. |
kertal
left a comment
There was a problem hiding this comment.
LGTM, this is super-nice, with the latest changes there's also a clear structure. Great work!
So about 8.1 or 8.2 ... from Discover side 8.1 @shaunmcgough ... only I wonder if we should align with Lens, which will follow in 8.2, right @ghudgins @flash1293
|
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |


Summary
Closes: #111158
This PR adds "Create new data view" option from the existing data view actions dropdown in Discover.
Checklist
Delete any items that are not applicable to this PR.
- [ ] Documentation was added for features that require explanation or tutorials~- [ ] If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the docker list
Risk Matrix
Delete this section if it is not applicable to this PR.
Before closing this PR, invite QA, stakeholders, and other developers to identify risks that should be tested prior to the change/feature release.
When forming the risk matrix, consider some of the following examples and how they may potentially impact the change:
For maintainers