Skip to content

Source Facebook Marketing: fix permission error - #31132

Merged
Roman Yermilov [GL] (roman-yermilov-gl) merged 7 commits into
masterfrom
ryermilov/source-facebook-marketing-fix-permission-error
Oct 11, 2023
Merged

Roman Yermilov [GL] (roman-yermilov-gl) merged 7 commits into
masterfrom
ryermilov/source-facebook-marketing-fix-permission-error

Conversation

@roman-yermilov-gl

@roman-yermilov-gl Roman Yermilov [GL] (roman-yermilov-gl) commented Oct 6, 2023 •

Copy link
Copy Markdown
Contributor

What

https://github.com/airbytehq/oncall/issues/3167

How

AdAccount stream: catch an error and re-run the request without owner field

Why?

The error says: "Requires business_management permission to manage the object" when account has all the required permissions:

[
    'ads_management',
    'ads_read',
    'business_management',
    'public_profile'
]

@vercel

vercel Bot commented Oct 6, 2023 •

Copy link
Copy Markdown

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

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Visit Preview Oct 11, 2023 8:51am

@github-actions

github-actions Bot commented Oct 6, 2023 •

Copy link
Copy Markdown
Contributor

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.

@roman-yermilov-gl
Roman Yermilov [GL] (roman-yermilov-gl) marked this pull request as ready for review October 6, 2023 17:14
@airbyte-oss-build-runner

Copy link
Copy Markdown
Collaborator

source-facebook-marketing test report (commit 9191cec5d5) - ❌

⏲️ Total pipeline duration: 135mn30s

Step Result
Connector package install ✅
Build source-facebook-marketing docker image for platform(s) linux/x86_64 ✅
Unit tests ✅
Integration tests ✅
Acceptance tests ❌
Code format checks ✅
Validate metadata for source-facebook-marketing ✅
Connector version semver check ✅
Connector version increment check ✅
QA checks ✅

🔗 View the logs here

☁️ View runs for commit in Dagger Cloud

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=source-facebook-marketing test

"""noop in case of AdAccount"""
return [FBAdAccount(self._api.account.get_id()).api_get(fields=self.fields)]
fields = self.fields
try:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

let's add a unit test for this case please

@airbyte-oss-build-runner

Copy link
Copy Markdown
Collaborator

source-facebook-marketing test report (commit ed96a25161) - ❌

⏲️ Total pipeline duration: 98mn35s

Step Result
Connector package install ✅
Build source-facebook-marketing docker image for platform(s) linux/x86_64 ✅
Unit tests ✅
Integration tests ✅
Acceptance tests ❌
Code format checks ✅
Validate metadata for source-facebook-marketing ✅
Connector version semver check ✅
Connector version increment check ✅
QA checks ✅

🔗 View the logs here

☁️ View runs for commit in Dagger Cloud

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=source-facebook-marketing test

@airbyte-oss-build-runner

Copy link
Copy Markdown
Collaborator

source-facebook-marketing test report (commit d7b35d392d) - ❌

⏲️ Total pipeline duration: 97mn07s

Step Result
Connector package install ✅
Build source-facebook-marketing docker image for platform(s) linux/x86_64 ✅
Unit tests ✅
Integration tests ✅
Acceptance tests ❌
Code format checks ✅
Validate metadata for source-facebook-marketing ✅
Connector version semver check ✅
Connector version increment check ✅
QA checks ✅

🔗 View the logs here

☁️ View runs for commit in Dagger Cloud

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=source-facebook-marketing test

@airbyte-oss-build-runner

Copy link
Copy Markdown
Collaborator

source-facebook-marketing test report (commit 2752850325) - ✅

⏲️ Total pipeline duration: 80mn51s

Step Result
Connector package install ✅
Build source-facebook-marketing docker image for platform(s) linux/x86_64 ✅
Unit tests ✅
Integration tests ✅
Acceptance tests ✅
Code format checks ✅
Validate metadata for source-facebook-marketing ✅
Connector version semver check ✅
Connector version increment check ✅
QA checks ✅

🔗 View the logs here

☁️ View runs for commit in Dagger Cloud

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=source-facebook-marketing test

@roman-yermilov-gl
Roman Yermilov [GL] (roman-yermilov-gl) deleted the ryermilov/source-facebook-marketing-fix-permission-error branch October 11, 2023 11:29
Aries Gunawan (ariesgun) pushed a commit to ariesgun/airbyte that referenced this pull request Oct 23, 2023
Co-authored-by: roman-yermilov-gl <roman-yermilov-gl@users.noreply.github.com>
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 connectors/source/facebook-marketing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants