Closed jkelleyj closed 8 years ago
Just noticed two of your commits are listed here. I thought I rebased my branch off of the v2 stable branch. I'm no git wizard, so happy to adjust my branch to remove those if there's something screwy with my history... may just need some help with that.
noice @jkelleyj will have a look at this tomorrow AM!
Noticed that one of the info fields was missing and is used in the sync rake task and added a commit for that.
Pinging you here @jkelleyj . What cha think about some of these code review requests? Would love to get this merged.
I'm pretty pinned down for the next week or two. There's a chance I can squeeze it in sooner but most likely it is going to end up being mid month before I can get back to it.
On Sunday, October 30, 2016, Braden Douglass notifications@github.com wrote:
Pinging you here @jkelleyj https://github.com/jkelleyj . What cha think about some of these code review requests? Would love to get this merged.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/DynamoMTL/spree_chimpy/pull/76#issuecomment-257171369, or mute the thread https://github.com/notifications/unsubscribe-auth/AAjW5NE_z5ZP5rfmqAudYAqoqxlILfUMks5q5OpxgaJpZM4KVLwI .
Hey @braidn I know we need to get this done, so I went ahead and made some of the changes and refactored a bit. The orders interface was out of control, so I split it into more specific classes and broke out the specs as well. https://github.com/jkelleyj/spree_chimpy/tree/feature/mailchimp-3.0_refactor
If you like the look of this, I can merge into this branch. It handles everything in your comments except for the Rails URL helper. Are we able to simply remove that? You can see how I'm trying to use it in the products interface class in the refactor branch. Basically, using the rails helper if it responds to that or building it with URI otherwise. Let me know what I should do about that one.
Just pulled in a refactored set of classes to clean up the order insert/update with some Updaters.
@braidn I've reworked the interface classes to use Gibbon instead of Mailchimp API since the v3.0 API is to be required soon. This took a bit more reworking than I'd expected because the API changes are significant.
The new api is pretty strictly restful, so many of the convenience methods are gone, and we require a more chatty approach to add an order. Basically, we need to ensure the products exist, the customer exists, and then either update or create the order based on whether it already exists.
A few notes: