Skip to content

🎉 Source Bing Ads: support oauth #6831

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

Closed
wants to merge 4 commits into from

Conversation

annalvova05
Copy link
Contributor

@annalvova05 annalvova05 commented Oct 6, 2021

What

Source Bing Ads: support oauth - #6294

How

  • update spec.json

Recommended reading order

  1. x.java
  2. y.python

Pre-merge Checklist

Expand the relevant checklist and delete the others.

Updating a connector

Community member or Airbyter

  • Grant edit access to maintainers (instructions)
  • Secrets in the connector's spec are annotated with airbyte_secret
  • Unit & integration tests added and passing. Community members, please provide proof of success locally e.g: screenshot or copy-paste unit, integration, and acceptance test output. To run acceptance tests for a Python connector, follow instructions in the README. For java connectors run ./gradlew :airbyte-integrations:connectors:<name>:integrationTest.
  • Code reviews completed
  • Documentation updated
    • Changelog updated in docs/integrations/<source or destination>/<name>.md including changelog. See changelog example
  • PR name follows PR naming conventions
  • Connector version bumped like described here

Airbyter

If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.

  • Create a non-forked branch based on this PR and test the below items on it
  • Build is successful
  • Credentials added to Github CI. Instructions.
  • /test connector=connectors/<name> command is passing.
  • New Connector version released on Dockerhub by running the /publish command described here


This change is Reviewable

@CLAassistant
Copy link

CLAassistant commented Oct 6, 2021

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot added area/connectors Connector related issues area/documentation Improvements or additions to documentation labels Oct 6, 2021
@annalvova05 annalvova05 self-assigned this Oct 6, 2021
@annalvova05 annalvova05 linked an issue Oct 6, 2021 that may be closed by this pull request
1 task
@annalvova05 annalvova05 temporarily deployed to more-secrets October 6, 2021 07:21 Inactive
@annalvova05
Copy link
Contributor Author

annalvova05 commented Oct 6, 2021

/test connector=connectors/source-bing-ads

🕑 connectors/source-bing-ads https://github.com/airbytehq/airbyte/actions/runs/1310850488
✅ connectors/source-bing-ads https://github.com/airbytehq/airbyte/actions/runs/1310850488
Python tests coverage:

	 ---------- coverage: platform linux, python 3.8.10-final-0 -----------
	 Name                                                 Stmts   Miss  Cover
	 ------------------------------------------------------------------------
	 source_acceptance_test/__init__.py                       2      0   100%
	 source_acceptance_test/base.py                          10      4    60%
	 source_acceptance_test/config.py                        74      8    89%
	 source_acceptance_test/conftest.py                     108    108     0%
	 source_acceptance_test/plugin.py                        47     47     0%
	 source_acceptance_test/tests/__init__.py                 4      0   100%
	 source_acceptance_test/tests/test_core.py              200     94    53%
	 source_acceptance_test/tests/test_full_refresh.py       18     11    39%
	 source_acceptance_test/tests/test_incremental.py        69     38    45%
	 source_acceptance_test/utils/__init__.py                 6      0   100%
	 source_acceptance_test/utils/asserts.py                 37      2    95%
	 source_acceptance_test/utils/common.py                  41     24    41%
	 source_acceptance_test/utils/compare.py                 47     20    57%
	 source_acceptance_test/utils/connector_runner.py        82     49    40%
	 source_acceptance_test/utils/json_schema_helper.py     111     11    90%
	 ------------------------------------------------------------------------
	 TOTAL                                                  856    416    51%
	 ---------- coverage: platform linux, python 3.8.10-final-0 -----------
	 Name                          Stmts   Miss  Cover
	 -------------------------------------------------
	 source_bing_ads/__init__.py       2      0   100%
	 source_bing_ads/cache.py         18      3    83%
	 source_bing_ads/client.py        87     33    62%
	 source_bing_ads/reports.py      115     53    54%
	 source_bing_ads/source.py       252     83    67%
	 -------------------------------------------------
	 TOTAL                           474    172    64%

@jrhizor jrhizor temporarily deployed to more-secrets October 6, 2021 07:25 Inactive
Comment on lines 84 to 89
"access_token": {
"type": "string",
"description": "Access token generated using developer_token, client_id, and client_secret.",
"airbyte_secret": true
},
"refresh_token": {
Copy link
Contributor

Choose a reason for hiding this comment

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

where is this parameter used? I don't see changes of business logic

@annalvova05 annalvova05 requested a review from antixar October 8, 2021 09:22
@annalvova05 annalvova05 temporarily deployed to more-secrets October 8, 2021 09:23 Inactive
@antixar antixar requested a review from davinchia October 11, 2021 17:24
"oauth2Specification": {
"rootObject": [],
"oauthFlowInitParameters": [["client_id"], ["client_secret"], ["developer_token"], ["user_id"]],
"oauthFlowOutputParameters": [["client_id"], ["client_secret"], ["developer_token"], ["user_id"], ["refresh_token"]]
Copy link
Contributor

Choose a reason for hiding this comment

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

id/secret/token are init parameters, not output params, I believe?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Output params too. Need these params to get a new access token after the expiry.

@annalvova05 annalvova05 temporarily deployed to more-secrets October 28, 2021 11:30 Inactive
@bazarnov bazarnov removed a link to an issue May 17, 2022
1 task
@swyxio swyxio closed this Oct 12, 2022
@swyxio swyxio deleted the alvova/6294-bing-ads-oauth branch October 12, 2022 18:21
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/bing-ads connectors/sources-api
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants