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

impl(bigquery): Fixed jobs and tables response for empty use case #14938

Merged

Conversation

jsrinnn
Copy link
Collaborator

@jsrinnn jsrinnn commented Jan 15, 2025

This PR fixes the jobs and tables response for the usecase when no jobs or tables returned from the server for the calling account.

Before the fix, the API response for jobs.list and tables.listassumed that the "jobs" and "tables" json keys will always be provided by the server. From our testing this was not the case.

This PR fixes the above and adds unit test cases.


This change is Reviewable

@product-auto-label product-auto-label bot added the api: bigquery Issues related to the BigQuery API. label Jan 15, 2025
Copy link

codecov bot commented Jan 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.90%. Comparing base (51e05fe) to head (c26c481).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #14938      +/-   ##
==========================================
- Coverage   92.91%   92.90%   -0.01%     
==========================================
  Files        2351     2351              
  Lines      209823   209833      +10     
==========================================
+ Hits       194949   194953       +4     
- Misses      14874    14880       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jsrinnn jsrinnn marked this pull request as ready for review January 15, 2025 19:33
@jsrinnn jsrinnn requested a review from a team as a code owner January 15, 2025 19:33
@jsrinnn jsrinnn merged commit a8c2e9d into googleapis:main Jan 16, 2025
73 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the BigQuery API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants