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

Source Google Search Console: add custom analytics stream #16433

Merged

Conversation

roman-yermilov-gl
Copy link
Contributor

@roman-yermilov-gl roman-yermilov-gl commented Sep 8, 2022

What

Add custom stream support. Now its possible to specify stream with custom defined dimensions

Recommended reading order

  1. x.java
  2. y.python

@roman-yermilov-gl roman-yermilov-gl self-assigned this Sep 8, 2022
@github-actions github-actions bot added area/connectors Connector related issues area/documentation Improvements or additions to documentation labels Sep 8, 2022
@roman-yermilov-gl roman-yermilov-gl force-pushed the ryermilov/source-google-search-console-custom-reports branch from c878ddc to f679716 Compare September 8, 2022 11:59
@airbytehq airbytehq deleted a comment from bazarnov Sep 8, 2022
@roman-yermilov-gl
Copy link
Contributor Author

roman-yermilov-gl commented Sep 8, 2022

/test connector=connectors/source-google-search-console

🕑 connectors/source-google-search-console https://github.com/airbytehq/airbyte/actions/runs/3016154124
✅ connectors/source-google-search-console https://github.com/airbytehq/airbyte/actions/runs/3016154124
Python tests coverage:

Name                                                            Stmts   Miss  Cover
-----------------------------------------------------------------------------------
source_google_search_console/__init__.py                            2      0   100%
source_google_search_console/source.py                             43      5    88%
source_google_search_console/streams.py                           138     24    83%
source_google_search_console/service_account_authenticator.py      14      6    57%
-----------------------------------------------------------------------------------
TOTAL                                                             197     35    82%
	 Name                                                 Stmts   Miss  Cover   Missing
	 ----------------------------------------------------------------------------------
	 source_acceptance_test/base.py                          10      4    60%   15-18
	 source_acceptance_test/config.py                        83      6    93%   78-80, 84-86
	 source_acceptance_test/conftest.py                     164    164     0%   6-282
	 source_acceptance_test/plugin.py                        48     48     0%   6-104
	 source_acceptance_test/tests/test_core.py              329    111    66%   39, 50-58, 63-70, 74-75, 79-80, 164, 202-219, 228-236, 240-245, 251, 284-289, 327-334, 374-376, 379, 439-448, 477-478, 484, 487, 520-530, 543-568, 573-577
	 source_acceptance_test/tests/test_full_refresh.py       52      2    96%   34, 65
	 source_acceptance_test/tests/test_incremental.py       121     25    79%   21-23, 29-31, 36-43, 48-61, 208-216
	 source_acceptance_test/utils/asserts.py                 37      2    95%   57-58
	 source_acceptance_test/utils/common.py                  77     17    78%   15-16, 24-30, 47-54, 64, 67
	 source_acceptance_test/utils/compare.py                 62     23    63%   21-51, 68, 97-99
	 source_acceptance_test/utils/connector_runner.py       110     48    56%   23-26, 32, 36, 39-64, 67-69, 72-74, 77-79, 82-84, 87-89, 92-110, 144-146
	 source_acceptance_test/utils/json_schema_helper.py     105     13    88%   30-31, 38, 41, 65-68, 96, 120, 190-192
	 ----------------------------------------------------------------------------------
	 TOTAL                                                 1322    463    65%

Build Passed

Test summary info:

All Passed

Copy link
Contributor

@alafanechere alafanechere left a comment

Choose a reason for hiding this comment

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

Thank you for this addition. I request a change because the SAT is not testing this stream with our current secret: you need to define the custom_reports field in our GSM secrets.

@roman-yermilov-gl
Copy link
Contributor Author

roman-yermilov-gl commented Sep 9, 2022

/test connector=connectors/source-google-search-console

🕑 connectors/source-google-search-console https://github.com/airbytehq/airbyte/actions/runs/3022903146
✅ connectors/source-google-search-console https://github.com/airbytehq/airbyte/actions/runs/3022903146
Python tests coverage:

