Skip to content

Commit 68f1436

Browse files
authored
Merge branch 'master' into rjo100/improve-checkin-validator
2 parents a1ceb73 + 08c8342 commit 68f1436

File tree

1,301 files changed

+25321
-11367
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,301 files changed

+25321
-11367
lines changed

.github/CODEOWNERS

+9
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@
5454
/src/sentry/api/authentication.py @getsentry/security @getsentry/enterprise
5555
/src/sentry/api/endpoints/auth* @getsentry/security @getsentry/enterprise
5656
/src/sentry/api/endpoints/user_permission* @getsentry/security @getsentry/enterprise
57+
/src/sentry/web/frontend/auth_close.py @getsentry/security
58+
/src/sentry/web/frontend/auth_login.py @getsentry/security
59+
/src/sentry/web/frontend/auth_logout.py @getsentry/security
60+
/src/sentry/web/frontend/auth_organization_id_login.py @getsentry/security
61+
/src/sentry/web/frontend/auth_organization_login.py @getsentry/security
62+
/src/sentry/web/frontend/auth_provider_login.py @getsentry/security
63+
/src/sentry/web/frontend/oauth_token.py @getsentry/security
64+
/src/sentry/web/frontend/oauth_authorize.py @getsentry/security
65+
/src/sentry/web/frontend/openidtoken.py @getsentry/security
5766

5867
## Dev
5968
/.github/ @getsentry/owners-sentry-dev

.github/workflows/backend.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ jobs:
7474
fail-fast: false
7575
matrix:
7676
# XXX: When updating this, make sure you also update MATRIX_INSTANCE_TOTAL.
77-
instance: [0, 1, 2, 3, 4, 5]
77+
instance: [0, 1, 2, 3, 4, 5, 6]
7878
pg-version: ['14']
7979

8080
env:
8181
# XXX: `MATRIX_INSTANCE_TOTAL` must be hardcoded to the length of `strategy.matrix.instance`.
8282
# If this increases, make sure to also increase `flags.backend.after_n_builds` in `codecov.yml`.
83-
MATRIX_INSTANCE_TOTAL: 6
83+
MATRIX_INSTANCE_TOTAL: 7
8484

8585
steps:
8686
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0

.github/workflows/migrations.yml

-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ jobs:
6565

6666
- name: Setup sentry env
6767
uses: ./.github/actions/setup-sentry
68-
id: setup
6968
with:
7069
pg-version: ${{ matrix.pg-version }}
7170

.github/workflows/openapi-diff.yml

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ jobs:
3434
- name: Setup sentry env
3535
uses: ./.github/actions/setup-sentry
3636
if: steps.changes.outputs.api_docs == 'true'
37-
id: setup
3837

3938
- name: Checkout getsentry/sentry-api-schema
4039
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0

.github/workflows/openapi.yml

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ jobs:
3636
- name: Setup sentry env
3737
uses: ./.github/actions/setup-sentry
3838
if: steps.changes.outputs.api_docs == 'true'
39-
id: setup
4039

4140
- name: Checkout getsentry/sentry-api-schema
4241
if: steps.changes.outputs.api_docs == 'true'

.github/workflows/stale.yml

-45
This file was deleted.

babel.config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ const config: TransformOptions = {
3737
classNameMatchers: [
3838
'SelectField',
3939
'FormField',
40-
'AsyncComponent',
41-
'AsyncView',
40+
'DeprecatedAsyncComponent',
41+
'DeprecatedAsyncView',
4242
],
4343
additionalLibraries: [/app\/sentryTypes$/],
4444
},

codecov.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ flags:
5858
- "src/sentry/**/*.py"
5959
carryforward: true
6060
# Do not send any status checks until N coverage reports are uploaded
61-
after_n_builds: 17
61+
after_n_builds: 18
6262

6363
# Read more here: https://docs.codecov.com/docs/pull-request-comments
6464
comment:
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[
2+
{
3+
"model": "sites.site",
4+
"pk": 1,
5+
"fields": {
6+
"domain": "example.com",
7+
"name": "example.com"
8+
}
9+
},
10+
{
11+
"model": "sentry.option",
12+
"pk": 1,
13+
"fields": {
14+
"key": "sentry:latest_version",
15+
"last_updated": "2023-06-22T00:00:00.000Z",
16+
"last_updated_by": "unknown",
17+
"value": "\"23.6.1\""
18+
}
19+
}
20+
]

