-
Notifications
You must be signed in to change notification settings - Fork 487
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
fixes #167: 2 digit lookback (12h, 24h) parsing #168
Conversation
Signed-off-by: golonzovsky <alex.golonzovsky@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #168 +/- ##
==========================================
- Coverage 92.67% 92.62% -0.06%
==========================================
Files 85 85
Lines 1884 1884
Branches 368 368
==========================================
- Hits 1746 1745 -1
- Misses 125 126 +1
Partials 13 13
Continue to review full report at Codecov.
|
@@ -106,7 +106,7 @@ export function submitForm(fields, searchTraces) { | |||
let start; | |||
let end; | |||
if (lookback !== 'custom') { | |||
const unit = lookback[1]; | |||
const unit = lookback.substr(-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.
seems like we need a unit test
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.
added double-digit parse test
Signed-off-by: golonzovsky <alex.golonzovsky@gmail.com>
LGTM |
…racing#168) * fix 2 digit lookback (12h, 24h) parsing Signed-off-by: golonzovsky <alex.golonzovsky@gmail.com> * add double digit lookback options parsing test Signed-off-by: golonzovsky <alex.golonzovsky@gmail.com> Signed-off-by: vvvprabhakar <vvvprabhakar@gmail.com>
fixes #167
current code assumes 1 digit format of lookback options