Skip to content

fix: paginated response items#3431

Merged
coryan merged 5 commits intogoogleapis:mainfrom
coryan:chore-update-sidekick-version
Sep 29, 2025
Merged

fix: paginated response items#3431
coryan merged 5 commits intogoogleapis:mainfrom
coryan:chore-update-sidekick-version

Conversation

@coryan
Copy link
Copy Markdown
Collaborator

@coryan coryan commented Sep 29, 2025

This fixes a bug in the generated code for a few clients: in paginated
responses we should use the first eligible field for the items.

Fixes #3430

This fixes a bug in the generated code for a few clients: in paginated
responses we should use the first eligible field for the items.
@coryan coryan marked this pull request as ready for review September 29, 2025 16:20
@coryan coryan requested a review from a team September 29, 2025 16:20
@codecov
Copy link
Copy Markdown

codecov bot commented Sep 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.18%. Comparing base (21aa2d2) to head (7407164).
⚠️ Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3431      +/-   ##
==========================================
+ Coverage   96.15%   96.18%   +0.02%     
==========================================
  Files         116      116              
  Lines        4583     4583              
==========================================
+ Hits         4407     4408       +1     
+ Misses        176      175       -1     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

codyoss
codyoss previously approved these changes Sep 29, 2025
#[doc(hidden)]
impl gax::paginator::internal::PageableResponse for InstancesListResponse {
type PageItem = crate::model::DatabaseInstance;
type PageItem = crate::model::ApiWarning;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't think we should merge this as-is.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Agree, I implemented the override for SQL admin and regenerated the code, PTAL.

@coryan coryan changed the title chore: update sidekick version fix: paginated response items Sep 29, 2025
@coryan coryan merged commit 614dfd0 into googleapis:main Sep 29, 2025
25 checks passed
@coryan coryan deleted the chore-update-sidekick-version branch September 29, 2025 22:56
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.

Wrong field in paginated responses

3 participants