Skip to content

Feature/526 average resample - #563

Open
moebiusband73 wants to merge 8 commits into
mainfrom
feature/526-average-resample
Open

Feature/526 average resample#563
moebiusband73 wants to merge 8 commits into
mainfrom
feature/526-average-resample

Conversation

@moebiusband73

Copy link
Copy Markdown
Member

No description provided.

moebiusband73 and others added 8 commits March 19, 2026 21:16
Fixes #526

Entire-Checkpoint: 893a1de325b5
A setting nested at the wrong level (e.g. "resampling" placed next to
"main" instead of inside it) was silently ignored. Emit a startup warning
for any top-level config section not consumed by the backend so such
misconfigurations surface instead of failing silently.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Entire-Checkpoint: 69d1b85c8db3
The backend resample config changed from {trigger, resolutions[]} to a
policy/targetPoints model, but several components still spread
resampleConfig.resolutions, throwing "resolutions is not iterable" and
breaking the job list render. Default the initial resolution to null (the
backend resolves it from the configured policy; zoom overrides it) and
drop the now-obsolete resolution selector and admin display fields.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Entire-Checkpoint: 27516ce259fd
Bump gqlgen, aws-sdk-go-v2, go-oidc, go-sqlite3, gqlparser, go-openapi,
golang.org/x/* and other transitive dependencies to their latest patch
and minor releases.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Entire-Checkpoint: 964ca6774882

@spacehamster87 spacehamster87 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.

Sieht im Großteil gut aus, allerdings 2 Dinge:

  • Die angepasste Resample-On-Zoom Logik sollte getestet werden vorher
  • Die neuen Resample-Optionen müssten von AdminSettings nach UserSettings verschoben werden.

Siehe auch Kommentare.

<p>Triggered at {resampleConfig.trigger} datapoints.</p>
<p>Configured resolutions: {resampleConfig.resolutions}</p>
<p>Resampling is enabled.</p>
<p>Target data points per plot: {resampleConfig.targetPoints}</p>

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.

Hier sollte wahrscheinlich sowas wie "per unique data set" angefügt werden. So wie es jetzt formuliert ist, könnte man fälschlicherweise auf die Gesamtdaten der Plots schließen.

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.

Kontext: Die PlotRenderOptions sind per Definition keine Admin-Settings, i.e. nicht Admin-exklusiv, sondern für jeden User persönlich setzbar.

Entsprechend sollte die gesamte Update-Logik, und die Komponente selber, die hier für die neuen Resambling Optionen gesetzt wird, nach

web/frontend/src/config/UserSettings.svelte

umgezogen werden.

timestep := int64(0)
for i := 0; i < len(v_.Series); i += 1 {
v_.Series[i].Data, timestep, err = resampler.LargestTriangleThreeBucket(v_.Series[i].Data, int64(v_.Timestep), int64(resolution))
v_.Series[i].Data, timestep, err = resampleFn(v_.Series[i].Data, int64(v_.Timestep), int64(resolution))

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.

Interessehalber: Wo kommen die resampleFns her? Habe sie im Diff nicht entdecken können.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

resampleFn, rfErr := resampler.GetResampler(resampleAlgo)

invoked via cc-lib
https://github.com/ClusterCockpit/cc-lib/blob/main/resampler/resampler.go

Comment thread web/frontend/src/generic/plots/MetricPlot.svelte
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