Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Fix workbench issue in backported 1.11 branch: error message cannot display #943

Conversation

chloe-zh
Copy link
Member

Issue #, if available:

Description of changes:

  • Fixed error message display issue
  • Updated unit test

Before:
image

After:
image

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@chloe-zh chloe-zh added bug Something isn't working Workbench labels Dec 16, 2020
@chloe-zh chloe-zh self-assigned this Dec 16, 2020
};
}

// response: IHttpResponse<ResponseData>
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to leave these comments in?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes I added this comment here to remind us that the responses of success and error are of different types

Copy link
Contributor

@davidcui1225 davidcui1225 left a comment

Choose a reason for hiding this comment

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

LGTM- one minor comment

@@ -251,7 +251,8 @@ export class Main extends React.Component<MainProps, MainState> {
};
}

processQueryResponse(response: IHttpResponse<ResponseData>): ResponseDetail<string> {
processQueryResponse(response: any): ResponseDetail<string> {
console.log(response)
Copy link
Contributor

Choose a reason for hiding this comment

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

unnecessary console.log?

Copy link
Member Author

Choose a reason for hiding this comment

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

removed, thanks!

@codecov
Copy link

codecov bot commented Dec 16, 2020

Codecov Report

Merging #943 (ce958d2) into opendistro-1.11-rc3 (cc1e595) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@                  Coverage Diff                   @@
##             opendistro-1.11-rc3     #943   +/-   ##
======================================================
  Coverage                  99.86%   99.86%           
  Complexity                  2320     2320           
======================================================
  Files                        230      230           
  Lines                       5337     5337           
  Branches                     346      346           
======================================================
  Hits                        5330     5330           
  Misses                         5        5           
  Partials                       2        2           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cc1e595...ce958d2. Read the comment docs.

@chloe-zh chloe-zh merged commit cb16013 into opendistro-for-elasticsearch:opendistro-1.11-rc3 Dec 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working Workbench
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants