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

🎉New Source: TMDb [low-code cdk] #18561

Merged
merged 23 commits into from
Nov 16, 2022
Merged

Conversation

btkcodedev
Copy link
Collaborator

What

Developing new connector for the source: TMDb

Resolves
🎉 New Source: TMDb

How

Developed using low-code cdk

Streams

  • Movies_alternative_titles
  • Movies_changes
  • Movies_credits
  • Movies_details
  • Movies_external_ids
  • Movies_images
  • Movies_keywords
  • Movies_latest
  • Movies_lists
  • Movies_now_playing
  • Movies_popular
  • Movies_recommentations
  • Movies_releases_dates
  • Movies_reviews
  • Movies_similar_movies
  • Movies_top_rated
  • Movies_translations
  • Movies_upcoming
  • Movies_videos
  • Movies_watch_providers

Recommended reading order

  1. spec.yaml
  2. tmdb.yaml
  3. schemas/*

🚨 User Impact 🚨

  • No breaking changes, Just addition of new source
New Connector: TMDb

Community member or Airbyter

  • Community member? 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
    • docs/integrations/<source or destination>/<name>.md including changelog. See changelog example
    • docs/integrations/README.md
    • airbyte-integrations/builds.md
  • PR name follows PR naming conventions

Tests

Integration & Acceptance

Result: Passed
Run ID: 5f6361892718fd5a37bf53cd76049397cdbaa531

image

@github-actions github-actions bot added area/connectors Connector related issues area/documentation Improvements or additions to documentation labels Oct 27, 2022
@marcosmarxm
Copy link
Member

Hello @btkcodedev thanks for the contribution! Please request my review when the PR is ready.

@btkcodedev btkcodedev marked this pull request as ready for review October 28, 2022 08:51
@btkcodedev
Copy link
Collaborator Author

@marcosmarxm It's ready for review

Copy link
Member

@marcosmarxm marcosmarxm left a comment

Choose a reason for hiding this comment

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

Some comments!

@marcosmarxm
Copy link
Member

Hello! I'm going to be out of the office this Friday and won't be able to review your contribution again today, I return next Monday. So far, most contributions look solid and are almost done to be approved. As said in Chris' comment all contributions made before 2-November are eligible to receive the prize and have 2 weeks to merge the contributions. But I ensure next week we're going to have your contribution merged. If you have questions about the implementation you can send them in #hacktoberfest-2022 in Airbyte's Slack.

Sorry the inconvenience and see you again next week, thank you so much for your contribution!

@btkcodedev
Copy link
Collaborator Author

@marcosmarxm @harshithmullapudi All comments resolved.
Review from community needed.

Copy link
Member

@marcosmarxm marcosmarxm left a comment

Choose a reason for hiding this comment

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

Some comments, but the connector is working! :) Just some final details.

@btkcodedev
Copy link
Collaborator Author

@marcosmarxm All comments resolved. Thanks!

Copy link
Member

@marcosmarxm marcosmarxm left a comment

Choose a reason for hiding this comment

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

Some comments.

@btkcodedev
Copy link
Collaborator Author

@marcosmarxm All comments resolved and tested.

@marcosmarxm
Copy link
Member

@btkcodedev can you share the output of ./gradlew airbyte-integrations:connectors:source-tmdb:integrationTest I'm running with config:

{
    "api_key": "my api key",
    "movie_id": "550",
    "query": "Marvel"
  }

and it isn't working.

@btkcodedev
Copy link
Collaborator Author

@btkcodedev can you share the output of ./gradlew airbyte-integrations:connectors:source-tmdb:integrationTest I'm running with config:

{
    "api_key": "my api key",
    "movie_id": "550",
    "query": "Marvel"
  }

and it isn't working.

Oo my bad, I didn't add language to the required spec, But was added to my secret config.
No problem, fixed it, Just add language: en-US in config. It will work
Recent test resulted in a pass state.

image

@btkcodedev
Copy link
Collaborator Author

@marcosmarxm My config:
{
"api_key": "API_KEY",
"movie_id": "550",
"query": "Marvel",
"language": "en-US"
}

And all comments resolved! :)

@btkcodedev
Copy link
Collaborator Author

btkcodedev commented Nov 11, 2022

@marcosmarxm Could somebody please review my PR, I've worked so hard to get this much of streams right. Please get it merged before deadline

@btkcodedev
Copy link
Collaborator Author

Anyonee???

@marcosmarxm
Copy link
Member

@bthecoderdev I'm review today. Don't worry about the deadline.

Copy link
Member

@marcosmarxm marcosmarxm left a comment

Choose a reason for hiding this comment

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

Thanks @btkcodedev

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ marcosmarxm
❌ bthecoderdev
You have signed the CLA already but the status is still pending? Let us recheck it.

@marcosmarxm
Copy link
Member

marcosmarxm commented Nov 16, 2022

/test connector=connectors/source-tmdb

🕑 connectors/source-tmdb https://github.com/airbytehq/airbyte/actions/runs/3482221383
✅ connectors/source-tmdb https://github.com/airbytehq/airbyte/actions/runs/3482221383
Python tests coverage:

	 Name                                                 Stmts   Miss  Cover   Missing
	 ----------------------------------------------------------------------------------
	 source_acceptance_test/base.py                          12      4    67%   16-19
	 source_acceptance_test/config.py                       139      5    96%   87, 93, 235, 239-240
	 source_acceptance_test/conftest.py                     196     92    53%   35, 41-43, 48, 54, 60, 66, 72-74, 93, 98-100, 106-108, 114-115, 120-121, 126, 132, 141-150, 156-161, 176, 200, 231, 237, 243-248, 256-261, 269-282, 287-293, 300-311, 318-334
	 source_acceptance_test/plugin.py                        69     25    64%   22-23, 31, 36, 120-140, 144-148
	 source_acceptance_test/tests/test_core.py              398    111    72%   53, 58, 87-95, 100-107, 111-112, 116-117, 299, 337-354, 363-371, 375-380, 386, 419-424, 462-469, 512-514, 517, 582-590, 602-605, 610, 666-667, 673, 676, 712-722, 735-760
	 source_acceptance_test/tests/test_incremental.py       158     14    91%   52-59, 64-77, 240
	 source_acceptance_test/utils/asserts.py                 37      2    95%   57-58
	 source_acceptance_test/utils/common.py                  94     10    89%   16-17, 32-38, 72, 75
	 source_acceptance_test/utils/compare.py                 62     23    63%   21-51, 68, 97-99
	 source_acceptance_test/utils/connector_runner.py       112     50    55%   23-26, 32, 36, 39-68, 71-73, 76-78, 81-83, 86-88, 91-93, 96-114, 148-150
	 source_acceptance_test/utils/json_schema_helper.py     107     13    88%   30-31, 38, 41, 65-68, 96, 120, 192-194
	 ----------------------------------------------------------------------------------
	 TOTAL                                                 1563    349    78%

Build Passed

Test summary info:

=========================== short test summary info ============================
SKIPPED [1] ../usr/local/lib/python3.9/site-packages/source_acceptance_test/plugin.py:63: Skipping TestIncremental.test_two_sequential_reads: This connector does not implement incremental sync
SKIPPED [1] ../usr/local/lib/python3.9/site-packages/source_acceptance_test/tests/test_core.py:88: The previous connector image could not be retrieved.
SKIPPED [1] ../usr/local/lib/python3.9/site-packages/source_acceptance_test/tests/test_core.py:364: The previous connector image could not be retrieved.
======================== 26 passed, 3 skipped in 44.97s ========================

@marcosmarxm
Copy link
Member

marcosmarxm commented Nov 16, 2022

/publish connector=connectors/source-tmdb

🕑 Publishing the following connectors:
connectors/source-tmdb
https://github.com/airbytehq/airbyte/actions/runs/3482492214


Connector Did it publish? Were definitions generated?
connectors/source-tmdb

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

@marcosmarxm marcosmarxm merged commit 310b518 into airbytehq:master Nov 16, 2022
akashkulk pushed a commit that referenced this pull request Dec 2, 2022
* Init: New Source: TMDb

* chore: Added documentation

* Chore: All Comments Resolved

* Added language config for filtering, All comomments resolved

* Update Doc URL

* add tmdb to source def and format files

* Removed unwanted authenticator, Added request params and configs

* cleansed lint

* feat: Added pagination, refactor: moved example to spec.yaml and minor corrections

* fix: change required in spec.yaml, corrections to docs

* removed unwanted file change

* remove movies_changes

* auto-bump connector version

Co-authored-by: btkcodedev <btk.codedev@gmail.com>
Co-authored-by: marcosmarxm <marcosmarxm@gmail.com>
Co-authored-by: Marcos Marx <marcosmarxm@users.noreply.github.com>
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
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

6 participants