-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
fix(taskworker) Pass project_id to find_channel_id_for_rule #91810
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
Conversation
We can't pass project to this task as projects cannot be json encoded.
@@ -800,6 +800,7 @@ def post(self, request: Request, project) -> Response: | |||
"name": data["name"], | |||
"environment": data.get("environment"), | |||
"project": project, | |||
"project_id": project.id, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because find_channel_id_for_rule
accepts kwargs
adding this parameter will be safe. I'll still need a second change to remove the project
parameter.
Codecov ReportAttention: Patch coverage is Error parsing JUnit XML in /home/runner/work/sentry/sentry/.artifacts/pytest.junit.xml at 1:159171 Caused by:
Additional details and impacted files@@ Coverage Diff @@
## master #91810 +/- ##
===========================================
+ Coverage 32.73% 80.29% +47.56%
===========================================
Files 8741 10348 +1607
Lines 487207 586396 +99189
Branches 22554 22554
===========================================
+ Hits 159477 470836 +311359
+ Misses 327284 115114 -212170
Partials 446 446 |
Continues #91810 by changing the call sites to not pass `project` anymore.
Continues #91810 by changing the call sites to not pass `project` anymore.
We can't pass project to this task as projects cannot be json encoded.
Continues #91810 by changing the call sites to not pass `project` anymore.
We can't pass project to this task as projects cannot be json encoded.