R-585 (part): three producers follow the household's language

db_dump_failed, the off-box backup_failed and offbox_enlarge_blocked
(whose sentence IS the household's mail - no hub customerMessages entry)
now take facts and push a bundle key, so an English household reads
English. Hungarian bytes unchanged (go-parity). Added to
convertedProducers.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
2026-10-05 22:51:58 +02:00
parent b05be0ac11
commit ca89e70d53
6 changed files with 30 additions and 10 deletions
+3 -6
View File
@@ -1144,7 +1144,7 @@ func main() {
dbDumpLeg := withLeg(nightchain.LegDBDump, func(ctx context.Context) error {
err := backupMgr.RunDBDumps(ctx)
if err != nil {
notifier.NotifyDBDumpFailed("Adatbázis mentés sikertelen", err.Error())
notifier.NotifyDBDumpFailed(err.Error())
} else {
notifier.NotifyDBDumpCompleted(notify.DBDumpDetails{})
}
@@ -1248,8 +1248,7 @@ func main() {
if err != nil {
// F-DIAG: a distinct message per cause, and the detail SANITISED — a raw err.Error()
// carries the sftp:user@host:/path repo reference off the box.
notifier.NotifyBackupFailed("Off-box (NAS) mentés sikertelen",
backupMgr.OffsiteFailureMessage(err, dur))
notifier.NotifyOffboxBackupFailed(backupMgr.OffsiteFailureMessage(err, dur))
}
})
// R-203 (operator half): a completed off-site run could NOT capture a directory an app declares
@@ -1360,9 +1359,7 @@ func main() {
// triggered by the engine (only NEW blocks notify), so the hub's per-event-type cooldown suffices —
// no controller-side timer (the hub owns cooldown).
backupMgr.SetOffboxEnlargeBlockedNotifier(func(stack string, estBytes int64, usedGB, quotaGB int) {
notifier.NotifyOffboxEnlargeBlocked(fmt.Sprintf(
"A(z) %s teljes távoli mentése (~%s) túllépné a tárhelykeretet (%d/%d GB). A konfiguráció és az adatbázis továbbra is mentésre kerül; nagyobb kerethez vedd fel velünk a kapcsolatot.",
stack, appbackup.HumanizeBytes(estBytes), usedGB, quotaGB))
notifier.NotifyOffboxEnlargeBlocked(stack, appbackup.HumanizeBytes(estBytes), usedGB, quotaGB) // R-585
})
// v0.142.0 offsite-repo continuity: push a hub event on the orphaned/reset transitions (once per
// transition — the Manager guards nightly re-fire). Operator-visible on the customer page.