-
Notifications
You must be signed in to change notification settings - Fork 891
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-2976 Remove deprecated BSON code (phase 1) #1410
Conversation
API Change Report./bsonincompatible changes##(*Decoder).Reset: changed from func(./bson/bsonrw.ValueReader) error to func(./bson/bsonrw.ValueReader) |
d29ee0a
to
c7f3a17
Compare
5d924e9
to
d9a1e55
Compare
999bdd8
to
6409678
Compare
3c6dfdb
to
6cc5e96
Compare
6cc5e96
to
02284e7
Compare
720f32b
to
50c8cf1
Compare
50c8cf1
to
99c10fd
Compare
bson/bson_test.go
Outdated
buf := new(bytes.Buffer) | ||
enc := new(Encoder) |
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.
It's technically safe to share the buffer and Encoder
in this case, but it creates an opportunity for unexpected interaction between test cases. We should initialize these values in the test case funcs.
bson/marshal_test.go
Outdated
buf := new(bytes.Buffer) | ||
enc := new(Encoder) |
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.
We should initialize these values in the test case funcs.
bson/marshal_test.go
Outdated
buf := new(bytes.Buffer) | ||
enc := new(Encoder) |
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.
We should initialize these values in the test case funcs.
@@ -148,7 +148,7 @@ func executeBucketDownloadByName(ctx context.Context, operation *operation) (*op | |||
case "filename": | |||
filename = val.StringValue() | |||
case "revision": | |||
opts.SetRevision(val.AsInt32()) | |||
opts.SetRevision(int32(val.AsInt64())) |
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.
Check this conversion to make sure it doesn't overflow.
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, with changes requested by @matthewdale 👍
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.
Looks good! 👍
GODRIVER-2976
Summary
Phase 1 of the deprecation to limit the files to reviewing one time.
Background & Motivation