-
Notifications
You must be signed in to change notification settings - Fork 527
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
Monitor Tab - error rates - yDomain #913
Monitor Tab - error rates - yDomain #913
Conversation
Signed-off-by: nofar9792 <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #913 +/- ##
==========================================
- Coverage 95.29% 95.26% -0.03%
==========================================
Files 240 240
Lines 7497 7502 +5
Branches 1870 1871 +1
==========================================
+ Hits 7144 7147 +3
- Misses 347 349 +2
Partials 6 6
Continue to review full report at Codecov.
|
@@ -132,7 +132,7 @@ export class OperationTableDetails extends React.PureComponent<TProps, TState> { | |||
<REDGraph | |||
dataPoints={row.dataPoints.service_operation_error_rate} | |||
color="#CD513A" | |||
yDomain={[0, 100]} | |||
yDomain={[0, 1]} |
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.
why is it that we have different yDomain in those two different files even though they both deal with error rate? Can we not converge on the same display methodology?
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.
in the main graph, we want to show values in percentages.
The value we get are between 1 to 100.
ini the operation table, the user doesn't see the values/legend, so it is easier just to change the yDomain
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.
That doesn't really answer my question - why have two different ways when we can have one?
To put it differently, as a way of blameless postmortem to the original change where you say "I made a mistake" - I think having a single representation would help avoiding such mistakes.
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.
multiple the values in the operation table will make the code more complex, I thought that in this case, it's better just to change the yDomain and not change the all the values
Signed-off-by: nofar9792 [email protected]
Which problem is this PR solving?
Resolves #912
Short description of the changes
I changed the wrong yDomain.
![image](https://user-images.githubusercontent.com/11076023/158413468-5aedf147-bf75-4ca2-9a99-7f5b79f3f123.png)
it affected the main error graph domain
before:
after:
![image](https://user-images.githubusercontent.com/11076023/158413497-bbbef83e-be1f-492f-9693-8cc23a6f332c.png)