getsentry / getsentry/sentry

Alert - "Send Test Notification" fails when the triggering user isn't a member of the projects attached to the alert

Open
#117,529 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Bug Product Area: Alerts Waiting for: Product Owner
Dominant language
Python
Stars
44.8k
Forks
4.9k
Avg merge
21h 23m
Merged PRs (30d)
607

Description

Environment

SaaS (https://sentry.io/)

Steps to Reproduce
  • Create a Alert in an org and attach monitors from projects the current user is not a member of (via team membership).
  • Click "Send Test Notification."
  • The test fails with the error "No projects found for this organization that the user has access to"
Expected Result

Alerts are designed as standalone notification configurations that can be attached to any monitor in the org the user's team membership in specific projects shouldn't gate whether a test notification can be sent. The alert config itself has the project context; the user's membership is irrelevant to notification delivery.

Actual Result

No projects found for this organization that the user has access to

Product Area

Alerts

Link

No response

DSN

No response

Version

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Send Test Notification request path and the project-access lookup described by the error. Trace how attached monitor projects are selected, then verify that a user who is not a member of those projects can still send a test notification for the alert.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, observability
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.