Skip to content

Check-In Payload parser exception when team passed by name #94687

@doc-sheet

Description

@doc-sheet

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

According to docs owner in check-in payload may be passed by id or by name in form of team:a-sentry-team

However parser raises ValidationError when team is not numeric.

if id.startswith("team:"):
return cls(id=int(id[5:]), actor_type=ActorType.TEAM)

To reproduce simply send a check-in with "owner": "team:a-sentry-team" field

Expected Result

Autolookup id by team name

Actual Result

ValidationError

["Could not parse actor. Format should be type:id where type is team or user."]

Product Area

Crons

Link

No response

DSN

No response

Version

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions