-
Notifications
You must be signed in to change notification settings - Fork 503
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 more time ranges #971
Add more time ranges #971
Conversation
Add 5,15 and 30 minutes time ranges to the monitor tab Signed-off-by: Gabriel Bernal <gbernal@redhat.com>
Add 5,15 and 30 minutes time ranges to the traces search form Signed-off-by: Gabriel Bernal <gbernal@redhat.com>
3342041
to
084bbe1
Compare
@@ -86,7 +86,11 @@ const AdaptedVirtualSelect = reduxFormFieldAdapter({ | |||
|
|||
const serviceFormSelector = formValueSelector('serviceForm'); | |||
const oneHourInMilliSeconds = 3600000; | |||
const fiveMinutesInMilliSeconds = 300000; |
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 not do oneMinuteInMilliseconds = 60000
then values would be:
5 * oneMinuteInMilliseconds
15 * oneMinuteInMilliseconds
30 * oneMinuteInMilliseconds
?
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.
👍🏽
"label": "Last 5 minutes", | ||
"value": 300000, |
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.
What's the reason for changing the defaults in tests?
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.
my bad, is fixed now.
Codecov Report
@@ Coverage Diff @@
## main #971 +/- ##
==========================================
+ Coverage 95.30% 95.43% +0.13%
==========================================
Files 242 242
Lines 7554 7555 +1
Branches 1890 1837 -53
==========================================
+ Hits 7199 7210 +11
+ Misses 348 338 -10
Partials 7 7
Continue to review full report at Codecov.
|
Signed-off-by: Gabriel Bernal <gbernal@redhat.com>
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.
LGTM
{ label: 'Last 5 minutes', value: oneMinuteInMilliSeconds * 5 }, | ||
{ label: 'Last 15 minutes', value: oneMinuteInMilliSeconds * 15 }, | ||
{ label: 'Last 30 minutes', value: oneMinuteInMilliSeconds * 30 }, |
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.
nit: similar to those below, I would switch the operands to improve readability and consistency. i.e. 5 * oneMinuteInMilliSeconds
, etc.
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.
👍🏽
Signed-off-by: Gabriel Bernal <gbernal@redhat.com>
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.
Thanks!
Which problem is this PR solving?
Short description of the changes
SPM:
Search form: