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 Facebook Marketing: Added fields in campaign schema #8257

Conversation

mlavoie-sm360
Copy link
Contributor

@mlavoie-sm360 mlavoie-sm360 commented Nov 25, 2021

What

How

  • Added fields to campaigns json schema

🚨 User Impact 🚨

  • Adds new fields to stream

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

@github-actions github-actions bot added the area/connectors Connector related issues label Nov 25, 2021
@harshithmullapudi
Copy link
Contributor

Hey @mlavoie-sm360 thanks for the contribution. Can you check this doc https://docs.airbyte.io/connector-development#updating-an-existing-connector and do later steps so that it's ready for review ?

@github-actions github-actions bot added the area/documentation Improvements or additions to documentation label Nov 29, 2021
@mlavoie-sm360
Copy link
Contributor Author

@harshithmullapudi, not a problem. I have completed the few remaining steps, except for the code review. Is that something that someone from airbyte will do?

Copy link
Contributor

@avida avida left a comment

Choose a reason for hiding this comment

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

Good job! For the future we would need to create a script to generate all missed fields from facebook specs: https://github.com/facebook/facebook-business-sdk-codegen/tree/65d97be34890e15057c0bac43504f0d34ca86318/api_specs/specs

@avida
Copy link
Contributor

avida commented Nov 29, 2021

Looks like there is already such kind of script for fb pages connector #8267 @midavadim Would it work for fb marketing? I noticed it doesnt support nested types like list, am I right?

@mlavoie-sm360
Copy link
Contributor Author

Thanks @avida, regarding generating all missed fields, I think that's a really good idea, perhaps we open a separate issue specifically for that request.

@midavadim
Copy link
Contributor

Hi, I think it would be possible top generate full schemas for this connector as well.

I noticed it doesn't support nested types like list, am I right? -
It supports nested types but only 1 level inside, because nested type refers to other nested types and could refer to itself and create 'reference loops'.

@marcosmarxm marcosmarxm temporarily deployed to more-secrets December 16, 2021 21:24 Inactive
@marcosmarxm marcosmarxm merged commit b018769 into airbytehq:master Dec 16, 2021
@grubberr
Copy link
Contributor

grubberr commented Dec 17, 2021

/test connector=connectors/source-facebook-marketing

Error: No ref found for: source-facebook-marketing-added-fields-to-campaign-schema

schlattk pushed a commit to schlattk/airbyte that referenced this pull request Jan 4, 2022
…hq#8257)

* Updated campaigns.json

* Source Facebook Marketing: Added support for multiple Facebook accounts

Updated version & changelog

Closes airbytehq#7740

* Executed pre-commit routine

* bump connector version

Co-authored-by: Marcos Marx <marcosmarxm@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants