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: Dynamically exclude field rule from stream CustomAudiences #29674

Merged
merged 23 commits into from Aug 23, 2023

Conversation

artem1205
Copy link
Collaborator

@artem1205 artem1205 commented Aug 21, 2023

What

Resolve https://github.com/airbytehq/oncall/issues/2765

How

Dynamically exclude field rule from stream CustomAudiences if record cannot be obtained due to Too much data was requested in batch error.

Recommended reading order

  1. streams.py

🚨 User Impact 🚨

no breaking changes

Pre-merge Actions

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.

@octavia-squidington-iii octavia-squidington-iii added the area/documentation Improvements or additions to documentation label Aug 21, 2023
@artem1205 artem1205 assigned artem1205 and unassigned davydov-d and lazebnyi Aug 21, 2023
@artem1205 artem1205 marked this pull request as ready for review August 21, 2023 17:30
@github-actions
Copy link
Contributor

source-facebook-marketing test report (commit 2569ee13e9) - ❌

⏲️ Total pipeline duration: 86mn14s

Step Result
Validate airbyte-integrations/connectors/source-facebook-marketing/metadata.yaml
Connector version semver check
Connector version increment check
QA checks
Code format checks
Connector package install
Build source-facebook-marketing docker image for platform linux/x86_64
Unit tests
Integration tests
Acceptance tests

🔗 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

@github-actions
Copy link
Contributor

source-facebook-marketing test report (commit 4bc1d5d17d) - ✅

⏲️ Total pipeline duration: 88mn34s

Step Result
Connector package install
Build source-facebook-marketing docker image for platform linux/x86_64
Unit tests
Integration tests
Acceptance tests
Code format checks
Validate airbyte-integrations/connectors/source-facebook-marketing/metadata.yaml
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

@artem1205 artem1205 changed the title Source Facebook Marketing: Exclude rule from stream CustomAudiences Source Facebook Marketing: Exclude field rule from stream CustomAudiences Aug 22, 2023
Copy link
Collaborator

@lazebnyi lazebnyi left a comment

Choose a reason for hiding this comment

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

As discussed, we need to implement error handling and remove any unnecessary fields.

@artem1205 artem1205 marked this pull request as draft August 22, 2023 15:40
@artem1205 artem1205 marked this pull request as ready for review August 22, 2023 16:01
@github-actions
Copy link
Contributor

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

⏲️ Total pipeline duration: 96mn15s

Step Result
Connector package install
Build source-facebook-marketing docker image for platform linux/x86_64
Unit tests
Integration tests
Acceptance tests
Code format checks
Validate airbyte-integrations/connectors/source-facebook-marketing/metadata.yaml
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

@github-actions
Copy link
Contributor

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

⏲️ Total pipeline duration: 82mn37s

Step Result
Connector package install
Build source-facebook-marketing docker image for platform linux/x86_64
Unit tests
Integration tests
Acceptance tests
Code format checks
Validate airbyte-integrations/connectors/source-facebook-marketing/metadata.yaml
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

@github-actions
Copy link
Contributor

source-facebook-marketing test report (commit 7c2bec0778) - ❌

⏲️ Total pipeline duration: 67mn52s

Step Result
Connector package install
Build source-facebook-marketing docker image for platform linux/x86_64
Unit tests
Integration tests
Acceptance tests
Code format checks
Validate airbyte-integrations/connectors/source-facebook-marketing/metadata.yaml
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

@github-actions
Copy link
Contributor

source-facebook-marketing test report (commit 78c5d914f3) - ✅

⏲️ Total pipeline duration: 61mn04s

Step Result
Connector package install
Build source-facebook-marketing docker image for platform linux/x86_64
Unit tests
Integration tests
Acceptance tests
Code format checks
Validate airbyte-integrations/connectors/source-facebook-marketing/metadata.yaml
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

@artem1205 artem1205 changed the title Source Facebook Marketing: Exclude field rule from stream CustomAudiences Source Facebook Marketing: Dynamically exclude field rule from stream CustomAudiences Aug 22, 2023
@@ -76,8 +78,13 @@ def success(response: FacebookResponse):
self.max_batch_size = self._initial_max_batch_size
records.append(response.json())

def reduce_batch_size():
if self.max_batch_size == 1:
def reduce_batch_size(request: FacebookRequest):
Copy link
Collaborator

Choose a reason for hiding this comment

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

It would be great to add unit tests for that functionality.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

will add unit test in another PR to speed up the process

@artem1205 artem1205 merged commit 30d2f54 into master Aug 23, 2023
29 checks passed
@artem1205 artem1205 deleted the artem1205/source-facebook-marketing-OC-2765 branch August 23, 2023 12:18
harrytou pushed a commit to KYVENetwork/airbyte that referenced this pull request Sep 1, 2023
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.

None yet

4 participants