(fix) Indeterminate verification issue in Clickup detector#4047
Merged
nabeelalam merged 6 commits intoApr 17, 2025
Merged
Conversation
some code refactoring.
ahrav
approved these changes
Apr 14, 2025
|
|
||
| for _, match := range matches { | ||
| resMatch := strings.TrimSpace(match[1]) | ||
| for resMatch, _ := range uniqueMatches { |
Contributor
There was a problem hiding this comment.
nit: Looks like the linter isn't a huge fan of the blank identifier here. We can get rid of it since we only need the key from the map.
Contributor
Author
There was a problem hiding this comment.
Strange part is my golangci-lint version is not raising this issue.
kashifkhan0771
approved these changes
Apr 15, 2025
Contributor
|
Suggestion: We can update the integration test for the failed verification with error case: |
Contributor
Author
I have added the test case failed verification error. |
nabeelalam
reviewed
Apr 17, 2025
| s := Scanner{} | ||
| got, err := s.FromData(tt.args.ctx, tt.args.verify, tt.args.data) | ||
| // s := Scanner{} | ||
| got, err := tt.s.FromData(tt.args.ctx, tt.args.verify, tt.args.data) |
Contributor
There was a problem hiding this comment.
I think this commented line can be removed
removed commented code from integration test.
nabeelalam
approved these changes
Apr 17, 2025
nabeelalam
left a comment
Contributor
There was a problem hiding this comment.
Looks great. Thanks @abmussani
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
This PR covers all the cases which can cause indeterminate verification issue in Clickup Detector. Also, I noted that Clickup has a very little modification in its token structure.
Checklist:
make test-community)?make lintthis requires golangci-lint)?