-
Notifications
You must be signed in to change notification settings - Fork 53
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-3443: Add export_tabular_data to data client #800
base: main
Are you sure you want to change the base?
Conversation
src/viam/app/data_client.py
Outdated
request = ExportTabularDataRequest( | ||
part_id=part_id, resource_name=resource_name, resource_subtype=resource_subtype, method_name=method_name, interval=interval | ||
) | ||
return await self._data_client.ExportTabularData(request, metadata=self._metadata) |
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.
ExportTabularDataResponse
has a lot of data in it that is maybe not needed? Which fields on the response would the user actually care about? Is it only the payload
? Or also tags
?
payload
is a proto.Struct, which has really bad UI. We should avoid using that where we can, so we should determine what's actually important to return
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.
There's a note in the scope to optionally only return the payload in the future. As for the comment regarding proto.Struct, probably best for us to talk in person, so I'll wander over to your area again at some point!
This PR adds the new Data endpoint ExportTabularData to the python SDK.