Skip to content

[Discover] Create data view from sidebar#123391

Merged
majagrubic merged 19 commits intoelastic:mainfrom
majagrubic:discover-new-indexpattern
Jan 31, 2022
Merged

[Discover] Create data view from sidebar#123391
majagrubic merged 19 commits intoelastic:mainfrom
majagrubic:discover-new-indexpattern

Conversation

@majagrubic
Copy link
Copy Markdown
Contributor

@majagrubic majagrubic commented Jan 19, 2022

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.

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:

Risk Probability Severity Mitigation/Notes
Multiple Spaces—unexpected behavior in non-default Kibana Space. Low High Integration tests will verify that all features are still supported in non-default Kibana Space and when user switches between spaces.
Multiple nodes—Elasticsearch polling might have race conditions when multiple Kibana nodes are polling for the same tasks. High Low Tasks are idempotent, so executing them multiple times will not result in logical error, but will degrade performance. To test for this case we add plenty of unit tests around this logic and document manual testing procedure.
Code should gracefully handle cases when feature X or plugin Y are disabled. Medium High Unit tests will verify that any feature flag or plugin combination still results in our service operational.
See more potential risk examples

For maintainers

@majagrubic
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@majagrubic majagrubic added v8.2.0 release_note:feature Makes this part of the condensed release notes Feature:Discover Discover Application labels Jan 20, 2022
@majagrubic majagrubic marked this pull request as ready for review January 20, 2022 13:26
@majagrubic majagrubic requested a review from a team as a code owner January 20, 2022 13:26
@kertal
Copy link
Copy Markdown
Member

kertal commented Jan 24, 2022

@elasticmachine merge upstream

Copy link
Copy Markdown
Member

@kertal kertal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?
Bildschirmfoto 2022-01-24 um 12 01 23

  1. 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.

@kertal
Copy link
Copy Markdown
Member

kertal commented Jan 25, 2022

@elasticmachine merge upstream

@majagrubic
Copy link
Copy Markdown
Contributor Author

majagrubic commented Jan 25, 2022

@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.

@majagrubic
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@ryankeairns
Copy link
Copy Markdown
Contributor

ryankeairns commented Jan 26, 2022

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:

Screen Shot 2022-01-26 at 8 17 57 AM

@majagrubic majagrubic added v8.1.0 and removed v8.2.0 labels Jan 26, 2022
@majagrubic
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

Copy link
Copy Markdown
Contributor

@ryankeairns ryankeairns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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


  1. Add a title (to avoid redundant use of 'data view' text in each link)
  2. Update link text/copy
  3. Remove padding
  4. Increase panel size from s to m

Screen Shot 2022-01-26 at 12 18 00 PM

Maja Grubic added 2 commits January 27, 2022 05:34
Copy link
Copy Markdown
Contributor

@ryankeairns ryankeairns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for merging the design changes.

@kertal
Copy link
Copy Markdown
Member

kertal commented Jan 27, 2022

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?

@majagrubic
Copy link
Copy Markdown
Contributor Author

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 kertal self-requested a review January 28, 2022 07:40
Copy link
Copy Markdown
Member

@kertal kertal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@majagrubic
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@kibana-ci
Copy link
Copy Markdown

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
discover 330.4KB 331.2KB +816.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
discover 51.6KB 51.6KB +32.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@majagrubic majagrubic merged commit 9b20c4f into elastic:main Jan 31, 2022
@kibanamachine kibanamachine added the backport:skip This PR does not require backporting label Jan 31, 2022
@majagrubic majagrubic deleted the discover-new-indexpattern branch January 31, 2022 15:03
@cuff-links cuff-links added v7.17.2 auto-backport Deprecated - use backport:version if exact versions are needed and removed backport:skip This PR does not require backporting labels Mar 10, 2022
@kibanamachine
Copy link
Copy Markdown
Contributor

💔 All backports failed

Status Branch Result
7.17 Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

node scripts/backport --pr 123391

Questions ?

Please refer to the Backport tool documentation

@cuff-links cuff-links added backport:skip This PR does not require backporting and removed v7.17.2 auto-backport Deprecated - use backport:version if exact versions are needed labels Mar 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting Feature:Discover Discover Application release_note:feature Makes this part of the condensed release notes v8.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Discover] Add 'Create index pattern' action to index pattern selector UI

6 participants