Repository navigation
feat(issues): Add a same_supergroup type to the related issues endpoint - #131946
Merged
Christinarlong merged 4 commits intoNov 20, 2026
Merged
Conversation
/related/?type=same_supergroup returns the other issues in the issue's Seer supergroup that the caller can read, most recently seen first, with the supergroup's ID and title in meta. It's behind the new organizations:related-issues-supergroups flag and also needs the clustering flag, so it returns not_applicable until both are on.
…t JSON A non-JSON body from Seer raised orjson.JSONDecodeError out of the endpoint, failing every requested type with a 500.
Contributor
decision-model-linterapi
decision-model-linter: 30 calls on 6 files, 72,037 input tokens, $0.003, model typesafe/jev-1.13-20260917 |
Christinarlong
marked this pull request as ready for review
November 20, 2026 21:07
cvxluo
approved these changes
Nov 20, 2026
cvxluo
left a comment
Contributor
There was a problem hiding this comment.
the original plan was to surface supergroups to users (and agents) as 'issue groups', but this is fine as well for now
Contributor
Author
Yeah I think we can always rename p easily |
Christinarlong
deleted the
unified-similarity-api-same-supergroup-type
branch
November 20, 2026 22:38
This branch was successfully deployed
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.
Expose supergroups behind a flag in the related endpoint
AI Overview
What?
GET /organizations/{org}/issues/{id}/related/?type=same_supergroupreturns the other issues in this issue's Seer supergroup, in any project the caller can read, most recently seen first, up tolimit:{ "data": [{"issue": {"shortId": "CHECKOUT-4F", "...": "..."}, "relations": [{"type": "same_supergroup"}]}], "meta": {"types": [{ "type": "same_supergroup", "status": "ok", "supergroup": {"id": "4821", "title": "Postgres connection pool exhaustion in checkout workers"} }]} }not_applicablewhen the flags are off, for non-error issues, and for issues Seer hasn't put in a supergroup (no stack trace, or created before clustering was on).Why?
Seer already groups new error issues whose root causes describe the same failure, across projects, but nothing reads those groups since the supergroups UI was removed in #124667. Returning them from
/related/lets agents and the Similar Issues drawer see issues that share a root cause without a separate call. The title says what the group shares, which the source issue alone doesn't.Rollout and failure modes
organizations:related-issues-supergroups(exposed to the frontend for a drawer section later). The type also requiresorganizations:supergroups-lightweight-rca-clustering-write, so it only runs where Seer builds supergroups. Until both are on, it returnsnot_applicablewithout calling Seer.unavailable, and a 503 only when it's the only type requested.Notes
same_trace.py: a lookup, then the readable-projects filter and a most-recently-seen sort onGroup. The lookup reusesget_supergroups_by_group_ids(), which gains atimeoutargument (default unchanged).meta.supergroupcarries only the ID and title. Seer's summary, error type and code area are left out for now.🤖 Generated with Claude Code