Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref: fix typing for event_id (it is str) #72718

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

asottile-sentry
Copy link
Member

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
@@ -28,7 +28,7 @@ def trace_connected_analysis(
if event_id:
# 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
Member 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 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
48 checks passed
@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