APIv4 - remove unnecessary field from System::check
authorColeman Watts <coleman@civicrm.org>
Thu, 10 Feb 2022 03:40:49 +0000 (22:40 -0500)
committerColeman Watts <coleman@civicrm.org>
Thu, 10 Feb 2022 03:40:49 +0000 (22:40 -0500)
Following on #22730, this removes the 'severity' field from the System::check api
because it's redundant with 'severity_id:name', and does not appear to be used anywhere.

Civi/Api4/Action/System/Check.php

index 19df2a2a1150c1a8d3fdebda38991d93d580ad09..86ab4cbb550f0bc954c133b4c4cc757becf7897b 100644 (file)
@@ -83,13 +83,6 @@ class Check extends \Civi\Api4\Generic\BasicGetAction {
         'description' => 'crm-i class of icon to display with message',
         'data_type' => 'String',
       ],
-      [
-        'name' => 'severity',
-        'title' => 'Severity',
-        'description' => 'Psr\Log\LogLevel string',
-        'data_type' => 'String',
-        'options' => array_combine(\CRM_Utils_Check::getSeverityList(), \CRM_Utils_Check::getSeverityList()),
-      ],
       [
         'name' => 'severity_id',
         'title' => 'Severity ID',
@@ -100,7 +93,7 @@ class Check extends \Civi\Api4\Generic\BasicGetAction {
       [
         'name' => 'is_visible',
         'title' => 'is visible',
-        'description' => '0 if message has been hidden by the user',
+        'description' => 'FALSE if message has been hidden by the user',
         'data_type' => 'Boolean',
       ],
       [