backups: show that a check happened, not just that a change did
lastseenat already recorded it and the API already returned it; nothing displayed it, so from the UI a healthy machine still looked abandoned - one revision from last spring and no sign anything had looked at it since. The history page gains a Last verified column beside Captured, and the asset panel a Verified field. Only the CURRENT revision carries one: an older revision was superseded, so saying it was verified today would be false - what was verified is the configuration the PC holds now. A current revision with no check yet says "not yet checked" rather than showing a blank or borrowing the captured date. That state is real and temporary: the column is new, so every chain reports it until its PC next posts.
This commit is contained in:
@@ -101,6 +101,12 @@ class BackupsPlugin(BasePlugin):
|
||||
'title': 'label',
|
||||
'meta': [
|
||||
{'key': 'collectedat', 'label': 'Captured', 'format': 'date'},
|
||||
# Captured is when this config was WRITTEN; verified is
|
||||
# when a PC last posted it and the hash still matched.
|
||||
# An unchanged config writes no revision, so without
|
||||
# this a machine checked daily for a year shows one
|
||||
# entry from last spring and reads as abandoned.
|
||||
{'key': 'lastseenat', 'label': 'Verified', 'format': 'date'},
|
||||
{'key': 'sourcehostname', 'label': 'From'},
|
||||
{'key': 'shorthash', 'label': 'Hash', 'mono': True},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user