-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Source Google Analytics (GA4): Fix Pagination #26126
Conversation
…_pagination Source google analytics data api: fix pagination
Before Merging a Connector Pull RequestWow! What a great pull request you have here! 🎉 To merge this PR, ensure the following has been done/considered for each connector added or updated:
If the checklist is complete, but the CI check is failing,
|
...ogle-analytics-data-api/source_google_analytics_data_api/defaults/custom_reports_schema.json
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another change is needed, we should not have the multi-types in JSON Schema, as this will cause issues during data normalization, please refer to the comments bellow.
...ogle-analytics-data-api/source_google_analytics_data_api/defaults/custom_reports_schema.json
Outdated
Show resolved
Hide resolved
airbyte-integrations/connectors/source-google-analytics-data-api/unit_tests/test_streams.py
Outdated
Show resolved
Hide resolved
airbyte-integrations/connectors/source-google-analytics-data-api/unit_tests/test_streams.py
Outdated
Show resolved
Hide resolved
airbyte-integrations/connectors/source-google-analytics-data-api/unit_tests/test_streams.py
Outdated
Show resolved
Hide resolved
airbyte-integrations/connectors/source-google-analytics-data-api/unit_tests/test_streams.py
Outdated
Show resolved
Hide resolved
/test connector=connectors/source-google-analytics-data-api
Build FailedTest summary info:
|
@marcosmarxm I think we're good to go with this contribution, once CAT is passed. |
...tions/connectors/source-google-analytics-data-api/source_google_analytics_data_api/source.py
Outdated
Show resolved
Hide resolved
...tions/connectors/source-google-analytics-data-api/source_google_analytics_data_api/source.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some comments @mpetrykin
...tions/connectors/source-google-analytics-data-api/source_google_analytics_data_api/source.py
Outdated
Show resolved
Hide resolved
...tions/connectors/source-google-analytics-data-api/source_google_analytics_data_api/source.py
Show resolved
Hide resolved
...tions/connectors/source-google-analytics-data-api/source_google_analytics_data_api/source.py
Outdated
Show resolved
Hide resolved
airbyte-integrations/connectors/source-google-analytics-data-api/unit_tests/test_streams.py
Outdated
Show resolved
Hide resolved
/test connector=connectors/source-google-analytics-data-api
Build FailedTest summary info:
|
/test connector=connectors/source-google-analytics-data-api |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some nit comments. I'll run tests locally and check what is not working
...tions/connectors/source-google-analytics-data-api/source_google_analytics_data_api/source.py
Outdated
Show resolved
Hide resolved
airbyte-integrations/connectors/source-google-analytics-data-api/unit_tests/test_streams.py
Outdated
Show resolved
Hide resolved
@marcosmarxm hi, sorry to ask, did you manage to run the tests locally and find the problem or haven't had time yet? |
Not yet @mpetrykin I'm going to test and run today. |
/test connector=connectors/source-google-analytics-data-api
Build PassedTest summary info:
|
* Fix paggination and add offset and limit to acceptable parameters in request body * Change next_page_token and add tests * Update dockerImageTag * Update PR version * Remove minimum, maximum, pattern fields * Remove pattern limit and offset from test_source.py * Remove offset and limit string type * Remove offset and limit string type * Increase limit number to 100000 and remove limit and offset from parameters * Change return type value of next_page_token from int to dict * Change return type value of next_page_token from int to dict * Change page_size to offset and add constant PAGE_SIZE equals 100000 * Add comment to PAGE_SIZE constant and add constant to unit tests * Remove offset and limit from PivotReport * Import PAGE_SIZE in unit_tests from source.py --------- Co-authored-by: Marcos Marx <marcosmarxm@users.noreply.github.com> Co-authored-by: sh4sh <6833405+sh4sh@users.noreply.github.com>
What
Fix the pagination mechanism. Problem is described in 26066 issue.
How