Drupal SearchUnify Connector - Security Advisory Coverage Application for Drupal 11 (2.0.0 Release)

Created on 22 October 2024, 2 months ago

Module Name: Drupal SearchUnify Connector

Description: The Drupal SearchUnify Connector (SUDC) module integrates SearchUnify with Drupal to enhance search functionality on Drupal websites. The current version (2.0.0) is fully compatible with Drupal 11.

Project Page: https://www.drupal.org/project/sudc

Git Clone Instructions: git clone https://git.drupalcode.org/project/sudc.git

Drupal Core Version: Drupal 11.x

Current Release: 2.0.0

📌 Task
Status

Active

Component

module

Created by

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

Comments & Activities

  • Issue created by @neelam-webdev
  • 🇮🇳India vishal.kadam Mumbai

    Thank you for applying!

    For these applications, we need a project where, in at least the branch used for the application, most of the commits (if not all the commits) have been done from the user who applies. You have only renamed the module files and changed namespaces in files in your commit.

    The purpose of these applications is reviewing a project to understand what the person who applies understands about writing secure code that follows the Drupal coding standards and correctly uses the Drupal API, not what all the project maintainers collectively understand about those points.

    This application can only continue with a project (and a branch) where all the commits (or the majority of the commits) have been done by you.

  • 🇮🇹Italy apaderno Brescia, 🇮🇹

    The fist commit done by neelam-webdev significantly changed the files. This application is acceptable.

  • 🇮🇹Italy apaderno Brescia, 🇮🇹

    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 will not be changed by this application; once this application is closed, you will be able to change the project status from Not covered to Opt into security advisory coverage. This is possible only 14 days after the project is created.
      Keep in mind that once the project is opted into security advisory coverage, only Security Team members may change coverage.
    • Only the person who created the application will get the permission to opt projects into security advisory coverage. No other person will get the same permission from the same application; that applies also to co-maintainers/maintainers of the project used for the application.
    • 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 project moderator before posting the first comment on newly created applications. Project moderators 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 vishal.kadam Mumbai

    1. Fix phpcs issues.

    See attached file - sudc-phpcs-issues.txt

    2. FILE: sudc.libraries.yml

    version: VERSION

    VERSION is only used by Drupal core modules. Contributed modules should use a literal string that does not change with the Drupal core version a site is using.

    3. FILE: sudc.module

    /**
     * @file
     * Functions to support theming in the SU module.
     */

    The usual description for a .module file is Hook implementations for the [module name] module. where [module name] is the module name given in the .info.yml file.

    4. FILE: README.txt

    Replace README.txt with README.md file, that should follow the content and formatting described in README.md template .

    5. FILE: templates/helpcontent.html.twig, templates/su-results.html.twig, templates/sufooter.html.twig

    Twig code needs to be correctly indented. Drupal uses two spaces for indentation, not four spaces or tabs.

    6. FILE: templates/su-results.html.twig

        <script type="text/javascript" src="{{ data.cdn }}{{ data.uid }}/an.js"></script>
        <script type="text/javascript" src="{{ data.cdn }}{{ data.uid }}/main.js"></script>
        <link rel="stylesheet" href="{{ data.cdn }}{{ data.uid }}/main.css">

    Move all scripts (JavaScript) and styles (CSS) into a library and attach them. See the process here .

    {# <script type="text/javascript" src="{{ data.epoint }}/resources/search_clients_custom/{{ data.uid }}/external_scripts.js"></script> #}

    {# <link rel="stylesheet" href="{{ data.epoint }}/resources/search_clients_custom/{{ data.uid }}/external_styles.css"> #}

    Remove commented code.

    7. FILE: js/index.js

    Javascript code needs to be correctly indented. Drupal uses two spaces for indentation, not four spaces or tabs.

    8. FILE: src/Controller/SuResultController.php

        /**
         * Class constructor.
         *
         * @param \sudc\CommonCalls              $ccall    CommonCalls service.
         * @param \sudc\RestCalls                $rcall    RestCalls service.
         * @param \Config\ConfigFactoryInterface $cfactory configuration factory service.
         */
        public function __construct(

    FILE: src/Services/CommonCalls.php

        /**
         * The constructor.
         *
         * @param \Render\RendererInterface $rendertemp The renderer interface.
         */
        public function __construct(RendererInterface $rendertemp)

    FILE: src/Services/RestCalls.php

        /**
         * The constructor.
         *
         * @param \GuzzleHttp\Client             $httpClient HTTP client manager service
         * @param \config\ConfigFactoryInterface $cfactory   Config factory service
         *
         * @throws \Exception
         *   If the request content is invalid.
         */
        public function __construct(Client $httpClient, ConfigFactoryInterface $cfactory)

    The documentation comment for constructors is not mandatory anymore, If it is given, the description must be Constructs a new [class name] object. where [class name] includes the class namespace.

Production build 0.71.5 2024