Skip to content

feat(api): Accept project slugs in product endpoints#117487

Closed
gricha wants to merge 1 commit into
feat/project-id-or-slug-resolverfrom
feat/project-id-or-slug-endpoints
Closed

feat(api): Accept project slugs in product endpoints#117487
gricha wants to merge 1 commit into
feat/project-id-or-slug-resolverfrom
feat/project-id-or-slug-endpoints

Conversation

@gricha

@gricha gricha commented Jun 12, 2026

Copy link
Copy Markdown
Member

This stacks on #117446 and extends its ID-or-slug project resolver into the remaining product surfaces that were still validating project IDs directly. Release thresholds, root-cause analysis, code mappings, monitors, notification actions, preprod snapshots, release details, and replay endpoints now accept project IDs or slugs where project IDs were already accepted.

The changes preserve existing permission checks and legacy projectSlug precedence. Single-project lookups reject all-project sentinels, and endpoints whose validators inspect query params normalize blank project filters as absent.

Validated with focused pytest coverage, targeted ruff and mypy through prek, make test-api-docs, and final prek run -q.

Allow remaining product-surface project filters and payloads to accept project IDs or slugs while preserving existing permission checks and projectSlug precedence. Reject all-project sentinels for single-project lookups and normalize blank project filters as absent where validators also inspect query params.

Co-Authored-By: OpenCode <noreply@example.com>
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 12, 2026
@gricha

gricha commented Jun 12, 2026

Copy link
Copy Markdown
Member Author

Closing this superseded all-in-one draft. The remaining endpoint work is split across #117493, #117494, and #117495 on top of #117446.

@gricha gricha closed this Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant