[1.x] Media popup

Created on 6 December 2023, 7 months ago
Updated 11 December 2023, 7 months ago

This module gives the popup field formatter for the media field such us remote video, video, image, file.

Project link

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

📌 Task
Status

Fixed

Component

module

Created by

🇮🇳India RamaiyaA MP indore

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @RamaiyaA
  • 🇮🇳India vishal.kadam Mumbai

    Thank you for applying!

    Please read Review process for security advisory coverage: What to expect for more details and Security advisory coverage application checklist to understand what reviewers look for. Tips for ensuring a smooth review gives some hints for a smoother review.

    The important notes are the following.

    • If you have not done it yet, you should run phpcs --standard=Drupal,DrupalPractice on the project, which alone fixes most of what reviewers would report.
    • For the time this application is open, only your commits are allowed.
    • The purpose of this application is giving you a new drupal.org role that allows you to opt projects into security advisory coverage, either projects you already created, or projects you will create. The project status won't be changed by this application and no other user will be able to opt projects into security advisory policy.
    • We only accept an application per user. If you change your mind about the project to use for this application, or it is necessary to use a different project for the application, please update the issue summary with the link to the correct project and the issue title with the project name and the branch to review.

    To the reviewers

    Please read How to review security advisory coverage applications , Application workflow , What to cover in an application review , and Tools to use for reviews .

    The important notes are the following.

    • It is preferable to wait for a Code Review Administrator before commenting on newly created applications. Code Review Administrators will do some preliminary checks that are necessary before any change on the project files is suggested.
    • Reviewers should show the output of a CLI tool only once per application.
    • It may be best to have the applicant fix things before further review.

    For new reviewers, I would also suggest to first read In which way the issue queue for coverage applications is different from other project queues .

  • 🇮🇳India AnokR

    Thank you for applying!
    Please fix PHPC issues

    FILE: ...ia_popup/src/Plugin/Field/FieldFormatter/MediaPopupFormatter.php
    ----------------------------------------------------------------------
    FOUND 0 ERRORS AND 7 WARNINGS AFFECTING 7 LINES
    ----------------------------------------------------------------------
      61 | WARNING | \Drupal calls should be avoided in classes, use
         |         | dependency injection instead
      65 | WARNING | Line exceeds 80 characters; contains 87 characters
      85 | WARNING | \Drupal calls should be avoided in classes, use
         |         | dependency injection instead
      91 | WARNING | \Drupal calls should be avoided in classes, use
         |         | dependency injection instead
     108 | WARNING | \Drupal calls should be avoided in classes, use
         |         | dependency injection instead
     109 | WARNING | \Drupal calls should be avoided in classes, use
         |         | dependency injection instead
     129 | WARNING | \Drupal calls should be avoided in classes, use
         |         | dependency injection instead
    ----------------------------------------------------------------------
    
    Time: 306ms; Memory: 10MB
    
    [Finished in 340ms]
  • 🇮🇹Italy apaderno Brescia, 🇮🇹
  • 🇮🇳India RamaiyaA MP indore
  • 🇮🇳India RamaiyaA MP indore
  • Status changed to Needs work 7 months ago
  • 🇮🇳India hemant-gupta New Delhi

    Look into this-

    FILE: media_popup/media_popup.module
    -------------------------------------------------------------------------------------------------------
    FOUND 3 ERRORS AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------
    1 | ERROR | [x] Missing file doc comment
    1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
    1 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
    -------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -------------------------------------------------------------------------------------------------------
    Time: 46ms; Memory: 6MB

  • Status changed to Needs review 7 months ago
  • 🇮🇹Italy apaderno Brescia, 🇮🇹

    Is there anything else that should be changed?

    We should avoid using PHP_CodeSniffer for a single file each time.

  • Status changed to Needs work 7 months ago
  • 🇮🇳India vishal.kadam Mumbai

    1. Fix phpcs issues.

    phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml media_popup/
    
    FILE: media_popup/media_popup.services.yml
    --------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    --------------------------------------------------------------------------
     5 | ERROR | [x] Expected 1 newline at end of file; 0 found
    --------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    --------------------------------------------------------------------------
    
    
    FILE: media_popup/media_popup.libraries.yml
    ---------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ---------------------------------------------------------------------------
     10 | ERROR | [x] Expected 1 newline at end of file; 2 found
    ---------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ---------------------------------------------------------------------------
    
    
    FILE: media_popup/media_popup.module
    -----------------------------------------------------------------------------
    FOUND 2 ERRORS AFFECTING 1 LINE
    -----------------------------------------------------------------------------
     1 | ERROR | [x] Missing file doc comment
     1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
    -----------------------------------------------------------------------------
    PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -----------------------------------------------------------------------------
    
    
    FILE: media_popup/src/Plugin/Field/FieldFormatter/MediaPopupFormatter.php
    -----------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -----------------------------------------------------------------------------
     126 | WARNING | Line exceeds 80 characters; contains 87 characters
    -----------------------------------------------------------------------------
    
    
    FILE: media_popup/README.txt
    ------------------------------------------------------------------------
    FOUND 1 ERROR AND 2 WARNINGS AFFECTING 3 LINES
    ------------------------------------------------------------------------
     52 | ERROR   | [x] Expected 1 newline at end of file; 2 found
    ------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ------------------------------------------------------------------------
    

    2. FILE: src/Services/MediaPopupFileUrlGenerator.php

      public function generateAbsoluteFileUrl($uri) {
        return file_create_url($uri);
      }

    Remove use of deprecated function file_create_url()

  • 🇫🇷France nikral

    Hook_help:
    - function media_popup_help($route_name, RouteMatchInterface $route_match) You can remove the param RouteMatchInterface $route_match if you don't need it.
    In your js:
    - attach: function (context, settings) You can remove the param settings if you don't need it
    - Use const/let instead of "var"in a block if possible.

  • Status changed to Needs review 7 months ago
  • 🇮🇳India RamaiyaA MP indore

    I fixed phpcs issues and remove deprecated function file_create_url() on src/Services/MediaPopupFileUrlGenerator.php

  • Assigned to apaderno
  • Status changed to RTBC 7 months ago
  • 🇮🇹Italy apaderno Brescia, 🇮🇹

    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 Slack #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 reviewers.

  • Status changed to Fixed 7 months ago
  • 🇮🇹Italy apaderno Brescia, 🇮🇹
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.69.0 2024