Skip to content

feat(tools): Return reporter name, email, and IP from get_issue_user_reports - #2033

Merged
dcramer merged 2 commits into
mainfrom
fix/get-issue-user-reports-contact-fields
Nov 5, 2026
Merged

dcramer merged 2 commits into
mainfrom
fix/get-issue-user-reports-contact-fields

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

get_issue_user_reports (#1997) collapsed the report name, report email, and event user into one reporter display string, and its test asserted the event user's IP address stayed out. User data Sentry stored should come back to the caller, so this returns it as explicit fields.

Each report now has:

  • name and email: from the report, falling back to the event user. This matches the Sentry serializer (userreport.py), which already fills these from the event user.
  • user: { id, username, name, email, ipAddress } from the linked event user, or null when there is none. Empty strings and the legacy "None"/"null" id sentinels map to null.
  • Sentry fills name from the email (obj.name or obj.email) and the event user's name from get_display_name(), which falls back to email and then username. So name and user.name are null when they only repeat the email or username.

reporter is removed because the explicit fields replace it. avatarUrl and the nested event object stay out.

Tests use Sentry-shaped fixtures. They assert the email, username, and IP address come through, that names copied from the email or username map to null, and that the empty event-user shell maps to null.

Checks, all with SENTRY_AUTH_TOKEN unset: generate-definitions, mcp-core tsc, full mcp-core vitest (2116 passed, 6 skipped), and root lint. If this rebases over another tool PR, regenerate toolDefinitions.json.

via @dcramer.

--

View Session [Sentry]

…reports

The tool collapsed the report and event user into one display string. Return
the report name and email, plus the event user's id, username, name, email,
and IP address, as separate fields.

Co-Authored-By: David Cramer <23610+dcramer@users.noreply.github.com>
@vercel

vercel Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
sentry-local Skipped Skipped Nov 5, 2026 11:00pm UTC

Request Review

@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 5, 2026
…ail or username

Sentry fills report and event-user names from the email or username when no
real name exists. Return null for those so name holds only a real name.

Co-Authored-By: David Cramer <23610+dcramer@users.noreply.github.com>
@dcramer
dcramer merged commit 24a84a4 into main Nov 5, 2026
35 checks passed
@dcramer
dcramer deleted the fix/get-issue-user-reports-contact-fields branch November 5, 2026 23:20

This branch was previously deployed

2 inactive deployments
Actions — 9c115ecd Deployed Nov 5, 2026 by sentry-junior[bot] via eval #1669
Preview — 9c115ecd Deployed Nov 5, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant