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 Insightly : Migrate Python CDK to Low-code CDK #31162

Merged
merged 14 commits into from Nov 14, 2023

Conversation

aazam-gh
Copy link
Contributor

@aazam-gh aazam-gh commented Oct 8, 2023

What

Fix #30861

How

Use Low Code/ No Code CDK

Recommended reading order

  1. manifest.yaml
  2. schema

🚨 User Impact 🚨

Are there any breaking changes? What is the end result perceived by the user?

For connector PRs, use this section to explain which type of semantic versioning bump occurs as a result of the changes. Refer to our Semantic Versioning for Connectors guidelines for more information. Breaking changes to connectors must be documented by an Airbyte engineer (PR author, or reviewer for community PRs) by using the Breaking Change Release Playbook.

If there are breaking changes, please merge this PR with the 🚨🚨 emoji so changelog authors can further highlight this if needed.

Pre-merge Actions

Expand the relevant checklist and delete the others.

Updating a connector

Community member or Airbyter

  • Grant edit access to maintainers (instructions)
  • Unit & integration tests added

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
  • If new credentials are required for use in CI, add them to GSM. Instructions.

@vercel
Copy link

vercel bot commented Oct 8, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
airbyte-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 14, 2023 3:53pm

@github-actions
Copy link
Contributor

github-actions bot commented Oct 8, 2023

Before Merging a Connector Pull Request

Wow! What a great pull request you have here! 🎉

To merge this PR, ensure the following has been done/considered for each connector added or updated:

  • PR name follows PR naming conventions
  • Breaking changes are considered. If a Breaking Change is being introduced, ensure an Airbyte engineer has created a Breaking Change Plan.
  • Connector version has been incremented in the Dockerfile and metadata.yaml according to our Semantic Versioning for Connectors guidelines
  • You've updated the connector's metadata.yaml file any other relevant changes, including a breakingChanges entry for major version bumps. See metadata.yaml docs
  • Secrets in the connector's spec are annotated with airbyte_secret
  • All documentation files are up to date. (README.md, bootstrap.md, docs.md, etc...)
  • Changelog updated in docs/integrations/<source or destination>/<name>.md with an entry for the new version. See changelog example
  • Migration guide updated in docs/integrations/<source or destination>/<name>-migrations.md with an entry for the new version, if the version is a breaking change. See migration guide example
  • If set, you've ensured the icon is present in the platform-internal repo. (Docs)

If the checklist is complete, but the CI check is failing,

  1. Check for hidden checklists in your PR description

  2. Toggle the github label checklist-action-run on/off to re-run the checklist CI.

@sajarin sajarin self-assigned this Oct 9, 2023
@marcosmarxm marcosmarxm added the low-code-migration This connector has been migrated to the low-code CDK label Oct 9, 2023
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.

I made a quick review asking to update a few files this will help us during the code review. Sorry the long delay to get into your contribution. Probably this week or next one the team will start the process. Are you able to run the tests in your local setup? It can speed up a lot the process if you share the integration tests results.
Don't forget to update the doc changelog.

@@ -27,4 +27,4 @@ acceptance_tests:
- config_path: "secrets/config.json"
configured_catalog_path: "integration_tests/configured_catalog.json"
future_state:
future_state_path: integration_tests/abnormal_state.json
future_state_path: integration_tests/abnormal_state.json
Copy link
Member

Choose a reason for hiding this comment

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

Fix EOF

