Repository navigation
fix(tools): Send a real event ID to related issues for event aliases - #2608
Open
sentry-junior[bot] wants to merge 3 commits into
Open
sentry-junior[bot] wants to merge 3 commits into
sentry-junior[bot] wants to merge 3 commits into
Conversation
get_sentry_resource passes the event segment of an event URL, such as `latest` or `recommended`, through to get_issue_details. The event lookup accepts these aliases, but /related/ only takes an event ID and answers 400, so related issues silently dropped out. When the event is selected by alias, wait for the fetched event and send its ID instead. Co-Authored-By: Christina Long <60594860+Christinarlong@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
…ent-alias # Conflicts: # packages/mcp-core/src/tools/catalog/get-issue-details.test.ts
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.
get_sentry_resourcepasses the event segment of an event URL straight toget_issue_details, so a URL like/issues/123/events/recommended/arrives witheventId: "recommended"(orlatest/oldest). The event lookup accepts those aliases, butGET /organizations/{org}/issues/{id}/related/takeseventIdas a UUID (GroupRelatedQuerySerializer) and answers 400.get_issue_detailstreats client errors from the related lookup as expected, so related issues silently dropped out of these responses. Since #2504 turned the lookup on for everyone, these aliases account for nearly all 400s on/related/from the MCP server.When the event is picked by alias, the related lookup now waits for the event the tool already fetches and sends its real ID, so
same_tracestill follows the event shown. A real 32-hex event ID still goes out in parallel as before. If the event fetch fails,eventIdis omitted (the tool errors on the event fetch anyway).find_related_issuesandupdate_issuenever sendeventId, so they aren't affected.via @Christinarlong.
--
View Session [Sentry]