Skip to content

fix: group dashboard snapshot tables by backup_type and bump lint hooks for Go 1.27 - #223

Merged
janfuhrer merged 2 commits into
mainfrom
fix/dashboard-backup-type
Nov 5, 2026
Merged

janfuhrer merged 2 commits into
mainfrom
fix/dashboard-backup-type

Conversation

@janfuhrer

Copy link
Copy Markdown
Member

What this PR does:

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #

Notes for Reviewer:

Checklist:

  • I have read and understood the CONTRIBUTING and CODE_OF_CONDUCT documents
  • All commits are signed (see Signing Commits)
  • Pull Request title in the format of Conventional Commits e.g. feat|fix|chore|docs|...: Changed Something
  • Updated documentation in the README.md file (e.g. new parameters, environment variables, return values, ...)

gosec v2.29.0 and golangci-lint v2.13.2 are both built with
golang.org/x/tools v0.49.0, which cannot read the export data written
by Go 1.27 ("export data version 5 is greater than maximum supported
version 4"). Every import fails to load and both hooks block every
commit. gosec v2.30.0 and golangci-lint v2.15.0 ship x/tools v0.52.0.
The golangci-lint version in CI is bumped along with the hook so the
two stay in sync.

gosec v2.30.0 also reports G402 when InsecureSkipVerify is set by
assignment. The assignment is guarded by --pbs.insecure / PBS_INSECURE,
an operator opt-in for self-signed PBS certificates that is off by
default, so mark it #nosec with the reason rather than drop the flag.

The CI gosec action tagged v2.30.0 still runs the 2.29.0 image, which
is why CI stayed green. It will report the same G402 once the action
moves to a 2.30 image.
@janfuhrer janfuhrer self-assigned this Nov 4, 2026
@adberger
adberger self-requested a review November 5, 2026 07:13

@adberger adberger left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Since #213 the per-VM snapshot metrics carry a backup_type label, so
ct/<id> and vm/<id> are separate series. The "last snapshot" and
"snapshot count" tables still grouped on datastore, namespace, vm_id
and vm_name only. A container and a VM with the same ID and name
collapsed back into one row, which is exactly what #213 set out to
stop, and the table gave no way to tell the two kinds apart.

Add backup_type to both groupBy transformations and show it as a
"Type" column in front of the VM ID.

Reverting this reintroduces the merged row for a container and a VM
that share an ID and a name.
@janfuhrer
janfuhrer force-pushed the fix/dashboard-backup-type branch from 9b0a15b to 48593f7 Compare November 5, 2026 08:12

@nicololuescher nicololuescher left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@janfuhrer
janfuhrer merged commit e0bd55a into main Nov 5, 2026
7 checks passed
@janfuhrer
janfuhrer deleted the fix/dashboard-backup-type branch November 5, 2026 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants