-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Source Amazon Seller Partner: add stream FbaReplacementsReports #9789
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 Amazon Seller Partner: add stream FbaReplacementsReports #9789
Conversation
The code looks great @monai can you share the output from |
|
Hi @monai, the acceptance tests are failing because of some missing modules: https://github.com/airbytehq/airbyte/actions/runs/1791101084 |
…PMENT_REPLACEMENT_DATA
@alafanechere I've just merged master into this branch, recreated virtualenv, and run unit tests locally. Everything is fine. I guess this issue is related to CI environment. However, it looks like #9768 broke the acceptance tests. See attached log. The PR was merged 12 days ago, and the line in question is five months old.
|
@monai this error looks from a nested cursor field. We need to fix it. |
It turns out the current |
@alafanechere the PR is ready for review. |
@monai, thanks again for this quality contribution! 🎉 |
What
This PR adds stream
FbaReplacementsReports
(GET_FBA_FULFILLMENT_CUSTOMER_SHIPMENT_REPLACEMENT_DATA
).In addition, the PR updates report generation status handling according to (ProcessingStatuses)[https://developer-docs.amazon.com/sp-api/docs/reports-api-v2020-09-01-reference#processingstatuses] enum as follows:
CANCELED
- log a warning messageFAILED
- throw an exceptionBefore this PR,
FAILED
reports log warning messages and pretend that the report has 0 entries. Meanwhile, the documentation explicitly states that report wasn't generated:How
Describe the solution
Recommended reading order
streams.py
🚨 User Impact 🚨
The connector will throw an error for
FATAL
processing status while previously, the error was silently ignored.Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
bootstrap.md
. See description and examplesdocs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampleAirbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing./publish
command described here