Skip to content

[FEATURE] (components): flag transforms that need each sample - #350

Open
colivi wants to merge 2 commits into
perses:mainfrom
colivi:fix/transform-requires-each-sample
Open

colivi wants to merge 2 commits into
perses:mainfrom
colivi:fix/transform-requires-each-sample

Conversation

@colivi

@colivi colivi commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Description

Export "transformRequiresEachSample" next to the transform kinds.

"PivotByLabel" is the only kind that needs one row per timestamp. Callers can ask the helper instead of naming that kind themselves.

This follows the review on perses/plugins#830: "table-data-utils" should stay generic, and the kind-specific fact belongs with the transform definition. The table plugin still decides when to keep every sample, because those samples are dropped before "transformData" runs. This change does not alter how transforms are applied.

The plugin keeps a local copy of the set until this export is in a published "@perses-dev/components".

Checklist

  • Pull request has a descriptive title and context useful to a reviewer.
  • Pull request title follows the [<catalog_entry>] <commit message> naming convention using one of the
    following catalog_entry values: FEATURE, ENHANCEMENT, BUGFIX, BREAKINGCHANGE, DOC,IGNORE.
  • All commits have DCO signoffs.

Signed-off-by: colivi <charles.olivi@gmail.com>
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.

1 participant