Description:-
To display our team members in grid into single page with special effects for each members information. Easily identify the hierarchical structure of organisation. Who are all involved
in which designation and their names.
Module Features:-
a) Admin can easily maintain the configuration for this page
b) Using jquery effects display the information about each member
c) Selection option for Image Frame / Background Shapes
d) Define the position for content and image
e) Maintain custom css classes for container
f) Choose the orders for display the members in the page
g) Members personal social contacts information like facebook, twitter, google+, youtube etc.
h) No need to create separate page, it will create automatically
Sandbox Detail:-
You can be found here: https://www.drupal.org/sandbox/clariontechnologies/2695351
Code:-
git clone --branch 7.x-1.x https://git.drupal.org/sandbox/clariontechnologies/2695351.git meet_our_team
cd meet_our_team
Pareview result:-
http://pareview.sh/pareview/httpgitdrupalorgsandboxclariontechnologies26...
Manual reviews for other projects
https://www.drupal.org/node/2667046#comment-11063847
https://www.drupal.org/node/2701643#comment-11064001
https://www.drupal.org/node/2700917#comment-11062377
Comments
Comment #2
PA robot commentedWe 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
harish b commentedHi,
please clear basic errors before you push your project which is shown in pareview result ::
Git errors:
Git default branch is not set, see the documentation on setting a default branch.
Review of the 7.x-1.x branch (commit 5467542):
ESLint has found some issues with your code (please check the JavaScript coding standards).
1. /var/www/drupal-7-pareview/pareview_temp/js/meet-our-team.js: line 22, col 10, Error - 'popupinfo' is defined but never used (no-unused-vars)
Permission Denied ::: Unable to take clone.
Comment #4
madan879 commentedComment #5
madan879 commentedHi,
I have updated the "git clone" url. Please check and let me know, still you are facing issue.
And 'popupinfo' function is calling dynamically, based on admin configuration like if target page is 'same page', then only this function shows in the onclick event.
Comment #6
madan879 commentedComment #7
naveenvalechaComment #8
sandipauti commentedHi ,
Reviewed your code manually here is some suggestion for you.
1. Please remove PHP logic from "views-view-fields--meet-our-team.tpl.php" file and preprocess function for it.
2. Add your JavaScript code inside Drupal.behaviors (Optional).
3. Use alise $ for Jquery(optional).
Thanks
Comment #9
sandipauti commentedComment #10
madan879 commentedThank you for your review, sandipauti..
As you mentioned suggestions are implemented, so please kindly check and update the status...
Comment #11
nitinsp commentedHI Madan,
Automated Review:
http://pareview.sh/pareview/httpgitdrupalorgsandboxclariontechnologies26...
Please fix the issues in the pareview.
Manual Review:
I reviewed your module, no any issue found in manual code review
Thanks
Nitin
Comment #12
nitinsp commentedComment #13
madan879 commentedThank you for your review, nitinsp...
For pareview.sh error, I already commented on https://www.drupal.org/node/2701911#comment-11058751
Please kindly check and change status...
Comment #14
klausiMinor coding standard issues are surely not application blockers, please do a real manual review.
Comment #15
nitinsp commentedThen its ok.
Comment #16
klausiThis issue is not fixed? See the workflow: https://www.drupal.org/node/532400
Comment #17
braindrift commentedHi madan879,
in your
hook_uninstall()you are deleting a view. If this view is in default state, you don't need to delete it. If it is overwritten by the site builder you might delete his/her work since you don't know how many changes he/she made to this view or if this view was already there before the user enabled your module. I think this is not a good idea.You have many variables so you should consider to use one of the methods suggested by Proper way to bulk-delete variables on module uninstall to be sure to delete all your variables.
Best regards
Comment #18
madan879 commentedThank you for your review, braindrift...
As you mentioned issues are fixed. Please kindly check and let me know...
Comment #19
braindrift commentedHi madan879,
have you also read the comments on Proper way to bulk-delete variables on module uninstall? You should not delete variables directly from db.
I would suggest something like this
Best regards
Comment #20
madan879 commentedThanks braindrift...
As you suggested code I have added in install file. Please kindly check and update me
Comment #21
REDrupalPlugin commentedManual 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.
meet_our_team_node_type_update()seems to do the same thing for each of theifconditional. It would be easier to read if the common parts were broken out into its own function.This review uses the Project Application Review Template.
Overall, I don't see any major issues.
Comment #22
REDrupalPlugin commentedComment #23
th_tushar commentedHi @madan879,
There is a security vulnerability in your module.
Instead of print the value, use Drupal's render function in template to display fields/user entered data in template files.
There is no need to override the template for node page as you are using the default node template name format, so hook_theme can be removed.
In hook_node_type_update() function, same code is being repeated for social information, it can be moved to a separate function and change data as per parameters.
Write proper comment for meet_our_team_preprocess_views_view_fields__meet_our_team() function.
Changing the status back to "Needs work". you can change the status back to "Needs review" once the issue is fixed.
Comment #24
madan879 commentedThanks REDrupalPlugin and th_tushar for reviewed my code..
@th_tushar, as you mentioned issues are fixed. Only one thing need to discuss about below:
"There is no need to override the template for node page as you are using the default node template name format, so hook_theme can be removed."
Its not default template, I have changed node template design and I have used same template content on showing in the team page, if you change "configuration setting for 'click Action' as 'open in same page'". You can see node content in same page itself. If I removed hook_theme, I couldn't able to show designed node content on that page. If you have any suggestion, please let me know...
Thanks
Comment #25
klausi/meet-our-team is vulnerable to XSS exploits. If I enter
<script>alert('XSS title');</script>as node title then I will get a nasty javascript popup on this page. You need to sanitize user provided text before printing, make sure to read https://www.drupal.org/node/28984 again.Comment #26
klausiIn this case you must use $output instead of $row in views-view-field--meet-our-team--title.tpl.php or sanitize instead. The docs even say so: "$row: The raw SQL result that can be used", which is not XSS safe for printing to HTML.
Comment #27
madan879 commented@klausi, Thanks for your review..
As you mentioned about security vulnerable in tpl files.
So I have used check_plain() for views-view-field--meet-our-team--title.tpl.php and render_field() for views-view-fields--meet-our-team.tpl files. Please kindly check and let me know..
Comment #28
tomvv commentedPareview.sh test still finds stuff:
From manual check I found:
Nice concept + comments and Readme.txt look fine, helping out the user in the end.
Comment #29
madan879 commentedThank you for your review, tomvv...
As you mentioned issues are fixed. For pareview.sh error, I already commented on https://www.drupal.org/node/2701911#comment-11058751
Please kindly check and let me know.....
Comment #30
sandipauti commentedHey madan879,
Still there is some PHP logic found in template file, Is there is now way to add this logic to preprocess function and render variable to .tpl file only.
Thanks,
Comment #31
madan879 commentedThank you for your review, sandipauti..
As you mentioned thing is fixed.. So please check and update the status..
Comment #32
lhuria94 commentedHi @madan879
Ran code sniffer: And found these small indentation issue which are quite important according to Drupal coding practices:
FILE: .../meet_our_team/themes/node--meet_our_team.tpl.php
----------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------
113 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
118 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
----------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: .../meet_our_team/themes/views-view-fields--meet-our-team.tpl.php
----------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
----------------------------------------------------------------------
39 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
46 | ERROR | [x] Spaces must be used for alignment; tabs are not
| | allowed
49 | ERROR | [x] Spaces must be used for alignment; tabs are not
| | allowed
55 | ERROR | [x] Spaces must be used for alignment; tabs are not
| | allowed
95 | ERROR | [x] Spaces must be used for alignment; tabs are not
| | allowed
----------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
Other than this I could not find any issue in this. Looks fine.
Comment #33
klausi@lhuria94: I think you forgot to change the status. Is this now RTBC after your review or are there any application blockers left?
Comment #34
madan879 commentedThank you for your review, @lhuria94..
I have fixed as you mentioned CS issue.. Please check and change status...
Comment #35
lhuria94 commented@klausi - Sorry, I forgot to do that. Some minor fixes, No Application blockers. This is RTBC according to my review.
@madan879 - Thanks for making those changes.
Comment #36
madan879 commented@lhuria94.. As you mentioned issues are fixed. So there is no application blocker, could you please review and change status to RTBC.
Comment #37
lhuria94 commentedComment #38
klausiGit errors:
Review of the 7.x-1.x branch (commit 00209d5):
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:
Although you should definitely fix those issues they are not critical application blockers.
Thanks for your contribution, Madan!
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 #39
madan879 commentedThank you @klausi for approved my project... I have learned many things like code standards, process etc...
Surely I will fix those issues as you mentioned.. But I don't get 'Promote' option in my below link:
https://www.drupal.org/node/2695351/edit
I got reference link for Promoting sandbox projects to full projects,
https://www.drupal.org/node/1068952
Could you please check and update me, that will helpful to me for promote this project...
Thanks for everyone for reviewed my project...
Comment #40
hesnvabr commentedSet the Default git branch:-
Edit your project
Click the "Default branch" tab
Select the desired branch
Click Save
In meet-our-team.js popupinfo is defined but never used
(no unused vars)
Comment #41
madan879 commentedThank you for your review, pranavbabbar ...
As you mentioned issues are fixed. For pareview.sh error, I already commented on https://www.drupal.org/node/2701911#comment-11058751
Comment #42
madan879 commentedHi @Klausi,
Please kindly look into below comment link:
https://www.drupal.org/node/2701911#comment-11169347
Please kindly resolved 'promote' option issue for my account... I am waiting almost a week for promote option for this project..
Thanks
Madan
Comment #43
klausiHm, because the sandbox does not belong to your account it seems you cannot promote it.
Did that for you: https://www.drupal.org/project/meet_our_team
Now that this experimental project has been promoted, you'll need to update the URL of your remote repository or reclone it.
Comment #44
madan879 commentedThanks @Klausi..
But still I am facing problem for recloning by using below URL:
git clone --branch 7.x-1.x madan879@git.drupal.org:project/2695351.git
It throws error "fatal: repository 'http://git.drupal.org/project/2695351.git/' not found"
But I used to meet_our_team.git instead of 2695351.git, so its look like
git clone --branch 7.x-1.x madan879@git.drupal.org:project/meet_our_team.git
Its cloned with no errors. So I have change one file and commit & pushed. But there is no download options shown and commit count also not increased.
In Edit link also there is no such sub links like Release and default branch aren't available..
So please kindly help me to update full project....
Thanks
Madan
Comment #45
klausiThe git instructions are here: https://www.drupal.org/project/meet_our_team/git-instructions
Comment #46
klausiAh, you need to use the project short name in the git URL. Filed #2726599: Sandbox repositories are occasionally not fully promoted & Git events are sometimes not recorded.
Comment #47
madan879 commented@Klausi, Thanks for resolved git issues and released this project..