@@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="250" height="250" fill="none"><path fill="#FF5621" d="m204.648 193.714.047.177c-6.087-.791-9.532-7.065-9.532-24.255 0-10.023 1.265-19.599 2.501-28.957 1.182-8.94 2.336-17.681 2.336-26.421 0-16.75-4.837-30.098-23.581-30.098-16.63 0-34.771 18.74-41.726 33.505.894-5.736 2.376-10.645 3.649-14.863 1.31-4.341 2.399-7.95 2.399-10.976a8.898 8.898 0 0 0-2.422-7.594 8.987 8.987 0 0 0-7.556-2.63c-9.676 0-31.447 9.09-34.168 22.438-1.813 6.526-2.72 11.641-3.024 58.213-.139 8.025-.865 16.026-1.602 23.488a10.138 10.138 0 0 1-4.033 6.422 10.226 10.226 0 0 1-7.377 1.852c-6.96 0-10.292-9.095-10.292-38.383 0-18.698 2.84-34.268 4.892-45.523 1.162-6.373 2.072-11.362 2.072-14.755a10.72 10.72 0 0 0-.65-4.326 10.759 10.759 0 0 0-2.324-3.712 10.819 10.819 0 0 0-3.615-2.485 10.858 10.858 0 0 0-4.31-.849 41.184 41.184 0 0 0-16.575 6.62 40.966 40.966 0 0 0-12.186 12.996C33.028 112.699 30 151.937 30 174.684c0 26.156 9.688 47.197 38.147 47.197a35.364 35.364 0 0 0 22.453-7.622c.7 4.805 2.568 7.622 6.602 7.622 28.419 0 33.864-12.208 33.864-19.88 0-45.432 10.582-80.644 22.675-80.644 5.141 0 6.954 5.114 6.954 12.497 0 6.187-1.063 13.975-2.16 22.007-1.168 8.552-2.374 17.381-2.374 24.849 0 25.555 13.303 41.171 37.491 41.171a35.943 35.943 0 0 0 24.017-8.584c3.129-4.779 2.579-8.77 1.636-13.937-.867-4.751-9.775-5.739-14.657-5.646ZM72.733 26.88c-10.549 0-28.34 8.22-28.34 25.81 0 19.856 8.75 23.188 17.489 23.189A31.792 31.792 0 0 0 83.28 64.933a31.509 31.509 0 0 0 7.541-22.744c0-11.058-8.435-15.31-18.089-15.31Z"/></svg>
Copy link
Member

Choose a reason for hiding this comment

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

Why you removed this file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Must have been an accident. I have added it back now

Comment on lines 1 to 8
plugins {
id 'airbyte-python'
id 'airbyte-docker'
}

airbytePython {
moduleDirectory 'source_insightly'
}
Copy link
Member

Choose a reason for hiding this comment

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

Remove this file, not used anymore

"pytest-mock~=3.6.1",
"connector-acceptance-test",
Copy link
Member

Choose a reason for hiding this comment

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

Remove this import not used anymore.

@marcosmarxm
Copy link
Member

@aazam-gh can you share your output for integration tests? I tried in my side and the connector is not working.

@aazam-gh
Copy link
Contributor Author

@marcosmarxm thanks for the review but I am having trouble running the integration tests locally.
The acceptance test command isn't working. Should i try with the cli?

page_token_option:
type: RequestOption
inject_into: "request_parameter"
field_name: "skip"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I also want to highlight this part regarding the pagination. Insightly has the skip parameter which skips a certain amount of records. For example if the first request gives us 500 records then for the next request we will add skip=500 to the parameter, however for the next request after it we will have to add skip=100, i.e the skip gets incremented so that all records are parsed. How do we apply it here?

Copy link
Member

Choose a reason for hiding this comment

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

Did you try to use the Offset paginator?

@marcosmarxm
Copy link
Member

The acceptance test command isn't working. Should i try with the cli?

You can use the sh acceptance-test.sh file inside the connector folder or the airbyte-ci.

@aazam-gh
Copy link
Contributor Author

You can use the sh acceptance-test.sh file inside the connector folder or the airbyte-ci.

I keep getting sh: 0: Can't open acceptance-test.sh when I try to run the command

@sajarin sajarin merged commit a94cfdf into airbytehq:master Nov 14, 2023
35 of 41 checks passed
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 community connectors/source/insightly hackathon-2023-10 low-code-migration This connector has been migrated to the low-code CDK
Projects
Development

Successfully merging this pull request may close these issues.

✨ Source Insightly : Migrate Python CDK to Low-code CDK
4 participants