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

[Reporting] Fix TypeError with pending job info #43924

Merged
merged 7 commits into from
Aug 28, 2019

Conversation

tsullivan
Copy link
Member

Closes #42484 #42895

@tsullivan tsullivan added review release_note:fix (Deprecated) Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead v8.0.0 Team:Stack Services v7.4.0 labels Aug 23, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-stack-services

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@@ -77,8 +73,21 @@ export class ReportInfoButton extends Component<Props, State> {

const jobType = info.jobtype || NA;

// TODO queue method (clicked UI, watcher, etc)
Copy link
Member Author

Choose a reason for hiding this comment

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

I removed this TODO because it's been talked about before, but never seemed essential

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@nreese nreese left a comment

Choose a reason for hiding this comment

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

Changes look good. Thanks for adding tests.

Only thing I noticed is that ReportInfoButton component contains several strings that are not wrapped in i18n translations like "unknown", "n/a", "Width: ${width} x Height: ${height}", "Job Info", all JobInfoMap titles, and "Unable to fetch report info".

lgtm
code review

@tsullivan
Copy link
Member Author

Only thing I noticed is that ReportInfoButton component contains several strings that are not wrapped in i18n translations like "unknown", "n/a", "Width: ${width} x Height: ${height}", "Job Info", all JobInfoMap titles, and "Unable to fetch report info".

Good call @nreese! This has come up before in Reporting code: #42873 That issue has come up once in a Stack Services sync as something that could be tackled by a non-expert in Reporting code.

Things move fast!

@tsullivan tsullivan merged commit 1a0dc65 into elastic:master Aug 28, 2019
@tsullivan tsullivan deleted the tests/reporting-listing branch August 28, 2019 05:45
tsullivan added a commit to tsullivan/kibana that referenced this pull request Aug 28, 2019
* fix typeerror and typescript warnings

* add test for report listing

* get a relevant snapshot to test with

* fix debug diff

* remove unnecessary change
tsullivan added a commit that referenced this pull request Aug 30, 2019
* fix typeerror and typescript warnings

* add test for report listing

* get a relevant snapshot to test with

* fix debug diff

* remove unnecessary change
tsullivan added a commit to tsullivan/kibana that referenced this pull request Sep 19, 2019
* fix typeerror and typescript warnings

* add test for report listing

* get a relevant snapshot to test with

* fix debug diff

* remove unnecessary change
tsullivan added a commit that referenced this pull request Sep 19, 2019
* fix typeerror and typescript warnings

* add test for report listing

* get a relevant snapshot to test with

* fix debug diff

* remove unnecessary change
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
(Deprecated) Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead release_note:fix review v7.4.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Reporting/Tests] React component unit tests needed for report job listing
3 participants