-
Notifications
You must be signed in to change notification settings - Fork 111
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
DATA-3345 Update go SDK with exportTabularData #4597
Conversation
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 looking good! Holding off on approving until we get the new Any
type in here. It'll be incommon.go
. I'll notify when the Any
type is available for you to use!
9550ff2
to
1c43a7e
Compare
app/data_client.go
Outdated
Stream pb.DataService_ExportTabularDataClient | ||
} | ||
|
||
// Next gets the next ExportTabularDataReturn. |
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.
Update use of Return
in comments
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.
Just putting this back so that I get a reminder to double check everything once you change the type for MethodParameters
to map[string]interface{}
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.
Sorry for making you go back and forth, but this looks good to me!
@purplenicole730 @katiepeters I updated this PR with the newest API changes. (ComponentName and ComponentType became ResourceName and ResourceSubtype) and (Additional parameters became a structpb, but still returning as a map of string to interfaces) |
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! Admittedly, I only took a quick glance to confirm the changes that you specified.
app/data_client.go
Outdated
@@ -1229,6 +1288,24 @@ func tabularDataFromProto(proto *pb.TabularData, metadata *pb.CaptureMetadata) T | |||
} | |||
} | |||
|
|||
func exportTabularDataReturnFromProto(proto *pb.ExportTabularDataResponse) *ExportTabularDataResponse { |
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.
Nit: rename exportTabularDataResponseFromProto
Looking pretty good now! Will approve once the method is actually available to use |
bcb993d
to
6274a3f
Compare
Hey yall, this PR updates the Go SDK to include the ExportTabularData endpoint.