KEMBAR78
ref: fix typing for event_id (it is str) by asottile-sentry · Pull Request #72718 · getsentry/sentry · GitHub
Skip to content

Conversation

@asottile-sentry
Copy link
Contributor

split out from my Job is TypedDict branch

@asottile-sentry asottile-sentry requested review from a team June 13, 2024 18:39
@asottile-sentry asottile-sentry requested review from a team as code owners June 13, 2024 18:39
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 13, 2024
# If we are passing an specific event_id, we need to get the project_id
assert project_id is not None
event = eventstore.backend.get_event_by_id(project_id, event_id, group_id=group.id)
event = eventstore.backend.get_event_by_id(int(project_id), event_id, group_id=group.id)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@armenzg is going to handle the api endpoint doing the validation itself instead of here so this int(...) call should go away eventually (and the extra_args would probably become a TypedDict or normal parameters)

split out from my Job is TypedDict branch
@asottile-sentry asottile-sentry force-pushed the asottile-event-id-is-str branch from 0f6431f to 4ff7ea8 Compare June 13, 2024 19:27
@asottile-sentry asottile-sentry requested a review from a team as a code owner June 13, 2024 19:27
@asottile-sentry asottile-sentry merged commit 6696768 into master Jun 13, 2024
@asottile-sentry asottile-sentry deleted the asottile-event-id-is-str branch June 13, 2024 19:54
@github-actions github-actions bot locked and limited conversation to collaborators Jun 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants