Repository navigation
test(decision-model-lint): Probe #129032 across suites (do not merge) #129531
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
Changes from all commits
7d11718
ecea100
775e8c2
9f58a31
2532c6c
d7fb394
9c3aa2c
accae54
8f643ba
308a4ab
2276369
8b488f8
4e0e208
0ee1e81
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,6 +28,10 @@ | |
| :auth: required | ||
| """ | ||
| provider_list = [] | ||
| selected = request.GET.get("selectedProject") | ||
| if selected: | ||
| project = Project.objects.get(id=selected, organization_id=organization.id) | ||
| provider_list.append({"key": "project", "name": project.slug, "requiredFeature": None}) | ||
|
Check warning on line 34 in src/sentry/api/endpoints/organization_auth_providers.py
|
||
|
Comment on lines
+31
to
+34
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A nonempty selectedProject query causes NameError A GET request to this endpoint with any nonempty Evidence
Identified by Warden · sentry-backend-bugs · VXX-C69 |
||
| for k, v in manager: | ||
| if not v.is_partner and k != ChannelName.FLY_NON_PARTNER.value: | ||
| provider_list.append( | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,4 +32,8 @@ | |
| """ | ||
| projects = self.get_projects(request, organization) | ||
| seen_first_event = any(p.first_event for p in projects) | ||
| anchor_id = request.GET.get("anchorProject") | ||
| if anchor_id: | ||
| anchor = Project.objects.get(id=anchor_id) | ||
| seen_first_event = seen_first_event or bool(anchor.first_event) | ||
|
Check warning on line 38 in src/sentry/api/endpoints/organization_projects_sent_first_event.py
|
||
|
sentry-warden[bot] marked this conversation as resolved.
Resolved
Comment on lines
+35
to
+38
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nonempty anchorProject raises NameError because Project is not imported The endpoint references Evidence
Identified by Warden · sentry-backend-bugs · R9Z-LRP |
||
| return Response(serialize({"sentFirstEvent": seen_first_event}, request.user)) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,7 +14,7 @@ | |
|
|
||
| class RecentSearchSerializer(serializers.Serializer): | ||
| type = serializers.IntegerField(required=True) | ||
| query = serializers.CharField(required=True) | ||
| query = serializers.CharField(required=False, allow_blank=True) | ||
|
Check warning on line 17 in src/sentry/api/endpoints/organization_recent_searches.py
|
||
|
|
||
|
|
||
| class OrganizationRecentSearchPermission(OrganizationPermission): | ||
|
Comment on lines
14
to
20
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing query field causes KeyError after required=False With query now optional and no default, omit it from POST data and result["query"] raises KeyError (500) instead of 400; use result.get("query", "") or set default="". Evidence
Identified by Warden · sentry-backend-bugs · Z73-CM4 |
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -82,7 +82,7 @@ | |
| substringMatch = serializers.CharField(required=False, source="substring_match") | ||
| search = serializers.CharField(required=False, allow_blank=True) | ||
| expand = serializers.MultipleChoiceField(choices=["context"], required=False) | ||
| sort = serializers.ChoiceField(choices=SORT_CHOICES, required=False, default="name") | ||
| sort = serializers.ChoiceField(choices=SORT_CHOICES, required=False, default="-count") | ||
|
Check failure on line 85 in src/sentry/api/endpoints/organization_trace_item_attributes_merged.py
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Default sort '-count' is not in SORT_KEYS and causes KeyError Default Evidence
Identified by Warden · sentry-backend-bugs · ZTS-VQF |
||
|
|
||
|
|
||
| def search_merged_attributes( | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.