Skip to content

Commit 9e6b93e

Browse files
authored
chore(seer): Set a high rate limit for seer prefs (#95478)
Sets a high rate limit for getting seer prefs so that we can get them for many different projects at once.
1 parent 83c1bff commit 9e6b93e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/sentry/api/endpoints/project_seer_preferences.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,12 @@ class ProjectSeerPreferencesEndpoint(ProjectEndpoint):
5050
RateLimitCategory.IP: RateLimit(limit=20, window=60),
5151
RateLimitCategory.USER: RateLimit(limit=20, window=60),
5252
RateLimitCategory.ORGANIZATION: RateLimit(limit=60, window=60),
53-
}
53+
},
54+
"GET": {
55+
RateLimitCategory.IP: RateLimit(limit=500, window=60),
56+
RateLimitCategory.USER: RateLimit(limit=500, window=60),
57+
RateLimitCategory.ORGANIZATION: RateLimit(limit=5000, window=60),
58+
},
5459
}
5560

5661
def post(self, request: Request, project: Project) -> Response:

0 commit comments

Comments
 (0)