Skip to content

feat(cli): support Explore time-series transformations - #2109

Open
nsdeschenes wants to merge 3 commits into
mainfrom
nd/resolve-exp-1411
Open

nsdeschenes wants to merge 3 commits into
mainfrom
nd/resolve-exp-1411

Conversation

@nsdeschenes

@nsdeschenes nsdeschenes commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

The goal of this PR is to expand transformations support to the CLI for explore time-series requests.

🤖 generated description below:


Why

Fixes EXP-1411. Explore time-series queries need ordered transformations for each requested axis, including independent duplicate aggregates.

What changed

  • Add repeatable --transform '0:fill(linear)' inputs to the CLI and public CLI SDK.
  • Preserve axis identity and transformation order through HTTP serialization. Show requested transformations and returned provenance in human and JSON output.
  • Reject responses without execution evidence and update command examples and documentation.

Scope

This covers CLI Explore time-series queries. Dashboard controls and backend transformation execution remain separate work.

Tradeoffs

Empty transformed series fail explicitly because the current backend response cannot prove execution without bucket provenance.

Blast radius

Explicit transformation requests add validation and execution checks. Returned nulls, units, and executed intervals remain intact.

Verification

  • Repository type checking and lint pass.
  • All 171 focused command, SDK, API, formatter, and CLI-to-HTTP tests pass. CLI policy and documentation checks pass.
  • TZ=UTC pnpm run test remains red on an existing installer test and the Apple asset fixture setup, which lacks actool. The installer failure was also reproduced on untouched HEAD.

@vercel

vercel Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
sentry-local Skipped Skipped Nov 9, 2026 3:12pm UTC

Request Review

@linear-code

linear-code Bot commented Nov 9, 2026

Copy link
Copy Markdown

EXP-1411

nsdeschenes and others added 3 commits November 9, 2026 11:08
Preserve ordered transformations by request axis position and require returned
provenance before exposing transformed values. Keep duplicate aggregates
independent and retain nulls, units, and the executed interval.

Co-Authored-By: GPT-6.1 Sol <noreply@openai.com>
Add repeatable indexed transformation inputs and show requested transformations
with returned provenance. Cover command parsing, SDK invocation, and the real
CLI-to-HTTP flow. Regenerate the command reference.

Co-Authored-By: GPT-6.1 Sol <noreply@openai.com>
Document ordered per-axis inputs, public SDK usage, provenance, and explicit
failures when the response cannot prove transformation execution.

Co-Authored-By: GPT-6.1 Sol <noreply@openai.com>
@nsdeschenes
nsdeschenes marked this pull request as ready for review November 9, 2026 15:28
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 9, 2026

This branch was previously deployed

1 inactive deployment
Preview — a0d7a9c6 Deployed Nov 9, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant