Skip to content
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

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

katiepeters
Copy link
Member

@katiepeters katiepeters commented Dec 11, 2024

This PR adds the new Data endpoint ExportTabularData to the python SDK.

@katiepeters katiepeters marked this pull request as ready for review December 12, 2024 17:14
@katiepeters katiepeters requested a review from a team as a code owner December 12, 2024 17:14
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)
Copy link
Member

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

Copy link
Member Author

@katiepeters katiepeters Dec 12, 2024

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!

@katiepeters katiepeters requested review from vijayvuyyuru, a team and purplenicole730 and removed request for a team December 12, 2024 19:06
@katiepeters katiepeters requested a review from njooma December 12, 2024 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants