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: Insightly [python cdk] #18164
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a few comments, but looks great! can you share the credentials with me (send DM in Slack if possible)
airbyte-integrations/connectors/source-insightly/integration_tests/catalog.json
Outdated
Show resolved
Hide resolved
airbyte-integrations/connectors/source-insightly/integration_tests/configured_catalog.json
Outdated
Show resolved
Hide resolved
def check_connection(self, logger, config) -> Tuple[bool, any]: | ||
try: | ||
token = config.get("token") | ||
response = requests.get(f"{BASE_URL}Instance", auth=(token,'')) | ||
response.raise_for_status() | ||
|
||
result = response.json() | ||
logger.info(result) | ||
|
||
return True, None | ||
except Exception as e: | ||
return False, e |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you check how other sources do the check_connection
it works how you're doing but there are cleaner ways.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marcosmarxm any specific connectors you want me to look at? This mainly aims to check if you have valid credentials. The /Instance
endpoint returns information about your insightly instance. It's more generic than checking a single stream?
airbyte-integrations/connectors/source-insightly/unit_tests/test_incremental_streams.py
Outdated
Show resolved
Hide resolved
airbyte-integrations/connectors/source-insightly/unit_tests/test_source.py
Outdated
Show resolved
Hide resolved
@sajarin I'm reviewing this. |
Signed-off-by: Henri Blancke <blanckehenri@gmail.com>
Signed-off-by: Henri Blancke <blanckehenri@gmail.com>
Signed-off-by: Henri Blancke <blanckehenri@gmail.com>
Co-authored-by: Marcos Marx <marcosmarxm@users.noreply.github.com>
Signed-off-by: Henri Blancke <blanckehenri@gmail.com>
Signed-off-by: Henri Blancke <blanckehenri@gmail.com>
696dfa0
to
2980c6e
Compare
/test connector=connectors/source-insightly
Build PassedTest summary info:
|
/publish connector=connectors/source-insightly
if you have connectors that successfully published but failed definition generation, follow step 4 here |
@RealChrisSean another hacktober contribution :) |
Congrats @henriblancke!!!! :) |
* [ADD] logic for source insightly Signed-off-by: Henri Blancke <blanckehenri@gmail.com> * [UPD] schema cleanup Signed-off-by: Henri Blancke <blanckehenri@gmail.com> * [ADD] documentation Signed-off-by: Henri Blancke <blanckehenri@gmail.com> * [UPD] configured catalog Co-authored-by: Marcos Marx <marcosmarxm@users.noreply.github.com> * [RMV] catalog and logs Signed-off-by: Henri Blancke <blanckehenri@gmail.com> * [UPD] source tests Signed-off-by: Henri Blancke <blanckehenri@gmail.com> * format files * fix pk * add seed config * auto-bump connector version Signed-off-by: Henri Blancke <blanckehenri@gmail.com> Co-authored-by: Marcos Marx <marcosmarxm@users.noreply.github.com> Co-authored-by: marcosmarxm <marcosmarxm@gmail.com> Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
What
New Source: Insightly
Notes
I have a sandbox account for integration testing, let me know how to pass those credentials along.
airbytehq/connector-contest#159
🚨 User Impact 🚨
Are there any breaking changes? What is the end result perceived by the user? If yes, please merge this PR with the 🚨🚨 emoji so changelog authors can further highlight this if needed.
Pre-merge Checklist
Expand the relevant checklist and delete the others.
New Connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
bootstrap.md
. See description and examplesdocs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampledocs/integrations/README.md
airbyte-integrations/builds.md
Airbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing/publish
command described hereUpdating a connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
bootstrap.md
. See description and examplesdocs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampleAirbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing/publish
command described hereConnector Generator
-scaffold
in their name) have been updated with the latest scaffold by running./gradlew :airbyte-integrations:connector-templates:generator:testScaffoldTemplates
then checking in your changesTests
Unit
Integration
Put your integration tests output here.
Acceptance