-
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-shopify: Inconsistent Comparison Fix #13163
source-shopify: Inconsistent Comparison Fix #13163
Conversation
/test connector=connectors/source-shopify
Build FailedTest summary info:
|
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 @ahmed-buksh for the contribution. I allowed myself to make a change in the comparison logic. I think record.get(self.cursor_field)
returns ISO strings that can be compared. To make it more explicit I setting the default value to the epoch time.
@ahmed-buksh could you share the output of the acceptance test run (with a screenshot)? I think our shopify sandbox account is missing a validation on shopify side to properly run the tests (#11334) which is why the build of this connector is broken on master. I'll publish and merge this fix if you share a proof that the acceptance tests are passing 🙏 |
To run the acceptance tests you need to create a |
@ahmed-buksh could you please give an update about your test run? 🙏 |
@alafanechere just pulling the updated master and running the tests, will update you in a while. |
@alafanechere I am facing the failure of acceptance test due to some issues with payment methods of my store. I start getting 404 on balance and transaction stuff and further findings on it revealed that one found this issue due to unavailability of payment methods in that region. |
@ahmed-buksh are these errors happening during the connection check or on read? Feel free to share the test output. |
@alafanechere attached are the screenshots of tests failing on read. |
@ahmed-buksh Could you please attach your full test logs output? |
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.
@ahmed-buksh I'm not able to run tests, for the reason I explained above.
I checked you changes and I think they are not appropriate for all streams. Some streams are using cursors that are not timestamps but id (Collects
, BalanceTransactions
, OrderRisks
), which will make the comparison you created not work appropriately :)
Could you please override the filter_records_newer_than_state
on those streams and implement a valid comparison?
Hey @ahmed-buksh I'm closing this PR as we did not receive updates since my last change request. Feel free to open a new PR anytime with these changes! |
What
Shopify historic sync fails due to inconsistent comparisons of
none
tostr
Issue 11976
How
Get updated to return instead of default None
Recommended reading order
airbyte-integrations/connectors/source-shopify/source_shopify/source.py
🚨 User Impact 🚨
No breaking changes.
Pre-merge Checklist
Expand the relevant checklist and delete the others.
Updating a connector
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