-
Notifications
You must be signed in to change notification settings - Fork 898
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
GODRIVER-2698 Make Comment fields any-type on all options structs and setters #1454
Merged
Merged
Changes from 16 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
7ccd250
GODRIVER-2698 Make coment field type any on all options structs and s…
prestonvasquez dc105e2
Merge branch 'master' into GODRIVER-2698
prestonvasquez 2454153
GODRIVER-2698 Add comment to find one options
prestonvasquez 592954d
GODRIVER-2386 Make test runner comment-agnostic
prestonvasquez 03f222e
GODRIVER-2698 Remove unused functions
prestonvasquez 3b449e5
Merge branch 'master' into GODRIVER-2698
prestonvasquez 003f9b9
GODRIVER-2698 Revert indexing solution
prestonvasquez ea99f9b
GODRIVER-2698 Decouple find constructor
prestonvasquez 7930589
GODRIVER-2698 Decouple find constructor
prestonvasquez 8b2a76a
GODRIVER-2698 Extend tests
prestonvasquez 7c66958
Merge branch 'master' into GODRIVER-2698
prestonvasquez e107efd
GODRIVER-2698 Update comments to include document
prestonvasquez 78456f6
GODRIVER-2698 Remove opt=nil case
prestonvasquez 6b87758
GODRIVER-2698 Add nil test back
prestonvasquez ff50428
Merge branch 'master' into GODRIVER-2698
prestonvasquez ec3cb97
Merge branch 'master' into GODRIVER-2698
prestonvasquez 66fcfd3
Merge branch 'master' into GODRIVER-2698
prestonvasquez 1316751
Merge branch 'GODRIVER-2698' of github.com:prestonvasquez/mongo-go-dr…
prestonvasquez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
Optional: The explicit indexing is somewhat confusing at first and seems brittle. Is there a reason to do that vs using
append
?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.
The append method causes the following linting error:
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.
@matthewdale Looking at this more closely, I believe that his solution has a pretty insidious bug. Namely if a user passes options like this to the FindOne function: [op1, nil, op2], you would get a runtime fatal. I've updated the PR with a test for this.
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.
Nice find!