-
Notifications
You must be signed in to change notification settings - Fork 215
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 to make shipping address from data passed from PayPal, per spec #153
Conversation
…ingle name is returned
Can i forked this in my fork? I update many things from paypal, but this guys doesn't want merge it. |
Implementing this fix: django-oscar#153
Please do! |
Ok, i did. |
Codecov Report
@@ Coverage Diff @@
## master #153 +/- ##
==========================================
- Coverage 76.62% 75.99% -0.63%
==========================================
Files 43 43
Lines 1664 1679 +15
==========================================
+ Hits 1275 1276 +1
- Misses 389 403 +14
Continue to review full report at Codecov.
|
…L, looks neater on paypal
…L, looks neater on paypal
it’s not if you are trying to see what is sent to paypal, as this view is usually only called by paypal.
…-- excuse brevity, sent from my phone.
On 12 Apr 2019, at 07:05, Alexander Gaevsky ***@***.***> wrote:
@sasha0 requested changes on this pull request.
In paypal/express/views.py:
> payload = urlencode(pairs)
+ logger.debug(payload)
I think it's redundant, since we return payload in the response.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Ok, then the log message should be properly formatted. |
That’s quite an open suggestion, I can’t find any documentation for django-oscar-paypal or oscar which specified a specific way to present log messages, so what are you expecting by ‘properly’ here? That there is some happy text informing what the string is, eg `logger.debug(Basket #%s - returning postage costs payload = ‘%s’ ` % basket.id, payload) following the format of other log messages in that view, or that the whole list of pairs is dumped a more clearly formatted KVP list, or something else in between those extremes?
My personal experience is that I want to see exactly what is sent to PayPal without any additional formatting applied that may be confused as being part of the payload so I can easily extract that from a the log file and post-process as necessary if I need it to be more readable, so what I’ve done works for me. I’m happy to make changes, but I’d just be blindly making change after change without clearer guidance.
… On 12 Apr 2019, at 08:06, Alexander Gaevsky ***@***.***> wrote:
Ok, then the log message should be properly formatted.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#153 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAQvb0d4cjYfAKv4_JInUCCM4rdfuHNPks5vgDBngaJpZM4LCZEM>.
--
theUsefulArts() { web design + creative technology }
{ web: theusefularts.org <http://www.theusefularts.org/>, twitter: @theusefularts <https://www.twitter.com/@theusefularts>, phone: +44 1294 823 600 }
|
Yep, this should be enough.
Right. I'll be more explicit next time. Thanks for your efforts to update this PR and for the contribution. |
Great, thanks very much for the feedback. Have committed that change now. I will make sure any future changes adhere to these kinds of standards, as best as I am able.
… On 15 Apr 2019, at 10:12, Alexander Gaevsky ***@***.***> wrote:
That there is some happy text informing what the string is, eg logger.debug(Basket #%s - returning postage costs payload = ‘%s’ % basket.id, payload) following the format of other log messages in that view
Yep, this should be enough.
I’m happy to make changes, but I’d just be blindly making change after change without clearer guidance.
Right. I'll be more explicit next time. Thanks for your efforts to update this PR and for the contribution.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#153 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAQvbySl40hIqhMd9dm-oWAG4OKlMrhJks5vhEJygaJpZM4LCZEM>.
--
theUsefulArts() { web design + creative technology }
{ web: theusefularts.org <http://www.theusefularts.org/>, twitter: @theusefularts <https://www.twitter.com/@theusefularts>, phone: +44 1294 823 600 }
|
All's good, except the lint warning. Would you have chance to look at it? Otherwise, I'll fix it by myself. Thanks for your efforts and time to update this PR! |
Happy to fix, but not sure about what lint warning you mean - I can’t see anything in my linter… Maybe a GitHub PR noob issue with me :-)
… On 1 May 2019, at 10:37, Alexander Gaevsky ***@***.***> wrote:
All's good, except the lint warning. Would you have chance to look at it? Otherwise, I'll fix it by myself.
Thanks for your efforts and time to update this PR!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#153 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AACC63532GHEP2WMBT6BPULPTFQHPANCNFSM4CYJSEGA>.
--
theUsefulArts() { web design + creative technology }
{ web: theusefularts.org <http://www.theusefularts.org/>, twitter: @theusefularts <https://www.twitter.com/@theusefularts>, phone: +44 1294 823 600 }
|
E.g.:
|
Great, thanks. I was relying on my Editors linter.
… On 1 May 2019, at 11:35, Alexander Gaevsky ***@***.***> wrote:
E.g.:
flake8 paypal tests setup.py
paypal/express/views.py:408:9: F841 local variable 'country_code' is assigned to but never used
paypal/express/views.py:430:5: E303 too many blank lines (3)
paypal/express/views.py:485:69: W291 trailing whitespace
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#153 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AACC636OVAVYTSN73MHZBLLPTFW55ANCNFSM4CYJSEGA>.
--
theUsefulArts() { web design + creative technology }
{ web: theusefularts.org <http://www.theusefularts.org/>, twitter: @theusefularts <https://www.twitter.com/@theusefularts>, phone: +44 1294 823 600 }
|
Thanks. Done and pushed to fork.
… On 1 May 2019, at 11:35, Alexander Gaevsky ***@***.***> wrote:
E.g.:
flake8 paypal tests setup.py
paypal/express/views.py:408:9: F841 local variable 'country_code' is assigned to but never used
paypal/express/views.py:430:5: E303 too many blank lines (3)
paypal/express/views.py:485:69: W291 trailing whitespace
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#153 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AACC636OVAVYTSN73MHZBLLPTFW55ANCNFSM4CYJSEGA>.
--
theUsefulArts() { web design + creative technology }
{ web: theusefularts.org <http://www.theusefularts.org/>, twitter: @theusefularts <https://www.twitter.com/@theusefularts>, phone: +44 1294 823 600 }
|
Alright, we're good now. |
Fix to issue #152