Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fb3b607bd1 | |||
| dad7c24bff |
@@ -158,7 +158,7 @@ function generateTicketHash($data)
|
|||||||
$issueSubtype = 'clock_skew';
|
$issueSubtype = 'clock_skew';
|
||||||
} elseif (stripos($title, 'cluster usage') !== false) {
|
} elseif (stripos($title, 'cluster usage') !== false) {
|
||||||
$issueSubtype = 'usage';
|
$issueSubtype = 'usage';
|
||||||
} elseif (stripos($title, 'OSD down') !== false || preg_match('/OSD\s+osd\.\d+\s+is\s+DOWN/i', $title)) {
|
} elseif (stripos($title, 'OSD down') !== false || preg_match('/osd\.\d+\s+is\s+DOWN/i', $title)) {
|
||||||
// Include the specific OSD ID so each individual OSD gets its own ticket
|
// Include the specific OSD ID so each individual OSD gets its own ticket
|
||||||
if (preg_match('/osd\.(\d+)/i', $title, $osdMatch)) {
|
if (preg_match('/osd\.(\d+)/i', $title, $osdMatch)) {
|
||||||
$issueSubtype = 'osd_down_' . $osdMatch[1];
|
$issueSubtype = 'osd_down_' . $osdMatch[1];
|
||||||
@@ -228,8 +228,12 @@ if ($existing) {
|
|||||||
|
|
||||||
if ($existingStatus !== 'Closed') {
|
if ($existingStatus !== 'Closed') {
|
||||||
// Ticket is still active — update title, escalate priority, and refresh
|
// Ticket is still active — update title, escalate priority, and refresh
|
||||||
|
<<<<<<< HEAD
|
||||||
// the description with the latest sensor data if the new report is more severe
|
// the description with the latest sensor data if the new report is more severe
|
||||||
// (lower priority number = higher severity).
|
// (lower priority number = higher severity).
|
||||||
|
=======
|
||||||
|
// description with latest sensor data.
|
||||||
|
>>>>>>> development
|
||||||
$changes = [];
|
$changes = [];
|
||||||
$updateSql = "UPDATE tickets SET updated_at = NOW(), updated_by = ?";
|
$updateSql = "UPDATE tickets SET updated_at = NOW(), updated_by = ?";
|
||||||
$bindTypes = "i";
|
$bindTypes = "i";
|
||||||
@@ -290,7 +294,7 @@ if ($existing) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$auditLog->log($userId, 'update', 'ticket', $existingId, array_merge(
|
$auditLog->log($userId, 'update', 'ticket', $existingId, array_merge(
|
||||||
$changes,
|
array_diff_key($changes, ['description_refreshed' => true]),
|
||||||
['reason' => 'auto-updated by hwmonDaemon (condition worsened)']
|
['reason' => 'auto-updated by hwmonDaemon (condition worsened)']
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user