Fixes https://github.com/airbytehq/oncall/issues/9565
## What
When migrating tolow-code + manifest-only format, we didn't migrate the
dimensionFilter feature, this change adds this back so requests to
Google's API include the dimension filter in the body of the request.
## How
There are two things that are done now:
1. We take the incoming config and transform it into the format expected
by Google's API. This is a direct port of what we used to do as a
pre-sync transformation:
https://github.com/airbytehq/airbyte/pull/60342/files#diff-c598765182c592504650290115e49900ef4b473307ddd69ea1662e6a6865cddfL206-L223
. This would also avoid a breaking change
2. Define in the stream template, the interpolation to inject the
dimensionFilter (if it exists) into the request body which will be
applied for each dynamic stream created by a custom_report
## Review guide
1. `components.py`
3. `manifest.yaml`
## User Impact
Should only be additive and fix customers with the issue
## Can this PR be safely reverted and rolled back?
- [x] YES 💚
- [ ] NO ❌
* Source Google Analytics v4: refactor error messages
* Source Google Analytics Data API: improve error messages
* Source Google Analytics Data API: Refactor
* Source Google Analytics Data API: bump version + update docs
* Source Google Analytics Data API: fix test config
* Source Google Analytics Data API: update message
* 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>
* #11689 source Google Analytics Data API: implement advanced reports
* #11689 source GA data API: upd changelog
* #11689 source GA data API: fix CAT
* #11689 source GA data API: fix CAT
* Have empty dict as default option
* Remove dateRange and dimensions from required params
* Generate source defintions manually
---------
Co-authored-by: Arsen Losenko <20901439+arsenlosenko@users.noreply.github.com>
* Source Google Analytics v4: check custom reports; remove date as required field
* Source Google Analytics: fix unit tests
* Source Google Analytics: fix unit tests
* Source Google Analytics: update to latest cdk
* Source Google Analytics: http -> https
* Source Google Analytics: add allowed hosts
* Source Google Analytics: docs update
* Apply suggestions from code review
Co-authored-by: Ella Rohm-Ensing <erohmensing@gmail.com>
* Source Google Analytics: docs update
* Source Google Analytics: add expected records
* auto-bump connector version
---------
Co-authored-by: Ella Rohm-Ensing <erohmensing@gmail.com>
Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
* Introduce Google Analytics Data API source
https://developers.google.com/analytics/devguides/reporting/data/v1
* Add Google Analytics Data API source PR link
* Add `client` class for Google Analytics Data API
* Move dimensions and metrics extraction to the `client` class
In the Google Analytics Data API
* Change the copyright date to 2022 in Google Analytics Data API
* fix: removing incremental syncs
* fix: change project_id to string
* fix: flake check is failing
* chore: added it to source definitions
* chore: update seed file
Co-authored-by: Harshith Mullapudi <harshithmullapudi@gmail.com>