-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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 GET_SELLER_FEEDBACK_DATA report #8021
Source Amazon Seller Partner: Add GET_SELLER_FEEDBACK_DATA report #8021
Conversation
@lizdeika Hey can you move this PR out of Draft once you are done with changes. Thanks for your contribution. |
@lizdeika hey thanks for the contribution. I had a question |
Hi, |
@lizdeika thanks for sharing the info that was really helpful. Can you share across output for integrations test and unit tests ? |
@harshithmullapudi I have educated myself on incremental syncs and slicing |
@harshithmullapudi any idea why data from raw table(data gets synced successfully) does not go to deduped _scd table when Sync mode is "Incremental | Deduped + history" |
|
||
|
||
class SellerFeedbackReports(IncrementalReportsAmazonSPStream): | ||
name = "GET_SELLER_FEEDBACK_DATA" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add doc string as other streams.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://sellercentral.amazon.com/help/hub/reference/G202125660 this is the closest I can get
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small comments thanks for the contribution
"Date": { | ||
"type": ["null", "string"], | ||
"format": "date" | ||
}, | ||
"Rating": { | ||
"type": ["null", "number"] | ||
}, | ||
"Comments": { | ||
"type": ["null", "string"] | ||
}, | ||
"Response": { | ||
"type": ["null", "string"] | ||
}, | ||
"Order ID": { | ||
"type": ["null", "string"] | ||
}, | ||
"Rater Email": { | ||
"type": ["null", "string"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it the name of this fields correct with the raw data/response from the API?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, fields are named exactly like this
from Crypto.Cipher import AES | ||
from source_amazon_seller_partner.auth import AWSSignature | ||
|
||
REPORTS_API_VERSION = "2020-09-04" | ||
ORDERS_API_VERSION = "v0" | ||
VENDORS_API_VERSION = "v1" | ||
|
||
REPORTS_MAX_WAIT_SECONDS = 50 | ||
# 33min. taken from real world experience working with amazon seller partner reports | ||
REPORTS_MAX_WAIT_SECONDS = 1980 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is based on your amount of data? Maybe transform this to a parameter where people can increase in necessity?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is based on experience working with various different report types. They usually are generated faster but 30 minutes was maximum we saw. In any case 50 seconds is way too little.
Parameter is a good idea. Can I do it in another small PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure.
@marcosmarxm @harshithmullapudi any blocking stuff to get this in? |
…rbytehq#8021) * Source Amazon Seller Partner: Add GET_SELLER_FEEDBACK_DATA report * no field definition here * add dataStartTime, dataEndTime * fixes, version bumps * revert this * cleanup * fixes * real world wait * fix typo * incremental, transformer * fix stream schema * implement incremental with slicing * move * cleanup * update configured catalog * fix tests * changelog * doc * fix doc * fix configured catalog * Field definitions
What
Adds GET_SELLER_FEEDBACK_DATA report to Amazon Seller Partner source connector
🚨 User Impact 🚨
None
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
bootstrap.md
. See description and examplesdocs/SUMMARY.md
docs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampledocs/integrations/README.md
airbyte-integrations/builds.md
Airbyter
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