-
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
Update incomplete data messaging #169578
Update incomplete data messaging #169578
Conversation
…-ref HEAD~1..HEAD --fix'
…-ref HEAD~1..HEAD --fix'
…-ref HEAD~1..HEAD --fix'
…-ref HEAD~1..HEAD --fix'
…-ref HEAD~1..HEAD --fix'
…-ref HEAD~1..HEAD --fix'
…-ref HEAD~1..HEAD --fix'
…-ref HEAD~1..HEAD --fix'
…-ref HEAD~1..HEAD --fix'
Looking good! Here's a suggestion to match the other empty prompts we show in Discover. Can you change the type of the button to use EuiButton instead? @nreese can you let me know how this popover works? Could we add any more metadata to let the user know the difference between the options? (e.g. predecessor #1, predecessor #2, etc.) |
@elasticmachine merge upstream |
…-ref HEAD~1..HEAD --fix'
…-ref HEAD~1..HEAD --fix'
Empty prompt now displays an EuiButton
Duplicate request names are now suffixed with a count to avoid duplicate text in UI. |
…-ref HEAD~1..HEAD --fix'
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Public APIs missing exports
Page load bundle
Unknown metric groupsasync chunk count
ESLint disabled line counts
Total ESLint disabled count
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!
The problem is that the component does not have any context about the requests (like order). Request creators need to provide meaningful names because they have required context. In this case, that would be up to Discover to provide sequential naming, or better yet - timestamped names. I would consider this outside the scope of this PR and a fix that @elastic/kibana-data-discovery team could make later. |
@kertal or @davismcphee can we please track this need somewhere? I'll approve now but want to make sure this doesn't get lost. |
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.
Design changes LGTM. Hoping for follow-up to improve the View details
popover in Surrounding Documents cc @elastic/kibana-data-discovery
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.
Works for me! Thanks! (code review for visualizations code)
@andreadelrio @nreese created an issue here: #170089. |
## Summary Looks like a stray `0` snuck into Surrounding Documents as part of #169578. This PR removes it: <img width="447" alt="surrounding_docs_0" src="https://github.com/elastic/kibana/assets/25592674/0eb9d88d-36b9-44df-a193-ebd6b2cf2468"> ### Checklist Delete any items that are not applicable to this PR. - [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md) - [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials - [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [ ] Any UI touched in this PR is usable by keyboard only (learn more about [keyboard accessibility](https://webaim.org/techniques/keyboard/)) - [ ] Any UI touched in this PR does not create any new axe failures (run axe in browser: [FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/), [Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US)) - [ ] If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the [docker list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker) - [ ] This renders correctly on smaller devices using a responsive layout. (You can test this [in your browser](https://www.browserstack.com/guide/responsive-testing-on-local-server)) - [ ] This was checked for [cross-browser compatibility](https://www.elastic.co/support/matrix#matrix_browsers) ### For maintainers - [ ] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
Closes #167906
PR breaks monolith component
<SearchResponseWarnings/>
into 3 separate components:<SearchResponseWarningsBadge/>
,<SearchResponseWarningsCallout/>
, and<SearchResponseWarningsEmptyPrompt/>
. These components are designed to display a single messages when provided warnings from multiple requests and display better messaging around partial results. PR also removesmessage
fromSearchResponseWarning
type.Collaborated with @gchaps on copy.
Test setup
kibana_sample_data*
timestamp
Search response warnings callout
Search response warnings empty prompt
DistanceKilometers is -1
Search response warnings badge
Search response warnings toast