-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Fix Stringer implementation of fingerprint processor #36468
Conversation
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
❕ Build Aborted
Expand to view the summary
Build stats
Steps errorsExpand to view the steps failures
|
This pull request is now in conflicts. Could you fix it? 🙏
|
/test |
This pull request is now in conflicts. Could you fix it? 🙏
|
1 similar comment
This pull request is now in conflicts. Could you fix it? 🙏
|
/test |
Hello @zipperle, |
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
Hi @pierrehilbert, sure, I fixed the linter issues. |
/test |
❕ Build Aborted
Expand to view the summary
Build stats
Steps errorsExpand to view the steps failures
|
❕ Build Aborted
Expand to view the summary
Build stats
Steps errorsExpand to view the steps failures
|
@zipperle did you sign our CLA? |
Setting back to draft in the meantime. |
@pierrehilbert yes I have signed the CLA |
❕ Build Aborted
Expand to view the summary
Build stats
Steps errorsExpand to view the steps failures
|
/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.
Seems reasonable. @ycombinator has a little more experience with the fingerprint processor, maybe he'll notice something I don't.
assert.NoError(t, err) | ||
p, err := New(testConfig) | ||
assert.NoError(t, err) | ||
assert.Equal(t, `fingerprint={"Method":"md5","Encoding":"hex","Fields":["field1"],"TargetField":"fingerprint","IgnoreMissing":false}`, fmt.Sprint(p)) |
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.
Suggest using require.*
instead of assert.*
.
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.
Changes LGTM. Thank you for fixing!
Just made a minor suggestion about the test assertions, that's all.
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
Thx @zipperle we are now all good to be merged! |
Proposed commit message
Fix Stringer implementation of fingerprint processor.
It incorrectly included a function reference in a json.Marshal call.
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Author's Checklist
How to test this PR locally
Related issues
Use cases
Screenshots
Logs