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

fixes #167: 2 digit lookback (12h, 24h) parsing #168

Merged
merged 2 commits into from
Jan 15, 2018
Merged

fixes #167: 2 digit lookback (12h, 24h) parsing #168

merged 2 commits into from
Jan 15, 2018

Conversation

golonzovsky
Copy link
Contributor

@golonzovsky golonzovsky commented Jan 13, 2018

fixes #167

current code assumes 1 digit format of lookback options

Signed-off-by: golonzovsky <alex.golonzovsky@gmail.com>
@codecov
Copy link

codecov bot commented Jan 13, 2018

Codecov Report

Merging #168 into master will decrease coverage by 0.05%.
The diff coverage is 100%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
src/components/SearchTracePage/TraceSearchForm.js 86.66% <100%> (ø) ⬆️
...neViewer/TimelineHeaderRow/TimelineViewingLayer.js 88.88% <0%> (-1.86%) ⬇️

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 c8387b0...5db4d6a. Read the comment docs.

@@ -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);
Copy link
Member

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

Copy link
Contributor Author

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>
@tiffon
Copy link
Member

tiffon commented Jan 15, 2018

LGTM

@tiffon tiffon merged commit da464e5 into jaegertracing:master Jan 15, 2018
vvvprabhakar pushed a commit to vvvprabhakar/jaeger-ui that referenced this pull request Jul 5, 2021
…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>
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.

12 and 24 hour search lookbacks not converted to start timestamp correctly
3 participants