Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
16 Feb 2012 at 10:01 UTC
Updated:
3 Jul 2012 at 11:51 UTC
Jump to comment: Most recent file
Comments
Comment #1
svenaas commentedI ran your project through ventral's online PAReview code checker, which noted out that you're doing your work on the master branch rather than a version-specific branch (here are some instructions on making the move). It also reported a series of coding style issues which are listed in the attachment.
When I took a look at your code by hand I didn't spot any other significant issues with the code itself but I did notice that while nearly all of the comments are in English but one block (the function comment for commerce_payment_network_feedback_status()) is in German. Perhaps I'm overlooking a reason for this.
It would also be a good idea to flesh out the project's description page. The text in your README would make a very good start.
Comment #2
forward-media commentedThank you for you're help, i made all changes and are ready for a new review.
Comment #3
Robertas commentedThere are still files other than README.txt in the master branch, make sure to remove them. See also step 5 in http://drupal.org/node/1127732
Review of the 7.x-1.x branch:
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. Get a review bonus and we will come back to your application sooner.
Source: http://ventral.org/pareview - PAReview.sh online service
Comment #4
forward-media commentedOk, files are removed in master branch.
Comment #5
forward-media commentedAll Changes are made, ... needs review again.
Thanks,
tobi
Comment #6
iler commentedcommerce_payment_network.module line 137
global $user is defined but never used so you should remove the global $user.
commerce_payment_network.module line 39
Use t() function so that the message is translatable. Use English as the base language:
watchdog('commerce_payment_network', 'Empfangen: ' . $_POST['order_id'], array(), WATCHDOG_INFO);Comment #7
forward-media commentedDeleted the unused variable and made the watchdog info translateable.
can be reviewed now again, thanks!
Comment #8
iler commentedSorry for my wrong information but the t() function doesn't belong inside watchdog. This was my bad!
Comment #9
forward-media commentedNo Problem!
Changed it, ... have a look on it :)
Comment #10
forward-media commentedI tested it again on knoepfbar.com and everything is fine, no problem on every test!
please review :)
Comment #11
targoo commentedHi forward-media
1) commerce_payment already depend on commerce : no need of this dependency
2) You should maybe use a Constants for the url : define('URL_SOFORT' , 'https://www.sofortueberweisung.de/payment/start');
3) Is your api ever called ?
Good work though.
Comment #12
forward-media commentedThanks,
1. I deleted the dependency
2. Constant URL_SOFORT is defined and tested
3. This module is not using the api but another of my modules, ... problem?
please review again :)
Comment #13
forward-media commentedEverything ok now? :)
Please review for full project!! Thx!
Comment #14
patrickd commentedHi,
sorry for the delay!
as there are currently many applications in queue we need more reviewers,
so think about getting a review bonus and we will come back to your application sooner.
Comment #15
forward-media commentedOk, thanks for the Info!
I use a lot of sandbox modules waiting for full project. I will read your instructions and help to review!!
Comment #16
derjochenmeyer commentedImprove the module descritpion page. Add a short description what the module does. The content of README.txt seems good enough (not just a reference to the file).
Comment #17
forward-media commentedDescription: Payment Network (http://www.sofortüberweisung.de) integration for the Drupal Commerce payment and checkout system.
Comment #18
derjochenmeyer commentedAll existing issues got resolved.
Comment #19
klausiReview of the 7.x-1.x branch:
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. Get a review bonus and we will come back to your application sooner.
manual review:
Comment #20
klausiAlso, you have not posted any reviews of other project applications in your issue summary as recommended in https://drupal.org/node/1011698
Comment #21
forward-media commentedUpdated.
define constant at top,
Deleted $notification variable
Put watchdog in other place
sry about not reviewing, when i have time i will do it.
Comment #22
derjochenmeyer commented+1 Quality assurance
-1 nitpicking (will not help community growth)
+1 Pareto principle
+1 for releasing this as a full project.
Comment #23
klausimanual review:
Comment #24
forward-media commentedHow do i prefix the constant?
i deleted the watchdog,...
tobi
Comment #25
patrickd commentedjust rename it to
define('MODULE-NAME_URL_SOFORT', ...)Comment #26
forward-media commentedHi, thanks to Klausi and Jochen, i changed all, added the watchdog with check_plain so that is no more XSS vulnerable, and define the URL with a prefix.
i tested it on one of our life sites www.knoepfbar.de - no php errors now! :)
Comment #27
andyg5000commerce_payment_network.info
Add commerce as a dependancy.
commerce_payment_network.api.php
Line 36 :
improperly calls isset():
$data['LANGUAGE'] = isset $language_mapping[$language->language] ? $language_mapping[$language->language] : $settings['language'];should be:
$data['LANGUAGE'] = isset($language_mapping[$language->language]) ? $language_mapping[$language->language] : $settings['language'];commerce_payment_network.module
Line 9:
Should your COMMERCE_PAYMENT_NETWORK_URL_SOFORT be a setting field instead of a defined constant so that users could change it if the payment gateway ever did?
Line 55:
'description' => t('Integrates payment_network payment system'),should be
'description' => t('Integrates Payment Network payment system'),Line 91:
'#description' => t('The ID from your Projekt, find in your payment network backoffice'),should be (???)
'#description' => t('The ID from your project, find in your payment network backoffice'),Line 124:
Errors in commerce_payment_network_redirect_form() should be added to watchdog if they are related to failed transactions or misconfigurations of payment gateway.
Line 135:
global $user is still defined even though it is not used/needed.
Line 141:
$customer_name is defined but not used. Should this be added to one of the user_variables in your $data array?
Line 182-201:
Could this be simplified?
Comment #28
andyg5000Setting status to needs work
Comment #29
forward-media commentedHi andy5000,
Thanks for your Report!
commerce_payment_network.info
I Dont need commerce as dependancy because commerce_payment hast this dependancy
commerce_payment_network.api.php
Thanks, i changed it.
commerce_payment_network.module
How should this simplyfied:
Thanks for your help!
Comment #30
forward-media commentedComment #31
quiptime commentedHello guys,
(not forward-media) what is currently the problem to switch this project to a full project?
I'm working local to extend and optimize the Commerce Payment Network module. Guys, you can be sure that I'm keeping an eye on the code (code and style standards, etc.) in the next time.
You can still talk and post a long time. But, this might not really help the development of the module.
The more time goes by, the higher will be the frustration of the maintainer! And that's not good.
Please not longer behave like children. :-)
So, now it's time!
Comment #32
quiptime commentedI've forgotten it, in #31.
This is a review bonus.
Comment #33
klausiWe are currently quite busy with all the project applications and I can only review projects with a review bonus. Please help me reviewing and I'll take a look at your project right away :-)
Comment #34
klausi@quiptime: oh, you are not the actual applicant ... then why don't give the project a decent review and push it forward to RTBC as indicated in the workflow guidelines?
Comment #35
quiptime commented@klausi,
to write a traditional review bonus, according to the rules is not possible to me.
My time is too precious to write a traditional review bonus.
Why?
So I'm already several steps further than just
Against the background of what has been said up here:
I give a review bonus for this sandbox module.
@klausi, I very much hope that you can understand what I want to say above.
In the meantime
Meanwhile, I have spoken with the maintainer directly.
The maintainer is very frustrated with the process to contribute this sandbox module. I can understand him.
There is the possibility that he will delete this sandbox project. I hope he does not do this.
Concluding
@klausi,
make it simple. Give the project the full status.
Or, give permission to the maintainer to create full projects.
Consider me as a mentor of this project.
Comment #36
quiptime commentedComment #37
forward-media commentedThanks all Guys for assistance and reviewing!