Name                                                            Stmts   Miss  Cover
-----------------------------------------------------------------------------------
source_google_search_console/__init__.py                            2      0   100%
source_google_search_console/source.py                             46      6    87%
source_google_search_console/streams.py                           138     24    83%
source_google_search_console/service_account_authenticator.py      14      6    57%
-----------------------------------------------------------------------------------
TOTAL                                                             200     36    82%
	 Name                                                 Stmts   Miss  Cover   Missing
	 ----------------------------------------------------------------------------------
	 source_acceptance_test/base.py                          10      4    60%   15-18
	 source_acceptance_test/config.py                        83      6    93%   78-80, 84-86
	 source_acceptance_test/conftest.py                     164    164     0%   6-282
	 source_acceptance_test/plugin.py                        48     48     0%   6-104
	 source_acceptance_test/tests/test_core.py              329    111    66%   39, 50-58, 63-70, 74-75, 79-80, 164, 202-219, 228-236, 240-245, 251, 284-289, 327-334, 374-376, 379, 439-448, 477-478, 484, 487, 520-530, 543-568, 573-577
	 source_acceptance_test/tests/test_full_refresh.py       52      2    96%   34, 65
	 source_acceptance_test/tests/test_incremental.py       121     25    79%   21-23, 29-31, 36-43, 48-61, 208-216
	 source_acceptance_test/utils/asserts.py                 37      2    95%   57-58
	 source_acceptance_test/utils/common.py                  77     17    78%   15-16, 24-30, 47-54, 64, 67
	 source_acceptance_test/utils/compare.py                 62     23    63%   21-51, 68, 97-99
	 source_acceptance_test/utils/connector_runner.py       110     48    56%   23-26, 32, 36, 39-64, 67-69, 72-74, 77-79, 82-84, 87-89, 92-110, 144-146
	 source_acceptance_test/utils/json_schema_helper.py     105     13    88%   30-31, 38, 41, 65-68, 96, 120, 190-192
	 ----------------------------------------------------------------------------------
	 TOTAL                                                 1322    463    65%

Build Passed

Test summary info:

All Passed

Copy link
Contributor

@alafanechere alafanechere left a comment

Choose a reason for hiding this comment

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

Thanks @roman-yermilov-gl for the changes. Could you also add these new streams to the catalogs that are used for integration tests? The new stream is still not yet covered by the acceptance tests.

@roman-yermilov-gl
Copy link
Contributor Author

roman-yermilov-gl commented Sep 9, 2022

/test connector=connectors/source-google-search-console

🕑 connectors/source-google-search-console https://github.com/airbytehq/airbyte/actions/runs/3023768874
❌ connectors/source-google-search-console https://github.com/airbytehq/airbyte/actions/runs/3023768874
🐛 https://gradle.com/s/z7wg3fillazay

Build Failed

Test summary info:

=========================== short test summary info ============================
FAILED test_incremental.py::TestIncremental::test_state_with_abnormally_large_values[inputs0]
=================== 1 failed, 29 passed in 91.64s (0:01:31) ====================

@roman-yermilov-gl
Copy link
Contributor Author

roman-yermilov-gl commented Sep 9, 2022

/test connector=connectors/source-google-search-console

🕑 connectors/source-google-search-console https://github.com/airbytehq/airbyte/actions/runs/3024902064
✅ connectors/source-google-search-console https://github.com/airbytehq/airbyte/actions/runs/3024902064
Python tests coverage:

