Commit d0c4d9b
perf(api): Add collapse=organization to project details endpoint
The project details endpoint serializes the full organization through
OrganizationSummarySerializer which fetches avatars, auth provider
config, and computes feature flags. When the caller only needs the org
id and slug, `?collapse=organization` skips all of that and returns a
minimal object.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent ca77ff5 commit d0c4d9b
File tree
3 files changed
+24
-2
lines changed- src/sentry
- api/serializers/models
- core/endpoints
- tests/sentry/core/endpoints
3 files changed
+24
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| |||
979 | 980 | | |
980 | 981 | | |
981 | 982 | | |
982 | | - | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
983 | 993 | | |
984 | 994 | | |
985 | 995 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
549 | 549 | | |
550 | 550 | | |
551 | 551 | | |
552 | | - | |
| 552 | + | |
| 553 | + | |
553 | 554 | | |
554 | 555 | | |
555 | 556 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
118 | 129 | | |
119 | 130 | | |
120 | 131 | | |
| |||
0 commit comments