-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 Cart: fixing of testing for a lot of data #5465
Conversation
/test connector=connectors/source-cart
|
airbyte-integrations/connectors/source-cart/source_cart/streams.py
Outdated
Show resolved
Hide resolved
airbyte-integrations/connectors/source-cart/source_cart/source.py
Outdated
Show resolved
Hide resolved
airbyte-integrations/connectors/source-cart/source_cart/spec.json
Outdated
Show resolved
Hide resolved
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 only have the last question:
If 'current' users are be able to use their 'old' spec files without end_date attr and is not a problem, then I 100% fine with this approach.
Another words - will the customer be able to run syncs with old specs on this updated source?
/test connector=connectors/source-cart
|
airbyte-integrations/connectors/source-cart/source_cart/source.py
Outdated
Show resolved
Hide resolved
airbyte-integrations/connectors/source-cart/source_cart/spec.json
Outdated
Show resolved
Hide resolved
/test connector=connectors/source-cart
|
/test connector=connectors/source-cart
|
/test connector=connectors/source-cart
|
/test connector=connectors/source-cart
|
@sherifnada , about this test option 'end_date'. I added to its spec because in my opinion using the flag "additionalProperties"=True is a wrong way. All input parameters must be validated strictly and it will reduce number of failures in the future. Now I see that Marcos Marx set this flag to 'True' thus I can remove the 'end_date' description from the spec. |
/test connector=connectors/source-cart
|
/publish connector=connectors/source-cart run-tests=false
|
/publish connector=connectors/source-cart run-tests=false
|
What
This source generates new data constantly. And the full_refresh test can catch new changes between the first and second syncs.
We added the config field 'end_date' for loading not all data from some date but and for some necessary period. This new field is optional and by default the connector will load all.
for CI the following period settings were set:
Dockerfile was migrated to Alpine base image too.
Recommended reading order
source_cart/streams.py
Dockerfile
Pre-merge Checklist
Updating a connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
docs/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