-
Notifications
You must be signed in to change notification settings - Fork 8
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
Stuff we need to look at #3
Comments
It's great that you've outlined the problems, as this is very time consuming. I think that we'd need to look at
sooner rather than later, as I'd immediately switch to use static preferences, and lot's of time can be wasted trying to debug this. I guess we need have a look how other solidus extensions do it. |
All good stuff. A few thoughts.
So @manmartinez, can you add these as individual tickets on the TSP board in jira? Some of these will be higher priority than others, but we should keep track of all of this. It's all good dev work that can / should be done at some point. Thanks for the help on this. |
@mtomov Yeah configuration is a big deal, I handled this on another spree extension by inheriting from
I think refunds can still be made by logging into amazon payments and refunding from there.
They provide an admin UI to setup amazon, if we want to move to secrets.yml configuration should be moved to an initializer and the admin UI should be removed, I'm fine with that @mtomov any thoughts? |
@manmartinez I am interested in the opinions around the configuration because braintree appears to be in the same situation where the config is set in the admin UI, my idea is by default tries to use ENV variables if there are not set fallback to admin UI configuration. |
@hectoregm I think having both might be confusing I'd rather have either the admin UI or an initializer |
@manmartinez yeah supporting both is confusing |
Yes, I think this works. Found a similar example for Solidus Globalize, so this should be the correct way to do it. I don't really understand why just decorating the App configuration doesn't work, but I trust you. It might be because of the load order and them being in-memory cached. I think that if the Admin UI is already there, and if we just need to set-up those preferences correctly, then that would be preferable over storing them in an initializer. |
@hectoregm, @mtomov ok so we'll keep the admin UI and store the configuration on the database by inheriting from |
solidus_social
? I think it allows users to sign in through amazon, but I'm not even sure if it worksSpree::AppConfiguration
won't work ifuse_static_preferences!
is being used, we should probably have our own configuration classSpree::AmazonTransaction
idea, right now an orderhas_many
amazon transactions, and a payment also has an amazon transaction as a source, so in the best case scenario we end up with two amazon transactions per order, which doesn't make much sense to me...Spree::AmazonController
. Although I've done some work there, there's still a lot of logic in that controller we probably want to extract some classes to take care of updating the spree order through checkoutSpree::Gateway::Amazon
looks pretty terrible 🐼 ← That's a sad pandaclose
event to a payment, but we also added a new method on the processing module calledclose!
those two are overriding each other, probably not what we wantThe text was updated successfully, but these errors were encountered: