Repository navigation
Scope MCP documentation changes to repository checks - #1356
Merged
Merged
Conversation
Co-Authored-By: GPT-6 Sol <[email protected]>
Co-Authored-By: GPT-6 Sol <[email protected]>
mr-danya
pushed a commit
to mr-danya/sentry-mcp
that referenced
this pull request
Oct 6, 2026
…ntry#1356) `sentry alert metrics create` and `sentry alert metrics edit` reject dataset values that users reasonably expect to work — the singular forms (`error`, `transaction`, …) and the dashboard-terminology names for the error/transaction datasets (`error-events`, `transaction-like`). Those aren't in `METRIC_DATASET_VALUES`, so they fail `validateMetricDataset` with a `ValidationError`, even though they clearly map to a valid canonical value. (The already-canonical values `errors`, `transactions`, `sessions`, `events`, `spans`, `metrics` pass validation today — they are not what this PR fixes.) This fix: - Adds a `METRIC_DATASET_ALIASES` map and `normalizeMetricDataset` helper in `packages/cli/src/commands/alert/mutation-utils.ts`, resolving safe aliases to their canonical metric-alert value (`error` → `errors`, `error-events` → `errors`, `transaction-like` → `transactions`, …). - Only aliases that resolve to an already-valid metric-alert dataset are included. Names that denote a **distinct** dataset in the metric-alert path (`tracemetrics`, `metricsenhanced`, `eap`, `events_analytics_platform`) are deliberately **not** aliased — rewriting them onto `metrics`/`spans` would silently send the wrong dataset with no validation error. Note the metric-alert canonical names are the inverse of the dashboard/explore subsystem, where `tracemetrics` is canonical and `metrics` is the alias. - `validateMetricDataset` normalizes before checking, and `create.ts`/`edit.ts` use the normalized value for both validation and the API payload. - Adds `normalizeMetricDataset` test coverage (alias resolution, case-insensitivity, passthrough of unknown/distinct datasets) and updates the `--dataset` help text to advertise the synonyms. Fixes [CLI-JG](https://sentry.sentry.io/issues/7351956900/?seerDrawer=true) <sub>Comment `@sentry <feedback>` on this PR to have Autofix iterate on the changes.</sub> --------- Co-authored-by: sentry[bot] <39604003+sentry[bot]@users.noreply.github.com> Co-authored-by: jared-outpost[bot] <jared-outpost[bot]@users.noreply.github.com>
mr-danya
pushed a commit
to mr-danya/sentry-mcp
that referenced
this pull request
Oct 6, 2026
…ntry#1356) `sentry alert metrics create` and `sentry alert metrics edit` reject dataset values that users reasonably expect to work — the singular forms (`error`, `transaction`, …) and the dashboard-terminology names for the error/transaction datasets (`error-events`, `transaction-like`). Those aren't in `METRIC_DATASET_VALUES`, so they fail `validateMetricDataset` with a `ValidationError`, even though they clearly map to a valid canonical value. (The already-canonical values `errors`, `transactions`, `sessions`, `events`, `spans`, `metrics` pass validation today — they are not what this PR fixes.) This fix: - Adds a `METRIC_DATASET_ALIASES` map and `normalizeMetricDataset` helper in `packages/cli/src/commands/alert/mutation-utils.ts`, resolving safe aliases to their canonical metric-alert value (`error` → `errors`, `error-events` → `errors`, `transaction-like` → `transactions`, …). - Only aliases that resolve to an already-valid metric-alert dataset are included. Names that denote a **distinct** dataset in the metric-alert path (`tracemetrics`, `metricsenhanced`, `eap`, `events_analytics_platform`) are deliberately **not** aliased — rewriting them onto `metrics`/`spans` would silently send the wrong dataset with no validation error. Note the metric-alert canonical names are the inverse of the dashboard/explore subsystem, where `tracemetrics` is canonical and `metrics` is the alias. - `validateMetricDataset` normalizes before checking, and `create.ts`/`edit.ts` use the normalized value for both validation and the API payload. - Adds `normalizeMetricDataset` test coverage (alias resolution, case-insensitivity, passthrough of unknown/distinct datasets) and updates the `--dataset` help text to advertise the synonyms. Fixes [CLI-JG](https://sentry.sentry.io/issues/7351956900/?seerDrawer=true) <sub>Comment `@sentry <feedback>` on this PR to have Autofix iterate on the changes.</sub> --------- Co-authored-by: sentry[bot] <39604003+sentry[bot]@users.noreply.github.com> Co-authored-by: jared-outpost[bot] <jared-outpost[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docs/tree to the rootdocs:checkquality gate rather than selecting every workspaceRoot
docs/is not part of the deployedmcp.sentry.devWorker assets. Wrangler servespackages/mcp-cloudflare/publicand the Vite client instead. The MCP deployment workflow and production assets are unchanged.Validation
test:ci-projects: 6 passed, including a check of every tracked root-level filedocs:check,check:generated, and repository lint passed after updating from main