Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Photos is an image album module providing multi-user album features. It also provides tools to create private and password protected galleries. The module integrates with other modules including Plupload for multi-image uploading and Crop API for cropping images.
Project page
https://www.drupal.org/project/photos
Git clone command
git clone --branch 8.x-4.x https://git.drupal.org/project/photos.git
PAReview:
https://pareview.sh/node/2484
Comments
Comment #2
PA robot CreditAttribution: 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
jarodriguez CreditAttribution: jarodriguez as a volunteer and commentedHi Nathaniel,
I have been reviewing your module and found that you have used depreciated db_queries in your codebase instead we should use dependency injection for database connection.
Comment #4
Nathaniel CreditAttribution: Nathaniel commentedComment #5
malaynayak CreditAttribution: malaynayak as a volunteer and at TA Digital commentedHi @Nathaniel,
I have checked your module coding standards with phpcs and its looking good. However I got the following results from eslint while checking the js coding standards.
eslint photos/js/photos.dragndrop.js
eslint photos/js/photos.jeditable.js
Please have a look.
Thanks
Comment #6
malaynayak CreditAttribution: malaynayak as a volunteer and at TA Digital commentedHi @Nathaniel,
One thing I have noticed that you have directly used PHP super-globals($_GET) across multiple files e.g PhotosAlbum.php, PhotosAlbumController.php etc in your module.
I would like to suggest you to use Symfony Request object instead.
Please follow this link for more information.
Thanks
Comment #7
munish.kumar CreditAttribution: munish.kumar commentedHi @Nathaniel,
I have reviewed your module and found that in your controller files you have called a service in a static way. e.g.
1.In your PhotosController.php you have called current user service directly like
$account = \Drupal::currentUser();
2. In your PhotosAlbumController.php you have called
$nid = \Drupal::routeMatch()->getParameter('node');
Instead of this you should use dependency injection to use these services. Dependency injection is the right(better) way to call these services. You should follow this link to know more about dependency injection and you can also find the information how to use dependency injection in your module.
Comment #8
Nathaniel CreditAttribution: Nathaniel commentedThanks for the tips and reviewing the code!
Updated dependency injection for the controllers and forms. Cleaned up the $_GET and $_POST super-globals. Cleaned up the eslint errors and warnings.
Comment #9
malaynayak CreditAttribution: malaynayak as a volunteer and at TA Digital commentedHi @nathaniel,
The code looks good. Making RTBC.
Comment #10
apadernoThank you for your contribution!
I am going to update your account so you can opt into security advisory coverage now.
These are some recommended readings to help with excellent maintainership:
You can find more contributors chatting on the IRC #drupal-contribute channel. So, come hang out and stay involved.
Thank you, 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.
I thank all the dedicated reviewers as well.
Comment #11
apaderno