Commit 0f55bf4
authored
ref(organizations): Use control silo endpoint for org listing (#3352)
### Description
The organization listing endpoint (GET /organizations/) is now served
from the control silo and returns every organization the authenticated
user belongs to across all regions in a single paginated response. This
replaces the previous per-region fan-out (which called
/users/me/regions/ and then queried each region) with one call.
Also aligns the Organization model with the current API response: drops
requireEmailVerification (removed in getsentry/sentry#115003) and makes
features optional (removed from the listing endpoint in #115007), so no
longer fails to deserialize the live response.
### Issues
* resolves: INFRENG-199
### Legal Boilerplate
Look, I get it. The entity doing business as "Sentry" was incorporated
in the State of Delaware in 2015 as Functional Software, Inc. and is
gonna need some rights from me in order to utilize my contributions in
this here PR. So here's the deal: I retain all rights, title and
interest in and to my contributions, and by keeping this boilerplate
intact I confirm that Sentry can use, modify, copy, and redistribute my
contributions, under Sentry's choice of terms.1 parent 1bf4117 commit 0f55bf4
4 files changed
Lines changed: 13 additions & 80 deletions
File tree
- src
- api
- commands/organizations
- tests/integration
- _responses/organizations
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
744 | 744 | | |
745 | 745 | | |
746 | 746 | | |
747 | | - | |
748 | | - | |
749 | | - | |
750 | | - | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
751 | 754 | | |
752 | 755 | | |
753 | 756 | | |
754 | 757 | | |
755 | | - | |
756 | | - | |
757 | | - | |
758 | | - | |
759 | | - | |
760 | | - | |
761 | | - | |
| 758 | + | |
762 | 759 | | |
763 | 760 | | |
764 | 761 | | |
| |||
778 | 775 | | |
779 | 776 | | |
780 | 777 | | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | | - | |
787 | | - | |
788 | | - | |
789 | | - | |
790 | | - | |
791 | | - | |
792 | | - | |
793 | | - | |
794 | | - | |
795 | | - | |
796 | | - | |
797 | 778 | | |
798 | 779 | | |
799 | 780 | | |
| |||
1960 | 1941 | | |
1961 | 1942 | | |
1962 | 1943 | | |
1963 | | - | |
1964 | | - | |
1965 | | - | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
1966 | 1947 | | |
1967 | 1948 | | |
1968 | 1949 | | |
| |||
2111 | 2092 | | |
2112 | 2093 | | |
2113 | 2094 | | |
2114 | | - | |
2115 | | - | |
2116 | | - | |
2117 | | - | |
2118 | | - | |
2119 | | - | |
2120 | | - | |
2121 | | - | |
2122 | | - | |
2123 | | - | |
2124 | | - | |
2125 | | - | |
2126 | 2095 | | |
2127 | 2096 | | |
2128 | 2097 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 15 | + | |
31 | 16 | | |
32 | 17 | | |
33 | 18 | | |
| |||
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
98 | 97 | | |
99 | 98 | | |
100 | 99 | | |
101 | | - | |
102 | 100 | | |
103 | 101 | | |
104 | 102 | | |
| |||
147 | 145 | | |
148 | 146 | | |
149 | 147 | | |
150 | | - | |
151 | 148 | | |
152 | 149 | | |
153 | 150 | | |
| |||
198 | 195 | | |
199 | 196 | | |
200 | 197 | | |
201 | | - | |
202 | 198 | | |
203 | 199 | | |
204 | 200 | | |
| |||
292 | 288 | | |
293 | 289 | | |
294 | 290 | | |
295 | | - | |
296 | 291 | | |
297 | 292 | | |
298 | 293 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 5 | + | |
18 | 6 | | |
19 | 7 | | |
20 | 8 | | |
21 | 9 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | 10 | | |
27 | 11 | | |
28 | 12 | | |
0 commit comments