fixtures/backup/fresh-install.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@
166166
"pk": 1,
167167
"fields": {
168168
"date_updated": "2023-06-22T23:00:00.123Z",
169-
"date_added": "2023-06-22T22:59:57.073Z",
169+
"date_added": "2023-06-22T22:59:57.000Z",
170170
"user": [
171171
172172
],

fixtures/js-stubs/accountAppearance.js

-9
This file was deleted.

fixtures/js-stubs/accountEmails.js renamed to fixtures/js-stubs/accountEmails.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
export function AccountEmails(params = []) {
1+
import type {UserEmail} from 'sentry/types';
2+
3+
export function AccountEmails(params: UserEmail[] = []): UserEmail[] {
24
return [
35
{
46

fixtures/js-stubs/activityFeed.js renamed to fixtures/js-stubs/activityFeed.tsx

+46-19
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1-
export function ActivityFeed(params = {}) {
1+
import {
2+
type Activity,
3+
EventOrGroupType,
4+
GroupActivityType,
5+
IssueCategory,
6+
IssueType,
7+
} from 'sentry/types';
8+
9+
export function ActivityFeed(params: Partial<Activity> = {}): Activity {
210
return {
311
data: {text: 'Very interesting comment'},
412
dateCreated: '2019-04-29T21:43:32.280Z',
5-
project: {
6-
status: 'active',
13+
project: TestStubs.Project({
714
features: [
815
'releases',
916
'sample-events',
@@ -13,21 +20,18 @@ export function ActivityFeed(params = {}) {
1320
'similarity-view',
1421
'data-forwarding',
1522
],
16-
color: '#bf873f',
1723
isInternal: true,
18-
isPublic: false,
1924
dateCreated: '2019-03-09T06:52:19.832Z',
2025
id: '1',
2126
slug: 'internal',
2227
name: 'Internal',
2328
hasAccess: true,
2429
isBookmarked: false,
25-
platform: null,
30+
platform: undefined,
2631
firstEvent: '2019-03-09T06:56:15Z',
27-
avatar: {avatarUuid: null, avatarType: 'letter_avatar'},
2832
isMember: true,
29-
},
30-
user: {
33+
}),
34+
user: TestStubs.User({
3135
username: '[email protected]',
3236
lastLogin: '2019-04-23T00:10:19.787Z',
3337
isSuperuser: true,
@@ -52,8 +56,8 @@ export function ActivityFeed(params = {}) {
5256
avatar: {avatarUuid: null, avatarType: 'letter_avatar'},
5357
hasPasswordAuth: true,
5458
55-
},
56-
type: 'note',
59+
}),
60+
type: GroupActivityType.NOTE,
5761
issue: {
5862
platform: 'javascript',
5963
lastSeen: '2019-04-26T16:34:12.288Z',
@@ -62,25 +66,48 @@ export function ActivityFeed(params = {}) {
6266
culprit: '/organizations/:orgId/issues/:groupId/feedback/',
6367
title: 'Error: user efedback',
6468
id: '524',
65-
assignedTo: null,
66-
logger: null,
67-
type: 'error',
69+
assignedTo: {
70+
id: '1',
71+
name: 'actor',
72+
type: 'user',
73+
},
74+
issueCategory: IssueCategory.ERROR,
75+
issueType: IssueType.ERROR,
76+
participants: [],
77+
latestEvent: TestStubs.Event(),
78+
isUnhandled: true,
79+
pluginActions: [],
80+
pluginContexts: [],
81+
seenBy: [],
82+
filtered: null,
83+
pluginIssues: [],
84+
// there is a nasty type issue here where "reprocessing" cannot be assigned to
85+
// resolution status | "reprocessing" and "reprocessing" cannot be assigned to resolution
86+
// status (fails even if I as const it).
87+
// @ts-expect-error
88+
status: 'reprocessing',
89+
activity: [],
90+
logger: 'critical',
91+
type: EventOrGroupType.ERROR,
6892
annotations: [],
69-
metadata: {type: 'Error', value: 'user efedback', filename: '<anonymous>'},
70-
status: 'unresolved',
93+
metadata: {type: 'Error', value: 'user feedback', filename: '<anonymous>'},
7194
subscriptionDetails: {reason: 'commented'},
7295
isPublic: false,
7396
hasSeen: true,
7497
shortId: 'INTERNAL-DW',
75-
shareId: null,
98+
shareId: '99',
7699
firstSeen: '2019-04-26T16:34:12.288Z',
77100
count: '1',
78101
permalink: 'http://localhost:8000/organizations/sentry/issues/524/?project=1',
79102
level: 'error',
80103
isSubscribed: true,
81104
isBookmarked: false,
82-
project: {platform: null, slug: 'internal', id: '1', name: 'Internal'},
83-
statusDetails: {},
105+
project: TestStubs.Project({
106+
platform: undefined,
107+
slug: 'internal',
108+
id: '1',
109+
name: 'Internal',
110+
}),
84111
},
85112
id: '48',
86113
...params,

fixtures/js-stubs/apiApplication.js renamed to fixtures/js-stubs/apiApplication.tsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
export function ApiApplication(params = {}) {
1+
import type {ApiApplication as ApiApplicationType} from 'sentry/types';
2+
3+
export function ApiApplication(
4+
params: Partial<ApiApplicationType> = {}
5+
): ApiApplicationType {
26
return {
37
allowedOrigins: [],
48
clientID: 'aowekr12903i9i423094i23904j',
@@ -8,6 +12,7 @@ export function ApiApplication(params = {}) {
812
name: 'Adjusted Shrimp',
913
privacyUrl: null,
1014
redirectUris: [],
15+
termsUrl: null,
1116
...params,
1217
};
1318
}

fixtures/js-stubs/apiKey.js

-11
This file was deleted.

fixtures/js-stubs/apiToken.js

-8
This file was deleted.

fixtures/js-stubs/apiToken.tsx

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import type {InternalAppApiToken as InternalAppApiTokenType} from 'sentry/types';
2+
3+
export function ApiToken(
4+
params: Partial<InternalAppApiTokenType> = {}
5+
): InternalAppApiTokenType {
6+
return {
7+
id: '1',
8+
token: 'apitoken123',
9+
dateCreated: new Date('Thu Jan 11 2018 18:01:41 GMT-0800 (PST)').toISOString(),
10+
scopes: ['project:read', 'project:write'],
11+
application: null,
12+
refreshToken: 'refresh_token',
13+
expiresAt: new Date('Thu Jan 11 2018 18:01:41 GMT-0800 (PST)').toISOString(),
14+
state: 'active',
15+
...params,
16+
};
17+
}

0 commit comments

Comments
 (0)