I created the module https://www.drupal.org/project/mobile_device_detection, and I want you to check it. The module determines which device went to the site. The module is integrated into views and into blocks. You can specify on which device the block or view should be displayed.

Project link

https://www.drupal.org/project/mobile_device_detection

Git instructions

git clone --branch 8.x-3.x https://git.drupalcode.org/project/mobile_device_detection.git

CommentFileSizeAuthor
#4 mdd_block.png88.75 KBdepthinteractive
mdd.png173.23 KBdepthinteractive

Comments

depthinteractive created an issue. See original summary.

depthinteractive’s picture

Issue summary: View changes
avpaderno’s picture

Issue summary: View changes
Issue tags: -views, -mobile device, -mobile
depthinteractive’s picture

Issue summary: View changes
StatusFileSize
new88.75 KB
depthinteractive’s picture

Issue summary: View changes
avpaderno’s picture

Issue summary: View changes
klausi’s picture

Status: Needs review » Reviewed & tested by the community

Thanks for your contribution!

  • Remove LICENSE.txt, it will be added by drupal.org packaging automatically.
  • Coder Sniffer has found some issues with your code (please check the Drupal coding standards).
    
    FILE: ...l-8/modules/mobile_device_detection/mobile_device_detection.info.yml
    --------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    --------------------------------------------------------------------------
     1 | WARNING | Remove "datestamp" from the info file, it will be added by
       |         | drupal.org packaging automatically
    --------------------------------------------------------------------------
    
  • DrupalPractice has found some issues with your code, but could be false positives.
    
    FILE: ...modules/mobile_device_detection/src/Object/MobileDeviceDetection.php
    --------------------------------------------------------------------------
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    --------------------------------------------------------------------------
     59 | WARNING | \Drupal calls should be avoided in classes, use
        |         | dependency injection instead
     60 | WARNING | \Drupal calls should be avoided in classes, use
        |         | dependency injection instead
    --------------------------------------------------------------------------
    
  • No automated test cases were found, did you consider writing Simpletests or PHPUnit tests? This is not a requirement but encouraged for professional software development.

This automated report was generated with PAReview.sh, your friendly project application review script.

Manual review:
* mobile_device_detection.services.yml: all services that your module provides must be prefixed with the module name.
* MobileDeviceDetection: all the {@inheritdoc} comments are wrong because your class those not extend another class or implement an interface.
* $this->setCloudHeaders(): Expected 1 arguments. Found 0.
* "$entity = \Drupal::service('object.mdd');": $entity is not a good name here because that is usually used for nodes, users, terms etc in Drupal. You are getting your service, so maybe $detection_service?
* MobileDeviceDetectionExtenderPlugin: doc block is wrong, this class does something.

Otherwise looks good to me, did not see security issues.

klausi’s picture

The Git commits are not connected to your user account. You need to specify an email address. See https://www.drupal.org/node/1022156 and https://www.drupal.org/node/1051722

depthinteractive’s picture

A lot of thanks for review. I fixed issues which you have described.

What about test of course I will write it in a future. I do not have free time now because I have a lot of projects which are taking all my time.

Thanks!

avpaderno’s picture

Assigned: Unassigned » avpaderno
Status: Reviewed & tested by the community » Fixed

Thank you for your contribution! I am going to update your account.

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.

depthinteractive’s picture

Thanks a lot you too. I am very glad to meet so good people who have helped me and explained all what I should to do. It is important for me because I have some trouble with my English. And I appricate it! Thanks! And of course I will join to the group of reviewers.

depthinteractive’s picture

Hi. I right understand that I got through security advisory policy. If so when it will https://prnt.sc/nnfple disappeared and when download section will be green?

avpaderno’s picture

You need to edit the project to opt into security coverage (https://www.drupal.org/node/3049879/edit) and set a recommended major version (https://www.drupal.org/node/3049879/edit/releases) which is now set to None.

depthinteractive’s picture

Hooray! A lot of thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.