Repository navigation
fix(source-google-analytics-data-api): fix offset pagination - #83318
Bhupesh Cholake (RealBhupesh) wants to merge 2 commits into
Conversation
👋 Welcome to Airbyte!Thank you for your contribution from RealBhupesh/airbyte! We're excited to have you in the Airbyte community. If you have any questions, feel free to ask in the PR comments or join our Slack community. 💡 Show Tips and TricksPR Slash CommandsAs needed or by request, Airbyte Maintainers can execute the following slash commands on your PR:
Tips for Working with CI
📚 Show Repo GuidanceHelpful Resources
|
|
↪️ Triggering Reason: Community PR, opened ready-for-review, with no AI pipeline stage on record. Note on CI: the failing checks ( Thanks for the contribution! |
Reviewing PR for connector safety and quality.
|
🛡️ AI PR Review Report🔴 Review Action: REQUEST CHANGES
|
| Gate | Status | Enforced? | Details |
|---|---|---|---|
| PR Hygiene | PASS | Yes | Description is substantive; changelog row added for 2.9.46; no unresolved human review comments. |
| Code Hygiene | WARNING | WARNING | manifest.yaml modified; no test files modified. |
| Test Coverage | FAIL | Yes | Behavioral change (title fix(...), links Fixes #82766) with zero test files in the diff. |
| Code Security | PASS | Yes | No auth/credential/token paths touched; no security keywords in the diff hunks. |
| Per-Record Performance | PASS | WARNING | No per-record processing code changed; paginator config only. |
| Breaking Dependencies | PASS | WARNING | No dependency or build files modified. |
| Backwards Compatibility | PASS | Yes (enforced) | No spec, schema, stream, primary-key, cursor-field, or format changes; metadata.yaml diff is a patch version bump only. |
| Forwards Compatibility | FAIL | Warning (elevates Risk Level) | Pagination keywords in diff hunks with no tests or state-migration evidence. |
| Behavioral Changes | FAIL | Warning (elevates Risk Level) | page_size present in diff hunks. |
| Out-of-Scope Changes | PASS | Skip | All changes are under airbyte-integrations/connectors/** and docs/**. |
| CI Checks | FAIL | Yes | Test source-google-analytics-data-api Connector [No Creds] failed. Test failure expected for community PR without credentials — maintainers can manually approve after code review. |
| Live / E2E Tests | UNKNOWN | Yes | Bug fix touching sync/pagination behavior requires validation; no /ai-prove-fix conclusion found. Not run ≠ disproven. |
PR Hygiene evidence
- PR Body Length (raw): 1035
- PR Body Length (after stripping HTML comments/whitespace): 1035
- PR Body Length (visible content, headings/labels removed): ~980
- PR Body Preview:
## What\n\nFixes #82766.\n\nThe GA4 runReport endpoint accepts offset in the POST body and does not return an of… - Changelog:
docs/integrations/sources/google-analytics-data-api.mdgained a2.9.46row. - Human reviewer comments: none (all PR comments are from
[bot]/ support-bot accounts).
Test Coverage evidence
- Behavioral Change Detected: Yes
- Indicators Found: title prefix
fix(...); body containsFixes #82766 - Test Files Modified: none
- New Test Content Found: No
- Manifest-only changes are explicitly not exempt from this gate.
Code Hygiene evidence
- Source Files Modified:
airbyte-integrations/connectors/source-google-analytics-data-api/manifest.yaml - Test Files Modified: none
- Coverage Evidence: Not Found
Backwards Compatibility evidence
- No
spec*.json/spec*.yamlfiles in the diff and nospecblock touched inmanifest.yaml. - No
schemas/*.jsonchanges; no fieldtypeorformatadded, removed, or altered. - No stream added, removed, or renamed;
primary_keyandcursor_fielduntouched. - No record
transformations/ extractor change that would alter a primary-key or cursor value. metadata.yamlchange isdockerImageTag: 2.9.45 → 2.9.46only — a patch bump, noreleases.breakingChangesentry needed.
Forwards / Behavioral evidence (diff hunks only)
- Removed:
type: CursorPagination,cursor_value: '{{ response.get("offset", {}) }}',stop_condition: ...,inject_into: request_parameter - Added:
type: OffsetIncrement,page_size: 100000,inject_into: body_json - Matched keywords:
paginator,pagination_strategy,cursor_value,page_size - Applies to both the static stream template (
definitions) and thedynamic_streamsmapping.
📚 Evidence Consulted
Evidence
- Changed files: 3
airbyte-integrations/connectors/source-google-analytics-data-api/manifest.yaml(+6 / −8)airbyte-integrations/connectors/source-google-analytics-data-api/metadata.yaml(+1 / −1)docs/integrations/sources/google-analytics-data-api.md(+1 / −0)
- CI checks (latest run per name, HEAD
672be56):- ✅
Lint source-google-analytics-data-api Connector - ✅
Build and Verify Artifacts (source-google-analytics-data-api) - ✅
source-google-analytics-data-api Pre-Release Checks - ✅
Check Changelog Updated,Format Check,Docs / MarkDownLint,Docs / Vale,Build Airbyte Docs,Validate PR Title - ❌
Test source-google-analytics-data-api Connector [No Creds]— counted - ❌
source-google-analytics-data-api Progressive Rollout Gate/Connector Active Progressive Rollout Checks Summary— excluded (release-management checks reflecting base-branch rollout state, not this PR's code)
- ✅
- PR labels:
community,connectors/source/google-analytics-data-api,hyd-review. No validation labels present. - PR description: present
- Existing bot reviews: none
❓ How to Respond
Resolving a Failing Gate
Each non-PASS gate above lists concrete remediation. Apply it, push, then re-run /ai-review — the bot re-evaluates from the diff, CI check-runs, and /ai-prove-fix results.
Written explanations do not change a gate verdict. If you believe a gate is a false positive or it cannot be remediated as written, request review from a human maintainer and explain the situation to them in a PR comment — a human reviewer can approve or merge over a bot FAIL. Never edit the PR description to argue with the bot; the description is how reviewers learn what the PR does.
|
Thanks for the contribution - the root-cause analysis here is correct:
Apologies that we cannot take both - and thanks again for pinpointing the broken paginator. |
What
Fixes #82766.
The GA4
runReportendpoint acceptsoffsetin the POST body and does not return anoffsetfield. The connector's paginator was injectingoffsetas a query parameter and usingresponse.offsetas a cursor, so reports larger than the 100,000-row limit could be truncated and fail to advance correctly.This changes both the static stream template and the dynamic stream mapping to use the CDK's
OffsetIncrementstrategy withoffsetinjected intobody_json. Pivot reports keep their existing no-pagination behavior. The connector patch version is bumped to 2.9.46 with a changelog entry.This PR addresses the deterministic paginator defect described in the issue. It does not claim to resolve every possible memory or concurrency cause of a stalled sync.
Checks
15 passed.git diff --check.Connector version
Patch release: fixes pagination behavior without changing stream names or record schemas.