Repository navigation
🐛 Source Facebook Marketing: restore reduced request record limit after successful response - #27979
Conversation
Before Merging a Connector Pull RequestWow! 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:
If the checklist is complete, but the CI check is failing,
|
|
| Step | Result |
|---|---|
| Validate airbyte-integrations/connectors/source-facebook-marketing/metadata.yaml | ✅ |
| Connector version semver 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 | ✅ |
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…ting-restore-req-limit-after-200
|
| Step | Result |
|---|---|
| Validate airbyte-integrations/connectors/source-facebook-marketing/metadata.yaml | ✅ |
| Connector version semver 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 | ✅ |
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
What
Resolving:
How
request_record_limit_is_reducedandlast_api_call_is_successfullto manage the state of the flow in theapi.py_should_restore_default_page_sizemethod toapi.pyto check whether the revert process should be triggeredcallmethod to check for reverting conditions and inject thedefault_page_sizeapi.py__init___method to provide theapi.pymodule with theconfig.page_sizevalue supplied by the customer and further use it as thedefault_page_sizeattribute.backoff_policywith"An unknown error occurred"error pattern to track inreduce_request_record_limitfromcommon.pyrevert_request_record_limitmethod tocommon.pyto handlebackoff(...on_success=...)scenario.Recommended reading order
y.python🚨 User Impact 🚨
No user impact is expected - no breaking changes.