explore: canonical source for sortable dataset list (errors/discover)

Open
#1,523 0 comments 2 reactions 1 assignee View on GitHub

@BYK is already working on this.

Since Sep 2, 2026.

Assessment

This issue has not been assessed yet.

Description

enhancement jared

In #1520 we hard-coded SORTABLE_DATASETS = new Set(["spans", "errors", "discover"]) based on live-org probe + existing spans guard.

We should have a canonical, machine-readable source (or at least a documented contract) rather than a static list that can drift. Possible homes:

  • @sentry/api SDK
  • Sentry server (events endpoint capability)
  • Snuba schema / Discover docs

This would let the CLI (and other clients) query "which datasets accept sort on grouped aggregates?" instead of maintaining a hand-curated set.

cc @BYK

Dominant language
TypeScript
Stars
121
Forks
14
Avg merge
22h 3m
Merged PRs (30d)
94

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from getsentry/cli

All issues in getsentry/cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.