-
Notifications
You must be signed in to change notification settings - Fork 209
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
bugfix - resolve issue #1155 #1156
bugfix - resolve issue #1155 #1156
Conversation
core/util/util.go
Outdated
//// Jsonpath library converts large int into a string with scientific notion, the following | ||
//// reverts that process to avoid mismatching when using the jsonpath result for csv data lookup | ||
//floatResult, err := strconv.ParseFloat(result, 64) | ||
//// if the string is a float and a whole number | ||
//if err == nil && floatResult == float64(int64(floatResult)) { | ||
// intResult := int(floatResult) | ||
// result = strconv.Itoa(intResult) | ||
//} |
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.
but this introduces another issue...
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.
This is not correct way to do things. I am not sure why we added this bad alternative to that problem.
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.
so what would be the correct way?
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.
@tommysitu is that change still needed?
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.
yes, it's needed. By commenting it out, several tests will fail, eg. Test_ApplyTemplate_PutAndGetValue
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.
@tommysitu I have added handling for it.
Resolves #1155