-
-
Notifications
You must be signed in to change notification settings - Fork 731
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
Fix DFC catalog syncs for blank cart #13036
Fix DFC catalog syncs for blank cart #13036
Conversation
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.
Nice! I fixed one little typo but otherwise it's all good.
I always try to avoid send
but it's the most pragmatic way here to avoid code duplication.
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.
Looks good to me 👍
I was thinking the same, but it's good to see deduplication. Another way I could think of was to use a block, but it's not really worth it in this case. def sync_catalogs(order)
...
catalog_ids(order).each do |catalog_id|
yield(user, catalog_id)
end
...
end
def self.sync_linked_catalogs_later(order)
sync_catalogs do |user, catalog_id|
perform_later(user, catalog_id)
end
end .. err no, definitely not worth it! |
@mkllnk can you comment if the testing team able is able to test this, or should it go to Garethe? |
I think it's quickest if I test. |
The FDC Shopify API servers are shut down at the moment to save cost. Garethe will power them up again soon. |
@mkllnk - they're back up now. |
All works beautifully. Well done. |
ℹ️ Funded Feature. Please track ALL ASSOCIATED WORK under the associated tracking code #11678 DFC Orders
What? Why?
What should we test?
Release notes
Changelog Category (reviewers may add a label for the release notes):