Skip to content

Commit 3963c86

Browse files
ref: avoid __in on jsonb / text column for ProjectOption (#96693)
resolves SENTRY-49E5 <!-- Describe your PR here. -->
1 parent edcc317 commit 3963c86

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sentry/api/endpoints/organization_plugins_configs.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def get(self, request: Request, organization) -> Response:
5858
# Get all the project options for org that have truthy values
5959
project_options = ProjectOption.objects.filter(
6060
key__in=keys_to_check, project__organization=organization
61-
).exclude(value__in=[False, ""])
61+
)
6262

6363
"""
6464
This map stores info about whether a plugin is configured and/or enabled
@@ -70,6 +70,8 @@ def get(self, request: Request, organization) -> Response:
7070
"""
7171
info_by_plugin_project: dict[str, dict[int, dict[str, bool]]] = {}
7272
for project_option in project_options:
73+
if not project_option.value:
74+
continue
7375
[slug, field] = project_option.key.split(":")
7476
project_id = project_option.project_id
7577

0 commit comments

Comments
 (0)