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

Add includeBinary to data funcs #330

Merged
merged 2 commits into from
Jan 23, 2025
Merged

Conversation

njooma
Copy link
Member

@njooma njooma commented Jan 22, 2025

BREAKING CHANGE
We were missing the param to actually download the data. In the process of changing that, I had to change the return type of binaryDataByIDs since the user can request just the count now.

As a flyby, I fixed binaryDataByFilter to actually use countOnly

@njooma njooma requested a review from katiepeters January 22, 2025 20:31
@njooma njooma requested a review from a team as a code owner January 22, 2025 20:31
final response = await dataClient.binaryDataByIds(ids);
expect(response, equals(data));
final response = await dataClient.binaryDataByIds(ids, includeBinary: true);
expect(response.data, equals(data));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we not test response.count as well now that the response has changed?

@njooma njooma merged commit d3719aa into viamrobotics:main Jan 23, 2025
4 checks passed
@njooma njooma deleted the include-binary-data branch January 23, 2025 19:09
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.

3 participants