I've created a module that shows all existing URL aliases assigned to a node on a node edit page. I had a problem on one of the sites when multiple aliases were created for the same node that caused issues with some business logic and SEO. This module is meant to make it more transparent to site admins how many aliases are assigned to a node and also allow them to edit and delete those if user has necessary permissions.
Project sandbox page:
https://www.drupal.org/sandbox/artem.kolotilkin/2503121
Git clone command:
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/artem.kolotilkin/2503121.git show_node_aliases
Thanks!
Manual reviews of other projects:
https://www.drupal.org/node/2514954#comment-10083012
https://www.drupal.org/node/2513090#comment-10083952
https://www.drupal.org/node/2509862#comment-10084058
Comments
Comment #1
temkin commentedComment #2
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxartemkolotilkin250312...
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 #3
temkin commentedFixed issues identified by automated review tool.
Comment #4
himmatbhatia commentedHello,
You have used hook_form_FORM_ID_alter(). But the comment above of this you have written ( Implements hook_form_alter() ).
It should be Implements hook_form_FORM_ID_alter().
Also in the same function show_node_aliases_form_node_form_alter you have not $form_id as a last arguments.
Thanks
Comment #5
himmatbhatia commentedComment #6
himmatbhatia commentedHello,
You have not used hook ( hook_help ). This hook provide help regarding the module in the admin interface.
So user can see what this module does
Thanks
Comment #7
berdyshev commentedComment #8
temkin commentedThank you for the review guys. You remarks were addressed. Here is the list:
1. Added hook_help with relevant information.
2. Updated comment to correctly mention hook_form_FROM_ID_alter
3. Switched to render array to output module data
4. Switched SQL query to Drupal's chaining.
Please give it another look and let me know if anything else id needed.
- Artem
Comment #9
darol100 commentedAutomated Review
Pareview.sh - It show couple errors., http://pareview.sh/pareview/httpgitdrupalorgsandboxartemkolotilkin250312...
Coder Review
Coder complains are the same as the 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 #10
klausiNo need to postpone this, if there is not enough code we will do a single project promotion automatically.
Anything else that you found or should this be RTBC instead?
Comment #11
temkin commentedThanks guys!
More than happy to have it as a single project. I have plans to develop a different more robust module than that. There is just a need for this specific functionality on multiple projects, that's why wanted to have it as a contrib module.
I fixed spacing issues reported by Pageview.sh. As for the code duplication, I don't think that Redirect module does the same thing. I have it installed and it doesn't really tell you all the aliases that are assigned to a node. What it shows is the list of redirects assigned to that page which is different. That's actually the whole purpose of the module to show aliases in addition to redirects as in some cases the combination of these two result in redirect loops.
Let me know if I'm missing something. And thanks again for a review!
Comment #12
darol100 commentedI do not see any blockers.
Comment #13
temkin commentedComment #14
naveenvalechaReview of the 7.x-1.x branch (commit f7dcd39):
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. You have to get a review bonus to get a review from me.
Manual Review :
Duplication : Redirect module provides the similar fucntionality AFAIK,As we are not blocking the issues with duplication anymore.
So RTBC
Assigning to sreynen to give it a final look if he has time.
Comment #15
temkin commentedThanks, naveenvalecha! Looking forward to sreynen's review and approval.
Meanwhile, issues identified by a previous review were resolved:
1. Done
2. Done
3. Done
4. Done
As for the duplication, I know it looks confusing, but Redirect module shows different information. It shows list of Redirects assigned to the node, while my module shows list of aliases which is not the same. Actually, a combination of these 2 can cause really bad things on the site, like loop redirects. Here is an example. You have About Us page with an alias "about-us". You want to change it to be just "about"and make this change. Sometimes, instead of updating an alias to a new one, system creates a new alias and as a result you have 2 aliases assigned - "about-us" and "about". I know that because I had it happened on multiple sites. That's an issue that needs to be resolved separately, but there is a fact that it happens. If you have Redirect module installed it will also create a redirect from "about-us" to "about". So now you have a node with 2 aliases and a redirect from one alias to another. The result is - user tries to open "about-us" page. Redirect kicks in and redirects to "about". System knows that "about" is an alias of node/X and opens that page. Sometimes during that process it also tries to get a correct alias for that node, and gets "about-us" alias which triggers a redirect again. That causes infinite loop...
Sorry, for a long explanation, I just wanted to show that alias and redirects are not the same and a combination of those can cause problems. There may be other cases when it's helpful to see all aliases assigned to a page, especially for multilingual sites.
Comment #16
jelenakrmar commentedIn hook help, you have this line of code:
Your module's name is show_node_aliasES, and because of that typo, help links do not appear on modules listing page, nor on help page....
You have the same typo on line 14, in file_get_contents function....
In readme.txt, you should mention that this module requires path module.
Comment #17
temkin commentedThanks jelenakrmar,
I've fixed the typo and updated Readme file.
Comment #18
cweagansThanks for your contribution!
I have promoted this project from sandbox to full project on your behalf.
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.