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 Zendesk Sunshine: support oauth #7976

Merged
merged 10 commits into from
Jan 4, 2022

Conversation

annalvova05
Copy link
Contributor

@annalvova05 annalvova05 commented Nov 15, 2021

What

#7708 Add oauth2.0 flow part for Zendesk Sunshine.
zd-sunshine-1
zd-sunshine-2

How

Change spec.json and implement new Auth method in source.py

Recommended reading order

  1. spec.json
  2. source.py

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
    • Connector's README.md
    • Connector's bootstrap.md. See description and examples
    • Changelog updated in docs/integrations/<source or destination>/<name>.md including changelog. See changelog example
  • PR name follows PR naming conventions

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
  • After the new connector version is published, connector version bumped in the seed directory as described here
  • Seed specs have been re-generated by building the platform and committing the changes to the seed spec files, as described here

@annalvova05 annalvova05 self-assigned this Nov 15, 2021
@annalvova05 annalvova05 linked an issue Nov 15, 2021 that may be closed by this pull request
@github-actions github-actions bot added the area/connectors Connector related issues label Nov 15, 2021
@github-actions github-actions bot added the area/documentation Improvements or additions to documentation label Nov 15, 2021
@annalvova05 annalvova05 temporarily deployed to more-secrets November 15, 2021 13:33 Inactive
…-sunshine-oauth

# Conflicts:
#	airbyte-config/init/src/main/resources/config/STANDARD_SOURCE_DEFINITION/325e0640-e7b3-4e24-b823-3361008f603f.json
#	tools/bin/ci_credentials.sh
@annalvova05 annalvova05 temporarily deployed to more-secrets December 29, 2021 14:01 Inactive
@annalvova05 annalvova05 temporarily deployed to more-secrets December 29, 2021 18:33 Inactive
@annalvova05 annalvova05 temporarily deployed to more-secrets December 29, 2021 18:37 Inactive
Copy link
Collaborator

@bazarnov bazarnov left a comment

Choose a reason for hiding this comment

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

LGTM, with a little question regards having primary_key inside of parent class. Check it, please.

@annalvova05 annalvova05 temporarily deployed to more-secrets December 29, 2021 23:02 Inactive
@annalvova05
Copy link
Contributor Author

annalvova05 commented Dec 29, 2021

/test connector=connectors/source-zendesk-sunshine

🕑 connectors/source-zendesk-sunshine https://github.com/airbytehq/airbyte/actions/runs/1635667928
❌ connectors/source-zendesk-sunshine https://github.com/airbytehq/airbyte/actions/runs/1635667928
🐛 https://gradle.com/s/ik65phb7prqva
Python short test summary info:

=========================== short test summary info ============================
FAILED test_core.py::TestConnection::test_check[inputs4] - docker.errors.Cont...
FAILED test_core.py::TestConnection::test_check[inputs5] - docker.errors.Cont...
SKIPPED [1] ../usr/local/lib/python3.7/site-packages/source_acceptance_test/plugin.py:56: Skipping TestIncremental.test_two_sequential_reads because not found in the config
============= 2 failed, 18 passed, 1 skipped in 132.78s (0:02:12) ==============

@jrhizor jrhizor temporarily deployed to more-secrets December 29, 2021 23:10 Inactive
@annalvova05
Copy link
Contributor Author

annalvova05 commented Dec 30, 2021

/test connector=connectors/source-zendesk-sunshine

🕑 connectors/source-zendesk-sunshine https://github.com/airbytehq/airbyte/actions/runs/1636872312
✅ connectors/source-zendesk-sunshine https://github.com/airbytehq/airbyte/actions/runs/1636872312
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      6    92%
	 source_acceptance_test/conftest.py                     109    109     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              242     96    60%
	 source_acceptance_test/tests/test_full_refresh.py       38      0   100%
	 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                  54     17    69%
	 source_acceptance_test/utils/compare.py                 62     23    63%
	 source_acceptance_test/utils/connector_runner.py       110     48    56%
	 source_acceptance_test/utils/json_schema_helper.py     115     14    88%
	 ------------------------------------------------------------------------
	 TOTAL                                                  979    404    59%

Python short test summary info:

=========================== short test summary info ============================
SKIPPED [1] ../usr/local/lib/python3.7/site-packages/source_acceptance_test/plugin.py:56: Skipping TestIncremental.test_two_sequential_reads because not found in the config
================== 20 passed, 1 skipped in 135.14s (0:02:15) ===================

@annalvova05 annalvova05 temporarily deployed to more-secrets December 30, 2021 08:47 Inactive
@jrhizor jrhizor temporarily deployed to more-secrets December 30, 2021 08:48 Inactive
@annalvova05
Copy link
Contributor Author

Java tests was passed
image

Copy link
Contributor

@antixar antixar left a comment

Choose a reason for hiding this comment

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

LGTM! Please publish this

@annalvova05
Copy link
Contributor Author

annalvova05 commented Jan 4, 2022

/test connector=connectors/source-zendesk-sunshine

🕑 connectors/source-zendesk-sunshine https://github.com/airbytehq/airbyte/actions/runs/1655479873
✅ connectors/source-zendesk-sunshine https://github.com/airbytehq/airbyte/actions/runs/1655479873
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      6    92%
	 source_acceptance_test/conftest.py                     109    109     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              242     96    60%
	 source_acceptance_test/tests/test_full_refresh.py       38      0   100%
	 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                  54     17    69%
	 source_acceptance_test/utils/compare.py                 62     23    63%
	 source_acceptance_test/utils/connector_runner.py       110     48    56%
	 source_acceptance_test/utils/json_schema_helper.py     115     14    88%
	 ------------------------------------------------------------------------
	 TOTAL                                                  979    404    59%

Python short test summary info:

=========================== short test summary info ============================
SKIPPED [1] ../usr/local/lib/python3.7/site-packages/source_acceptance_test/plugin.py:56: Skipping TestIncremental.test_two_sequential_reads because not found in the config
================== 20 passed, 1 skipped in 132.64s (0:02:12) ===================

@jrhizor jrhizor temporarily deployed to more-secrets January 4, 2022 20:45 Inactive
@annalvova05 annalvova05 temporarily deployed to more-secrets January 4, 2022 20:46 Inactive
@annalvova05
Copy link
Contributor Author

annalvova05 commented Jan 4, 2022

/publish connector=connectors/source-zendesk-sunshine

🕑 connectors/source-zendesk-sunshine https://github.com/airbytehq/airbyte/actions/runs/1655523762
✅ connectors/source-zendesk-sunshine https://github.com/airbytehq/airbyte/actions/runs/1655523762

@jrhizor jrhizor temporarily deployed to more-secrets January 4, 2022 20:58 Inactive
@annalvova05 annalvova05 temporarily deployed to more-secrets January 4, 2022 21:11 Inactive
@annalvova05 annalvova05 merged commit 7776dbe into master Jan 4, 2022
@annalvova05 annalvova05 deleted the alvova/7708-zendesk-sunshine-oauth branch January 4, 2022 21:15
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Source Zendesk Sunshine: support oauth
4 participants