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 Pardot: failed while syncing Visitors stream #19618

Merged
merged 16 commits into from
Dec 15, 2022

Conversation

MJafarMashhadi
Copy link
Contributor

What

Pardot connector failed during syncing Visitors stream due to an interface change. The method stream_slices of Stream class (in CDK) was refactored to only accept keyword arguments (#9037) and that change was not reflected in source-pardot connector.

How

This small PR updates the aforementioned method's call signature.

Recommended reading order

  1. airbyte-integrations/connectors/source-pardot/source_pardot/stream.py

🚨 User Impact 🚨

No breaking changes.

Pre-merge Checklist

Not sure if I need to apply manually or there is some automation:
[ ] Add a row in changelog in pardot.md

Updated Connector

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

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.
  • /test connector=connectors/<name> command is passing
  • New Connector version released on Dockerhub by running the /publish command described here
  • After the connector is published, connector added to connector index 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
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
  • If new credentials are required for use in CI, add them to GSM. Instructions.
  • /test connector=connectors/<name> command is passing
  • New Connector version released on Dockerhub and connector version bumped by running the /publish command described here
Connector Generator
  • Issue acceptance criteria met
  • PR name follows PR naming conventions
  • If adding a new generator, add it to the list of scaffold modules being tested
  • The generator test modules (all connectors with -scaffold in their name) have been updated with the latest scaffold by running ./gradlew :airbyte-integrations:connector-templates:generator:testScaffoldTemplates then checking in your changes
  • Documentation which references the generator is updated as needed

Tests

Unit

Put your unit tests output here.

Integration

Put your integration tests output here.

Acceptance

Put your acceptance tests output here.

@CLAassistant
Copy link

CLAassistant commented Nov 18, 2022

CLA assistant check
All committers have signed the CLA.

@marcosmarxm
Copy link
Member

Hello 👋, first thank you for this amazing contribution.

We really appreciate the effort you've made to improve the project.
We ask you patience for the code review. Last month our team was focused on Hacktoberfest event and that probably left some PR without the proper feedback. And this week, due to the Thanksgiving US Holiday, most our team is out of office with their families. Another important piece of information why code won't be merge this week is: as a safety measure the core team has decided to freeze merging code to main branch to keep the release stable. Next week we'll return to you with the proper code review and update the status of your contribution.

If you have any questions feel free to send me a message in Slack!
Thanks!

@sajarin sajarin added the bounty-S Maintainer program: claimable small bounty PR label Dec 5, 2022
@haithem-souala
Copy link
Contributor

haithem-souala commented Dec 5, 2022

Hey @MJafarMashhadi, thank you for your contribution.
I will check your PR ASAP. @sajarin

@haithem-souala
Copy link
Contributor

haithem-souala commented Dec 5, 2022

@MJafarMashhadi, could you please check theses suggestions:

spec.json

  • Could you modify the documentationUrl to https://docs.airbyte.com/integrations/sources/pardot

source.py

  • line 37, i would return Visitors(**args) directly as other streams, instead of visitors = Visitors(**args)

Could you also, share screenshot of the integration and acceptance tests.

@sajarin
Copy link
Contributor

sajarin commented Dec 12, 2022

@MJafarMashhadi can you provide screenshots of passing review or acceptance tests please so we can get this merged? Thanks!

@sajarin
Copy link
Contributor

sajarin commented Dec 14, 2022

/publish connector=connectors/source-pardot run-tests=false

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


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

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

@sajarin
Copy link
Contributor

sajarin commented Dec 15, 2022

/publish connector=connectors/source-pardot run-tests=false

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


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

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

@sajarin sajarin merged commit 32015af into airbytehq:master Dec 15, 2022
@sajarin
Copy link
Contributor

sajarin commented Dec 15, 2022

Thanks @MJafarMashhadi for the PR and @haithem-souala for the review!

@evantahler
Copy link
Contributor

evantahler commented Dec 19, 2022

FYI this Pull Request did not update the source-pardot README's changelog. It will be fixed up via #20666.

@MJafarMashhadi
Copy link
Contributor Author

MJafarMashhadi commented Jan 20, 2023

Sorry I missed your comments since I was on vacation! I'm glad that this is fixed and merged.
We're using this patch in production so rest assured that it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues bounty bounty-S Maintainer program: claimable small bounty PR community connectors/source/pardot
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

8 participants