Skip to content
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

Add modal with details to shard error toast #41649

Merged
merged 39 commits into from
Jul 29, 2019

Conversation

kertal
Copy link
Member

@kertal kertal commented Jul 22, 2019

Summary

When queries fail because of shard errors in discover, visualize, dashboard, the error message contains no details why it failed, which makes it hard to debug the problem. The target of this PR is to add more info to this error

Old version:

Bildschirmfoto 2019-07-22 um 09 46 52

New version:

Bildschirmfoto 2019-07-29 um 16 30 58
Bildschirmfoto 2019-07-23 um 14 27 50

Fixes #5957

Testing

Here's a way to reproduce the error:

PUT repro1

PUT repro1/_mapping 
{
  "properties": {
    "targetfield": {
      "type": "keyword"
    }
  }
}

POST repro1/_doc
{
  "targetfield":"keywordcontent"
}


PUT repro2

PUT repro2/_mapping 
{
  "properties": {
    "targetfield": {
      "type": "text"
    }
  }
}


POST repro2/_doc
{
  "targetfield":"textcontent"
}

GET repro*/_search
{
    "aggs" : {
        "trigger_error" : {
            "terms" : {
                "field" : "targetfield"
            }
        }
    }
}

Add an Index Pattern in Kibana

Create the following Vis:

image

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

- [ ] This was checked for breaking API changes and was labeled appropriately

@kertal kertal self-assigned this Jul 22, 2019
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@kertal kertal changed the title Add details to shard error toast Add modal with details to shard error toast Jul 23, 2019
@kertal kertal added the Team:Visualizations Visualization editors, elastic-charts and infrastructure label Jul 23, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app

@kertal kertal added Feature:Search Querying infrastructure in Kibana enhancement New value added to drive a business result v7.4.0 release_note:enhancement v8.0.0 and removed enhancement New value added to drive a business result labels Jul 23, 2019
@elasticmachine
Copy link
Contributor

💔 Build Failed

@kertal kertal requested a review from myasonik July 24, 2019 06:40
@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@kertal kertal marked this pull request as ready for review July 24, 2019 10:05
@kertal kertal requested review from a team as code owners July 24, 2019 10:05
@kertal kertal requested a review from timroes July 24, 2019 10:08
@kertal
Copy link
Member Author

kertal commented Jul 29, 2019

FYI @cchaos I've fixed the broken display of the DescriptionList by setting the max-width of the list

.shardFailureModal__desc {
    max-width: 686px;
}

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

kertal added 2 commits July 29, 2019 16:38
- align it right
- fix translations
- remove EuiText from description for default toast formatting
Copy link
Contributor

@timroes timroes left a comment

Choose a reason for hiding this comment

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

Tested on Chrome Linux. Code LGTM

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@kertal kertal merged commit e452f43 into elastic:master Jul 29, 2019
kertal added a commit to kertal/kibana that referenced this pull request Jul 30, 2019
* Add details to shard error toast

* Implement failure modal with lots of details

* Add jest tests

* Update core API change because of the new modal Prop 'className'
@kertal
Copy link
Member Author

kertal commented Jul 30, 2019

Thank you all for this great cooperation here!

kertal added a commit that referenced this pull request Jul 30, 2019
* Add details to shard error toast

* Implement failure modal with lots of details

* Add jest tests

* Update core API change because of the new modal Prop 'className'
jughosta added a commit that referenced this pull request Jul 26, 2023
- Closes #156645

## Summary

This PR updates UI of shards error modal.

### Updated design
<img width="500" alt="Screenshot 2023-07-07 at 10 05 00"
src="https://github.com/elastic/kibana/assets/1415710/a099a436-61fd-4522-b231-88a0d1179061">

![Jul-07-2023
10-20-13](https://github.com/elastic/kibana/assets/1415710/23069476-9aae-4c76-9e39-586a382dcf70)



### Before
<img width="500" alt="image 2"
src="https://github.com/elastic/kibana/assets/4016496/d3c067d9-2d18-4fcc-8db0-573defcb9b44">


For testing, please follow instruction from
#41649 and drop `targetfield` on
Lens page.


### Checklist

- [x] 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)
- [x] [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
- [x] 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))
- [x] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

---------

Co-authored-by: Andrea Del Rio <delrio.andre@gmail.com>
Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
ThomThomson pushed a commit to ThomThomson/kibana that referenced this pull request Aug 1, 2023
- Closes elastic#156645

## Summary

This PR updates UI of shards error modal.

### Updated design
<img width="500" alt="Screenshot 2023-07-07 at 10 05 00"
src="https://github.com/elastic/kibana/assets/1415710/a099a436-61fd-4522-b231-88a0d1179061">

![Jul-07-2023
10-20-13](https://github.com/elastic/kibana/assets/1415710/23069476-9aae-4c76-9e39-586a382dcf70)



### Before
<img width="500" alt="image 2"
src="https://github.com/elastic/kibana/assets/4016496/d3c067d9-2d18-4fcc-8db0-573defcb9b44">


For testing, please follow instruction from
elastic#41649 and drop `targetfield` on
Lens page.


### Checklist

- [x] 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)
- [x] [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
- [x] 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))
- [x] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

---------

Co-authored-by: Andrea Del Rio <delrio.andre@gmail.com>
Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported Feature:Search Querying infrastructure in Kibana release_note:enhancement Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.4.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Surface more information for diagnosing shard failures
6 participants