Name                                                            Stmts   Miss  Cover
-----------------------------------------------------------------------------------
source_google_search_console/__init__.py                            2      0   100%
source_google_search_console/source.py                             46      6    87%
source_google_search_console/streams.py                           138     24    83%
source_google_search_console/service_account_authenticator.py      14      6    57%
-----------------------------------------------------------------------------------
TOTAL                                                             200     36    82%
	 Name                                                 Stmts   Miss  Cover   Missing
	 ----------------------------------------------------------------------------------
	 source_acceptance_test/base.py                          10      4    60%   15-18
	 source_acceptance_test/config.py                        83      6    93%   78-80, 84-86
	 source_acceptance_test/conftest.py                     164    164     0%   6-282
	 source_acceptance_test/plugin.py                        48     48     0%   6-104
	 source_acceptance_test/tests/test_core.py              329    111    66%   39, 50-58, 63-70, 74-75, 79-80, 164, 202-219, 228-236, 240-245, 251, 284-289, 327-334, 374-376, 379, 439-448, 477-478, 484, 487, 520-530, 543-568, 573-577
	 source_acceptance_test/tests/test_full_refresh.py       52      2    96%   34, 65
	 source_acceptance_test/tests/test_incremental.py       121     25    79%   21-23, 29-31, 36-43, 48-61, 208-216
	 source_acceptance_test/utils/asserts.py                 37      2    95%   57-58
	 source_acceptance_test/utils/common.py                  77     17    78%   15-16, 24-30, 47-54, 64, 67
	 source_acceptance_test/utils/compare.py                 62     23    63%   21-51, 68, 97-99
	 source_acceptance_test/utils/connector_runner.py       110     48    56%   23-26, 32, 36, 39-64, 67-69, 72-74, 77-79, 82-84, 87-89, 92-110, 144-146
	 source_acceptance_test/utils/json_schema_helper.py     105     13    88%   30-31, 38, 41, 65-68, 96, 120, 190-192
	 ----------------------------------------------------------------------------------
	 TOTAL                                                 1322    463    65%

Build Passed

Test summary info:

All Passed

@roman-yermilov-gl
Copy link
Contributor Author

Thanks @roman-yermilov-gl for the changes. Could you also add these new streams to the catalogs that are used for integration tests? The new stream is still not yet covered by the acceptance tests.

Done

Copy link
Contributor

@alafanechere alafanechere left a comment

Choose a reason for hiding this comment

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

Thank you for the catalog changes!

@roman-yermilov-gl
Copy link
Contributor Author

roman-yermilov-gl commented Sep 14, 2022

/publish connector=connectors/source-google-search-console

🕑 Publishing the following connectors:
connectors/source-google-search-console
https://github.com/airbytehq/airbyte/actions/runs/3051360741


Connector Did it publish? Were definitions generated?
connectors/source-google-search-console

if you have connectors that successfully published but failed definition generation, follow step 4 here ▶️

@roman-yermilov-gl
Copy link
Contributor Author

roman-yermilov-gl commented Sep 14, 2022

/publish connector=connectors/source-google-search-console

🕑 Publishing the following connectors:
connectors/source-google-search-console
https://github.com/airbytehq/airbyte/actions/runs/3052008075


Connector Did it publish? Were definitions generated?
connectors/source-google-search-console

if you have connectors that successfully published but failed definition generation, follow step 4 here ▶️

@roman-yermilov-gl roman-yermilov-gl merged commit 55f875b into master Sep 14, 2022
@roman-yermilov-gl roman-yermilov-gl deleted the ryermilov/source-google-search-console-custom-reports branch September 14, 2022 10:44
debanjan97 pushed a commit to rudderlabs/airbyte that referenced this pull request Sep 26, 2022
…16433)

* Source Google Search Console: add custom analytics stream

* Source Google Search Console: fix flake warnings

* Source Google Search Console: validate custom report string

* Source Google Search Console: update catalog to include custom report to acceptance tests

* Source Google Search Console: update abnormal state for custom report

* auto-bump connector version [ci skip]

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
robbinhan pushed a commit to robbinhan/airbyte that referenced this pull request Sep 29, 2022
…16433)

* Source Google Search Console: add custom analytics stream

* Source Google Search Console: fix flake warnings

* Source Google Search Console: validate custom report string

* Source Google Search Console: update catalog to include custom report to acceptance tests

* Source Google Search Console: update abnormal state for custom report

* auto-bump connector version [ci skip]

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
jhammarstedt pushed a commit to jhammarstedt/airbyte that referenced this pull request Oct 31, 2022
…16433)

* Source Google Search Console: add custom analytics stream

* Source Google Search Console: fix flake warnings

* Source Google Search Console: validate custom report string

* Source Google Search Console: update catalog to include custom report to acceptance tests

* Source Google Search Console: update abnormal state for custom report

* auto-bump connector version [ci skip]

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues area/documentation Improvements or additions to documentation connectors/source/google-search-console
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Source Google Search Console: Add Search_analytics_custom stream
5 participants