INTRODUCTION :
This module keeps history of Node alias
project page: https://www.drupal.org/sandbox/ankushgautm/2843419
Git commands :
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/ankushgautm/2843419.git node_alias_history
cd node_alias_history
pareview.sh link :
https://pareview.sh/node/805
INSTALLATION :
* Install as you would normally install a contributed Drupal module. See:
https://drupal.org/documentation/install/modules-themes/modules-7
for further information.
CONFIGURATION :
configuration > Search and metadata > node alias history
Reviews of other projects :
https://www.drupal.org/node/2839903#comment-11871213
https://www.drupal.org/node/2843493#comment-11871238
https://www.drupal.org/node/2824182#comment-11871255
https://www.drupal.org/node/2843500#comment-11871592
https://www.drupal.org/node/2847916#comment-11901192
https://www.drupal.org/node/2848172#comment-11905690
https://www.drupal.org/node/2443003#comment-11967667
Comment | File | Size | Author |
---|---|---|---|
#46 | error_at_line_144.png | 44.37 KB | sjpagan |
Comments
Comment #2
Ankush_03Comment #3
Ankush_03Comment #4
rajveergangwarHi , agautam ,
Below are my manual review
Manual review of the 7.x-1.x branch:
Coding style issues:
Implements hook_help() in .module
line 171 , unused $data variable node_alise_history.module
line 203 , unused variable $num_of_results node_alise_history.module
variable initialisation should be on first on every function.
example for function get_node_alias_history_rows() should be like
$data = array();
$html = '';
$rows = array();
$nid = isset($_GET['nid']) ? $_GET['nid'] : '';
$alias = isset($_GET['alias']) ? $_GET['alias'] : '';
Readme template should be follow. Readme file should be more descriptive.
Comment #5
PA robot CreditAttribution: PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpsgitdrupalorgsandboxankushgautm2843419git
We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #6
Ankush_03Comment #7
Ankush_03Hi Rajveer,
I have fixed suggested changes please verify.
Comment #8
Ankush_03Comment #9
Ankush_03Comment #10
Ankush_03Comment #11
rajveergangwarPlease add validation in search form for node , as i am entering text value then form got submitted
Comment #12
Ankush_03Hi rajveer,
Thanks for reviewing the module, I have fixed suggested changes please verify.
Comment #13
Ankush_03Comment #14
rajveergangwarHi Ankush ,
Below are my manual reviews.
[+]
Goto admin/config/search/node-alias-history
press reset button (with empty nid)
error is coming Please enter only numeric value.
[+]
In your function node_alias_history_rows() , before printing data in table write secure code form preventing cross site scripting.
[+]
you should use rowCount() in your function function node_alias_history_existance($nid, $alias) for counting the result. As of now you are selecting all the rows then couting. It doesnt sence here.
Comment #15
rajveergangwarComment #16
Ankush_03Hi rajveer,
Thanks for reviewing the module, I have fixed suggested changes please verify.
Comment #17
Ankush_03Comment #18
Ankush_03Comment #19
Ankush_03Comment #20
rajat.dkte CreditAttribution: rajat.dkte as a volunteer and commentedHi,
File: node_alias_history.module:-
1. Line number 53 and 64
node_alias_history_node_insert
node_alias_history_node_update
We can use a generic function instead of these two functions,hence reducing code.
2. Line 103 and 104
We can directly return this variable $result->rowCount() in isset.
3. Line 118,125,etc...
We can use single quote instead of double.
4.Line 181,182, etc
We can use drupal_get_query_parameters instead of $_GET if possible.
5. Line 216 and 218
We can remove check_plain doesn’t from nid and alias.
6. Spelling mistake existance in node_alias_history_existance (existence)
7. Line number : 75, 97, etc
missing comment documentation for param.
Comment #21
Ankush_03Hi rajat ,
Thanks for reviewing the module, I have fixed suggested changes please verify.
Comment #22
Ankush_03Comment #23
Ankush_03Comment #24
Ankush_03Comment #25
Ankush_03Comment #26
Ankush_03Comment #27
klausifixing tags.
Comment #28
Manav CreditAttribution: Manav as a volunteer and at QED42 commentedHi @agautam
Module is working as expected. I have checked your module on pareview.sh (https://pareview.sh/node/947)
Manual Review
No major issues found. Code looks good to me both functionality wise and code vise. Didn't find any issue on pareview.sh (https://pareview.sh/node/947)
This review uses the Project Application Review Template.Code looks good.
Comment #29
visabhishek CreditAttribution: visabhishek as a volunteer and at Azri Solutions commented@manav : Looks like you forgot to change the status. Is this now RTBC after your review or are there application blockers left and this should be "needs work"?
Comment #30
Manav CreditAttribution: Manav as a volunteer and at QED42 commentedComment #31
sumit.prajapati CreditAttribution: sumit.prajapati commentedHi Ankush
File: node_alias_history.module:-
Line no 117
There are spelling mistake (Search Alies) and missing t() function.
As a suggestion-
You can add sorting on time stamp basis
Comment #32
Ankush_03Hi sumit ,
Thanks for reviewing the module, I have fixed suggested changes please verify.
Comment #33
Ankush_03Comment #34
rajveergangwarComment #35
jeetendrakumar CreditAttribution: jeetendrakumar as a volunteer and at HyTechPro.com commented@agautam,
Suggestions:
1. Please add some messages when we click on submit or reset form button.
2. reset button should be visible when we search any alias.
Rest of functionality is working fine for me.
Comment #36
Ankush_03Hi jeetendrakumar ,
Point 1 : Give me example which type of message add on submit and reset button.
Point 2 : Reset Link is available on form in case of searching.
Comment #37
Ankush_03Hi Team ,
Any update about publish status?
Comment #38
Ankush_03Comment #39
klausiadding project page.
Comment #40
klausimanual review:
<script>alert('XSS');</script>
as path alias for a node then this table show a nasty javascript popup. You need to sanitize user provided text before printing, same as for the node title. Make sure to read https://www.drupal.org/node/28984 again. And please don't remove the security tag, we keep that for statistics and to show examples of security problems.Comment #41
visabhishek CreditAttribution: visabhishek as a volunteer and at Azri Solutions commentedHi agautam,
Please take another review bonus for next git admin review.
Comment #42
klausi@visabhishek: having 6 reviews is enough to keep the review bonus tag :) See https://www.drupal.org/node/1975228
Comment #43
visabhishek CreditAttribution: visabhishek as a volunteer and at Azri Solutions commented@klausi : Thanks for correcting me.
Comment #44
Ankush_03Hi @klausi,
Thanks for reviewing the module, I have fixed suggested changes please verify.
Comment #45
Ankush_03Comment #46
sjpagan CreditAttribution: sjpagan commentedFix error at line 144
Comment #47
sjpagan CreditAttribution: sjpagan commentedComment #48
Ankush_03Comment #49
Ankush_03Hi sjpagan,
Thanks for reviewing the module, I have fixed suggested changes please verify.
Comment #50
sjpagan CreditAttribution: sjpagan commentedHi @agautam,
very well, I tested the module is doing his job, a great way to track the changes of alias.
Comment #51
klausimanual review:
Otherwise looks good to me.
Thanks for your contribution, Ankush!
I updated your account so you can promote this to a full project and also create new projects as either a sandbox or a "full" project.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and stay involved!
Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
Thanks to the dedicated reviewer(s) as well.
Comment #52
Ankush_03Thanks klausi! Will review the materials you provided and continue to stay involved in the review process.
Comment #53
Ankush_03Hi @klausi,
I have publish my module on below link in drupal.org
www.drupal.org/project/node_alias_history
But it is not showing green and stable release tag can u help me how to fix it.
Comment #54
Ankush_03