fix(server): a locked audit retention also fixes the audit step and the switch
The audit retention in force ignored the audit clean-up's steps: with the audit step unticked nothing was deleted, yet Settings › Logs still showed the age limit. It is now 0 without that step, and setting a limit (Settings › Logs or CHRONOS_AUDIT_RETENTION_DAYS at start) ticks the step again, so a saved or fixed retention always takes effect. While the variable fixes a limit above 0, an edit that drops the step is 409 setting_locked like turning the schedule off. The admin panel's Scheduled tab disables what the variable fixes (the row's switch, the form's Enabled and audit step, the age limit) with the locked tooltip, and points a setting_locked refusal at the field actually refused. The Copies kept tooltips now say the backups folder keeps as many copies as the backup schedule that keeps the most; the LastDone and Newest comments state the real first-copy rule; Keep audit is documented last-writer-wins. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
94a5466c9f
commit
e6e69782ed
12 files changed
+125
-45
No files matched your search
@@ -124,6 +124,13 @@ public sealed class ServerScheduleHost : IScheduleHost
|
||||
? new LockedAge(nameof(ServerOptions.AuditRetentionDays), ServerOptions.AuditRetentionVariable, _options.AuditRetentionDays)
|
||||
: null;
|
||||
|
||||
/// <summary>
|
||||
/// The steps the age limit of the system schedule <paramref name="systemKey"/> deletes with: its default steps
|
||||
/// (<see cref="SystemSchedules"/>), <c>audit</c> for <see cref="AuditCleanup"/>; none for another key.
|
||||
/// </summary>
|
||||
public IReadOnlyList<string> AgedSteps(string? systemKey) =>
|
||||
SystemSchedules.FirstOrDefault(s => s.SystemKey == systemKey)?.Parameters?.Steps ?? [];
|
||||
|
||||
/// <summary>
|
||||
/// The zone of schedule times: the process's local zone (TZ in a container), by its IANA id where the platform maps it
|
||||
/// (the admin panel formats times with it); UTC, with a warning, when TZ names a zone this system does not know (no
|
||||
|
||||
Reference in new issue
Block a user