-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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_XML_BROWSE_TREE_DATA report #12663
Source Amazon Seller Partner: Add GET_XML_BROWSE_TREE_DATA report #12663
Conversation
…_XML_BROWSE_TREE_DATA
Hi @manescianera thank you for this contribution! I'll run the tests and go for a first review soon! |
/test connector=connectors/source-amazon-seller-partner
|
/test connector=connectors/source-amazon-seller-partner
|
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"properties": { | ||
"browseNodeId": { | ||
"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.
"type": ["null", "string"] | |
"type": "string" |
As an identifier, I'm not sure this field can be null.
"name": "GET_XML_BROWSE_TREE_DATA", | ||
"json_schema": { | ||
"title": "XML Browse Tree Data", | ||
"description": "XML Browse Tree 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.
I think this field is redundant.
"description": "XML Browse Tree Data", |
"anyOf": [ | ||
{ | ||
"$ref": "#/definitions/attribute" | ||
}, | ||
{ | ||
"type": ["array"], | ||
"items": { | ||
"$ref": "#/definitions/attribute" | ||
} | ||
} | ||
] |
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.
It will make it easier for a destination to pick the right column type if you stick to arrays rather than anyOf
, but this will require a small transformation in the parsing.
} | ||
] | ||
}, | ||
"@count": { |
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.
Could we avoid special characters like @
for safety in case they are not supported in some destinations?
…Field type to array
…nera/airbyte into sp-api-GET_XML_BROWSE_TREE_DATA
…_XML_BROWSE_TREE_DATA
hey, @alafanechere ! made changes based on your review. although looks that there's a small problem. while unit and integration tests pass no problem; after pulling from master acceptance tests fail and I'm not sure why (it passes before the pull). maybe I've missed something? Acceptance tests
|
/test connector=connectors/source-amazon-seller-partner
|
Let's try running these in the CI (☝️ ) and to check if it's related to your environment. |
} | ||
} | ||
}, | ||
"count": { |
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.
@manescianera I saw you renamed to count
but I'm not sure you changed the parsing logic to rename the @count
to count
in the XML output. Did I miss something?
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.
attr_prefix
argument takes care of the json prefixes from parsed XML node properties, so I've changed attr_prefix
to a blank string over here
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.
Thank you for your changes and replies. Let's publish and merge now 🎉
/publish connector=connectors/source-amazon-seller-partner
|
What
Adds
GET_XML_BROWSE_TREE_DATA
report to Amazon Seller Partner source connector.How
Get Browse Tree Report XML data and then parse it into a dictionary.
Pre-merge Checklist
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 hereTests
Unit
Integration
Acceptance