Closed (won't fix)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
16 Sep 2014 at 10:23 UTC
Updated:
24 Oct 2014 at 20:46 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
karan_mudi commentedComment #2
karan_mudi commentedComment #3
karan_mudi commentedComment #4
klausson commentedA couple of notes before I even get into a closer review:
- your .info file is not complete. It only has a single line for the name. You should at a minimum add a description field and specify which version of core the module is compatible with.
- PAreview gives a ton of formatting errors. They seem all very easy to fix and you should read through them to make sure you comply with the coding standards.
- you should not use generic names like "callback_checkbox_field" as function names. Choose something that is less likely to be in conflict with other modules, for example "_node_author_callback_checkbox_field".
- I am pretty sure the permissions check will not work as it is implemented now: The permission is set as "Administer node author", the check is for "administer node author". Remember string comparisons are case sensitive in PHP.
More later once I have a chance to go through more details...
Comment #5
karan_mudi commentedHi klausson,
Thanks for review my code. I will fix all those issues which you mention in your comment.
Comment #6
karan_mudi commentedHi klausson,
All issues has been fixed.
Thanks,
Comment #7
klausson commentedAutomated Review
http://pareview.sh/pareview/httpgitdrupalorgsandboxkaran2246897git-7x-1x (commit 28bd6d3) found a long list of problems. Recommend taking a close look.
Manual Review
Comment #8
karan_mudi commentedklausson,
Thank you so much. I has been fixed all the issues which you point out. I very much appreciate the review and account promotion.
Thanks,
Comment #9
klausson commented@Karan: PAreview does indeed come back clean now. However, take a look at the note about documentation. I don't think we'd want to see a module released without ANY documentation whatsoever. I also added a slight concern about code duplication in the section about code review. I'm hoping that it will be implicitly addressed in the README file. If not, please explain how you would solve the same problem with existing code and what your module does to improve the situation. Kept the status as "needs work" for that reason.
Comment #10
benjaminarthurtTake a look at: https://www.drupal.org/node/1011698 for information about the correct process for the Project Application.
Spefically Step 5, you are missing significant information needed for a proper review to be done.
Automated Review
Best practice issues identified by pareview.sh
Manual Review
The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.
If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
This review uses the Project Application Review Template.
Comment #11
karan_mudi commentedComment #12
karan_mudi commentedComment #13
karan_mudi commentedComment #14
karan_mudi commentedComment #15
klausson commentedYou need to have three full reviews of different projects to qualify for the review bonus. The first two are duplicates of the same project and all three are just single comments rather than full reviews. Removing review bonus tag for now.
Comment #16
karan_mudi commentedComment #17
karan_mudi commentedComment #18
karan_mudi commentedComment #19
karan_mudi commentedComment #20
klausson commentedReading through the latest information in the description above, it seems to me that this would normally be done with the help of a view. Is this correct? If so, how is this approach different and does it justify a standalone module? (not saying it doesn't - just asking for clarification).
Also, notice this module: https://www.drupal.org/project/node_author. It seems to do the exact same thing for Drupal 6.
So I suspect the decision to be made is whether to fold this into the existing module as the v7 branch, or whether the Drupal 7 views might already cover the same functionality thus making a version for D7 unnecessary.
Comment #21
karan_mudi commentedComment #22
karan_mudi commentedComment #23
karan_mudi commentedComment #24
karan_mudi commentedComment #25
karan_mudi commentedComment #26
karan_mudi commentedComment #27
karan_mudi commentedComment #28
karan_mudi commentedComment #29
karan_mudi commentedHi,
I would like to thanks you for your insightful comments and reviews, as these comments led me to an improvement of the work. Detailed responses to your questions are given below.
Yes, this would normally be done with the help of a views but its required complex configuration of fields but if we use “Node Author” module we can achieve all desired features by single module installation and simple configuration.
“Node Author” is different from this module: https://www.drupal.org/project/node_author in various prospects:
So I think, if we use “Node Author” as standalone module for Drupal 7 it would be lead website developments more easy and simple.
Comment #30
klausson commentedI have to say I still don't understand why this would not be a 7.x branch of the existing module. Changing dependencies are nothing unusual - they exist in other modules as well. And if nothing else, I think we should try to avoid the confusion that comes from having two modules called "Node Author" that are both intended to solve the same problem, just for different versions of Drupal. I don't claim to have the ultimate insight on this topic, but it does seem a little strange. Have you contacted the author of the other module?
Comment #31
klausson commentedMarking this as "Closed (won't fix)" for the reasons given above. Most importantly, the duplication concern is not addressed. There is an existing module with the identical functionality for Drupal 6 and having a separate module for Drupal 7 makes very little sense, IMHO. Recommended course of action: Contact the maintainer(s) of the existing module to contribute to the Drupal 7 version.