project field_group does not implement hook_requirements

Created on 26 August 2024, 3 months ago
Updated 8 September 2024, 2 months ago

Problem/Motivation

The Drupal monitoring project can be configured to report the status of enabled modules implementations. One of the sensors checks the implementation of hook_requirements.

Enabling this sensor raises the error

{"failed_sensor_count":1,"failed_sensors":[{"sensor_name":"core_requirements_field_group","sensor_message":"RuntimeException: Requirement function field_group_requirements not found"}]}%

Steps to reproduce

Install drupal/field_group
Install drupal/monitoring
Enable the monitoring sensor 'Core Requirements' for 'Module: Field group' (admin/config/system/monitoring/sensors/core_requirements_field_group)

Proposed resolution

Implement hook_requirements

Remaining tasks

User interface changes

n/a

API changes

n/a

Data model changes

n/a

📌 Task
Status

Postponed: needs info

Version

3.0

Component

Code

Created by

🇦🇺Australia GRO

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

Comments & Activities

  • Issue created by @GRO
  • Status changed to Postponed: needs info 2 months ago
  • 🇩🇪Germany Anybody Porta Westfalica

    Can someone explain why that should be implemented?

  • 🇨🇴Colombia jasonac91

    Hello,

    I'm looking to understand more about the issue with the Field Group module not implementing hook_requirements. Here are a few questions to help clarify the situation:

    Could you provide some insight into what specific functionalities are affected by the absence of hook_requirements in the Field Group module? Does this impact the module's stability or functionality in any significant way?

    Is the error message Requirement function field_group_requirements not found affecting any other operational aspects of the site, or is it isolated to when this specific sensor is enabled in the monitoring settings?

    What is the primary motivation for implementing hook_requirements in the Field Group module? Is it primarily for compliance with best practices, or are there specific scenarios where the absence of this hook leads to issues in system monitoring?

    How frequently do users enable the 'Core Requirements' sensor for the Field Group module? Is this an essential part of typical site monitoring, or is it used in specific troubleshooting scenarios?

    Are there any temporary workarounds that have been identified, or is the implementation of hook_requirements the only proposed solution?

    Thank you for your assistance in resolving these queries.

Production build 0.71.5 2024