Expanding functionality to include status errors from client sites

Created on 13 January 2023, almost 2 years ago
Updated 18 April 2023, over 1 year ago

We found useful to include status error reporting in one of our projects.

This patch is inspired by contrib module Expose Status Report β†’

The goal is to provide an integer value with the total amount of errors found at status report admin page gathered from client sites.

Additionally this will update the former form based dashboard to incluide this new field.

By default this field is not added to the new view dashboard. Leaving users free to add this field by editing it from drupal admin interface.

In order to work, you it will require a patch in the client (module Status Dasboard Client β†’ , so the client adds this new info to the json file.

Having clients without this patch, souldnt produce any bug.

Note: As a new field definition is added, a drush updb is needed so the next update gets executed:

function status_dashboard_update_9106() {
+  $entity_definition_update = \Drupal::entityDefinitionUpdateManager();
+
+  $storage_definition = BaseFieldDefinition::create('integer')
+    ->setLabel(t('status errors'))
+    ->setDescription(t('Total number of status errors'))
+    ->setDefaultValue(0);
+
+  $entity_definition_update->installFieldStorageDefinition('status_errors', 'client_site', 'status_dashboard', $storage_definition);
+}
✨ Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain Diego Balboa LeΓ³n

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024