[STD] Version-provenance sulle segnalazioni (feedback-version-provenance) — mig.062, v1.24.4
feedback_reports += client_surface/client_version/client_build; FeedbackController/Service li salvano; feedback.js li invia (surface web-v2 + version/build da version.json). Standard hub_standards id=30. Smoke verde (provenance salvata, test pulito). NB: il widget feedback.js è oggi dormiente (rimosso dall'iniezione 14/6) → plumbing pronto per la riattivazione. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
3b1d909e6e
commit
14c4c2a7d2
@@ -45,14 +45,19 @@ class FeedbackService
|
||||
$descrizione = $data['descrizione'] ?? '';
|
||||
$pageUrl = $data['page_url'] ?? '';
|
||||
$attachment = $data['attachment'] ?? null;
|
||||
$clientSurface = $data['client_surface'] ?? null;
|
||||
$clientVersion = $data['client_version'] ?? null;
|
||||
$clientBuild = $data['client_build'] ?? null;
|
||||
|
||||
Database::query(
|
||||
'INSERT INTO feedback_reports
|
||||
(organization_id, user_id, user_email, user_role, page_url,
|
||||
tipo, priorita, descrizione, attachment)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)',
|
||||
tipo, priorita, descrizione, attachment,
|
||||
client_surface, client_version, client_build)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)',
|
||||
[$orgId, $userId, $userEmail, $userRole, $pageUrl,
|
||||
$tipo, $priorita, $descrizione, $attachment]
|
||||
$tipo, $priorita, $descrizione, $attachment,
|
||||
$clientSurface, $clientVersion, $clientBuild]
|
||||
);
|
||||
|
||||
$reportId = (int) Database::lastInsertId();
|
||||
|
||||
Reference in New Issue
Block a user