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 error icon to errored services in trace list view #927

Merged

Conversation

jaskerv
Copy link
Contributor

@jaskerv jaskerv commented Apr 13, 2022

Which problem is this PR solving?

Resolves #925

Short description of the changes

  • Add an error icon to errored services in ResultItem.tsx.
    image
  • Refactor existing constants to state.

Jono Yan added 3 commits April 13, 2022 10:25
…actor existing constants to state.

Signed-off-by: Jono Yan <jonoy@canva.com>
Signed-off-by: Jono Yan <jonoy@canva.com>
Signed-off-by: Jono Yan <jonoy@canva.com>
return hasError;
}).length;

this.state = {
Copy link
Member

Choose a reason for hiding this comment

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

just curious, how/where is this .state field associated with the State type?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

export default class ResultItem extends React.PureComponent<Props, State> {

It is associated here :)

@codecov
Copy link

codecov bot commented Apr 13, 2022

Codecov Report

Merging #927 (43f8704) into main (53da5e6) will increase coverage by 0.17%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #927      +/-   ##
==========================================
+ Coverage   95.25%   95.43%   +0.17%     
==========================================
  Files         240      240              
  Lines        7510     7518       +8     
  Branches     1883     1886       +3     
==========================================
+ Hits         7154     7175      +21     
+ Misses        350      337      -13     
  Partials        6        6              
Impacted Files Coverage Δ
...nents/SearchTracePage/SearchResults/ResultItem.tsx 100.00% <100.00%> (+11.11%) ⬆️
...mponents/TracePage/TraceStatistics/tableValues.tsx 97.58% <0.00%> (+3.79%) ⬆️

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 53da5e6...43f8704. Read the comment docs.

@yurishkuro
Copy link
Member

Could you please add or modify a unit test to add coverage the new conditional code?

Jono Yan added 2 commits April 13, 2022 13:29
Signed-off-by: Jono Yan <jonoy@canva.com>
Signed-off-by: Jono Yan <jonoy@canva.com>
@jaskerv jaskerv requested a review from yurishkuro April 13, 2022 03:44
@yurishkuro yurishkuro merged commit 60f1bc8 into jaegertracing:main Apr 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Highlight services that has error in trace list view
2 participants