-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Use json number when unmarshalling data from ES #1618
Use json number when unmarshalling data from ES #1618
Conversation
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
Codecov Report
@@ Coverage Diff @@
## master #1618 +/- ##
==========================================
+ Coverage 98.74% 98.74% +<.01%
==========================================
Files 191 191
Lines 9169 9175 +6
==========================================
+ Hits 9054 9060 +6
Misses 89 89
Partials 26 26
Continue to review full report at Codecov.
|
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 - just one minor comment.
if err == nil { | ||
return model.Float64(dKey, f), nil | ||
} | ||
return model.String("", ""), err |
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.
Would it be better to return an error similar to the next line, to provide more context?
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.
+1 I will wrap it
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
Resolves #1236