@sentry/junior-github 0.311.0 → 0.313.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/testing.js CHANGED
@@ -1 +1 @@
1
- export { n as normalizeGitHubEvents } from "./events-BxioaScB.js";
1
+ export { n as normalizeGitHubEvents } from "./events-mAaCafvx.js";
@@ -0,0 +1,3 @@
1
+ ALTER TABLE "junior_github_pull_requests" ADD COLUMN "finished_at" timestamp with time zone;--> statement-breakpoint
2
+ -- junior:bounded-backfill: the table holds only pull requests that Junior opened, a few thousand rows, and each row changes once.
3
+ UPDATE "junior_github_pull_requests" SET "finished_at" = coalesce("merged_at", "closed_at") WHERE "state" <> 'open';
@@ -0,0 +1,5 @@
1
+ DROP INDEX "junior_github_pull_requests_merged_at_idx";--> statement-breakpoint
2
+ DROP INDEX "junior_github_pull_requests_closed_at_idx";--> statement-breakpoint
3
+ ALTER TABLE "junior_github_pull_requests" DROP COLUMN "draft";--> statement-breakpoint
4
+ ALTER TABLE "junior_github_pull_requests" DROP COLUMN "merged_at";--> statement-breakpoint
5
+ ALTER TABLE "junior_github_pull_requests" DROP COLUMN "closed_at";
@@ -0,0 +1,467 @@
1
+ {
2
+ "id": "a060e2c9-de82-4766-94c1-358cac925a4e",
3
+ "prevId": "5c9ad6b9-5a37-427f-bc06-7bc3d5345353",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.junior_github_issues": {
8
+ "name": "junior_github_issues",
9
+ "schema": "",
10
+ "columns": {
11
+ "issue_id": {
12
+ "name": "issue_id",
13
+ "type": "text",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "repository_id": {
18
+ "name": "repository_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "repository_full_name": {
24
+ "name": "repository_full_name",
25
+ "type": "text",
26
+ "primaryKey": false,
27
+ "notNull": true
28
+ },
29
+ "number": {
30
+ "name": "number",
31
+ "type": "integer",
32
+ "primaryKey": false,
33
+ "notNull": true
34
+ },
35
+ "state": {
36
+ "name": "state",
37
+ "type": "text",
38
+ "primaryKey": false,
39
+ "notNull": true
40
+ },
41
+ "state_reason": {
42
+ "name": "state_reason",
43
+ "type": "text",
44
+ "primaryKey": false,
45
+ "notNull": false
46
+ },
47
+ "conversation_ids": {
48
+ "name": "conversation_ids",
49
+ "type": "text[]",
50
+ "primaryKey": false,
51
+ "notNull": true,
52
+ "default": "ARRAY[]::text[]"
53
+ },
54
+ "opened_at": {
55
+ "name": "opened_at",
56
+ "type": "timestamp with time zone",
57
+ "primaryKey": false,
58
+ "notNull": true
59
+ },
60
+ "closed_at": {
61
+ "name": "closed_at",
62
+ "type": "timestamp with time zone",
63
+ "primaryKey": false,
64
+ "notNull": false
65
+ },
66
+ "updated_at": {
67
+ "name": "updated_at",
68
+ "type": "timestamp with time zone",
69
+ "primaryKey": false,
70
+ "notNull": true
71
+ }
72
+ },
73
+ "indexes": {
74
+ "junior_github_issues_opened_at_idx": {
75
+ "name": "junior_github_issues_opened_at_idx",
76
+ "columns": [
77
+ {
78
+ "expression": "opened_at",
79
+ "isExpression": false,
80
+ "asc": true,
81
+ "nulls": "last"
82
+ }
83
+ ],
84
+ "isUnique": false,
85
+ "concurrently": false,
86
+ "method": "btree",
87
+ "with": {}
88
+ },
89
+ "junior_github_issues_closed_at_idx": {
90
+ "name": "junior_github_issues_closed_at_idx",
91
+ "columns": [
92
+ {
93
+ "expression": "closed_at",
94
+ "isExpression": false,
95
+ "asc": true,
96
+ "nulls": "last"
97
+ }
98
+ ],
99
+ "isUnique": false,
100
+ "concurrently": false,
101
+ "method": "btree",
102
+ "with": {}
103
+ },
104
+ "junior_github_issues_open_idx": {
105
+ "name": "junior_github_issues_open_idx",
106
+ "columns": [
107
+ {
108
+ "expression": "issue_id",
109
+ "isExpression": false,
110
+ "asc": true,
111
+ "nulls": "last"
112
+ }
113
+ ],
114
+ "isUnique": false,
115
+ "where": "\"junior_github_issues\".\"state\" = 'open'",
116
+ "concurrently": false,
117
+ "method": "btree",
118
+ "with": {}
119
+ }
120
+ },
121
+ "foreignKeys": {},
122
+ "compositePrimaryKeys": {},
123
+ "uniqueConstraints": {},
124
+ "policies": {},
125
+ "checkConstraints": {},
126
+ "isRLSEnabled": false
127
+ },
128
+ "public.junior_github_pull_request_issues": {
129
+ "name": "junior_github_pull_request_issues",
130
+ "schema": "",
131
+ "columns": {
132
+ "pull_request_id": {
133
+ "name": "pull_request_id",
134
+ "type": "text",
135
+ "primaryKey": false,
136
+ "notNull": true
137
+ },
138
+ "issue_repository_full_name": {
139
+ "name": "issue_repository_full_name",
140
+ "type": "text",
141
+ "primaryKey": false,
142
+ "notNull": true
143
+ },
144
+ "issue_number": {
145
+ "name": "issue_number",
146
+ "type": "integer",
147
+ "primaryKey": false,
148
+ "notNull": true
149
+ }
150
+ },
151
+ "indexes": {},
152
+ "foreignKeys": {
153
+ "junior_github_pull_request_issues_pull_request_id_junior_github_pull_requests_pull_request_id_fk": {
154
+ "name": "junior_github_pull_request_issues_pull_request_id_junior_github_pull_requests_pull_request_id_fk",
155
+ "tableFrom": "junior_github_pull_request_issues",
156
+ "tableTo": "junior_github_pull_requests",
157
+ "columnsFrom": [
158
+ "pull_request_id"
159
+ ],
160
+ "columnsTo": [
161
+ "pull_request_id"
162
+ ],
163
+ "onDelete": "cascade",
164
+ "onUpdate": "no action"
165
+ }
166
+ },
167
+ "compositePrimaryKeys": {
168
+ "junior_github_pull_request_issues_pull_request_id_issue_repository_full_name_issue_number_pk": {
169
+ "name": "junior_github_pull_request_issues_pull_request_id_issue_repository_full_name_issue_number_pk",
170
+ "columns": [
171
+ "pull_request_id",
172
+ "issue_repository_full_name",
173
+ "issue_number"
174
+ ]
175
+ }
176
+ },
177
+ "uniqueConstraints": {},
178
+ "policies": {},
179
+ "checkConstraints": {},
180
+ "isRLSEnabled": false
181
+ },
182
+ "public.junior_github_pull_request_requesters": {
183
+ "name": "junior_github_pull_request_requesters",
184
+ "schema": "",
185
+ "columns": {
186
+ "repository_full_name": {
187
+ "name": "repository_full_name",
188
+ "type": "text",
189
+ "primaryKey": false,
190
+ "notNull": true
191
+ },
192
+ "number": {
193
+ "name": "number",
194
+ "type": "integer",
195
+ "primaryKey": false,
196
+ "notNull": true
197
+ },
198
+ "identity_id": {
199
+ "name": "identity_id",
200
+ "type": "text",
201
+ "primaryKey": false,
202
+ "notNull": true
203
+ },
204
+ "conversation_id": {
205
+ "name": "conversation_id",
206
+ "type": "text",
207
+ "primaryKey": false,
208
+ "notNull": false
209
+ },
210
+ "created_at": {
211
+ "name": "created_at",
212
+ "type": "timestamp with time zone",
213
+ "primaryKey": false,
214
+ "notNull": true
215
+ },
216
+ "updated_at": {
217
+ "name": "updated_at",
218
+ "type": "timestamp with time zone",
219
+ "primaryKey": false,
220
+ "notNull": true
221
+ }
222
+ },
223
+ "indexes": {},
224
+ "foreignKeys": {},
225
+ "compositePrimaryKeys": {
226
+ "junior_github_pull_request_requesters_repository_full_name_number_identity_id_pk": {
227
+ "name": "junior_github_pull_request_requesters_repository_full_name_number_identity_id_pk",
228
+ "columns": [
229
+ "repository_full_name",
230
+ "number",
231
+ "identity_id"
232
+ ]
233
+ }
234
+ },
235
+ "uniqueConstraints": {},
236
+ "policies": {},
237
+ "checkConstraints": {},
238
+ "isRLSEnabled": false
239
+ },
240
+ "public.junior_github_pull_requests": {
241
+ "name": "junior_github_pull_requests",
242
+ "schema": "",
243
+ "columns": {
244
+ "pull_request_id": {
245
+ "name": "pull_request_id",
246
+ "type": "text",
247
+ "primaryKey": true,
248
+ "notNull": true
249
+ },
250
+ "repository_id": {
251
+ "name": "repository_id",
252
+ "type": "text",
253
+ "primaryKey": false,
254
+ "notNull": true
255
+ },
256
+ "repository_full_name": {
257
+ "name": "repository_full_name",
258
+ "type": "text",
259
+ "primaryKey": false,
260
+ "notNull": true
261
+ },
262
+ "number": {
263
+ "name": "number",
264
+ "type": "integer",
265
+ "primaryKey": false,
266
+ "notNull": true
267
+ },
268
+ "state": {
269
+ "name": "state",
270
+ "type": "text",
271
+ "primaryKey": false,
272
+ "notNull": true
273
+ },
274
+ "commit_composition": {
275
+ "name": "commit_composition",
276
+ "type": "text",
277
+ "primaryKey": false,
278
+ "notNull": false
279
+ },
280
+ "conversation_ids": {
281
+ "name": "conversation_ids",
282
+ "type": "text[]",
283
+ "primaryKey": false,
284
+ "notNull": true,
285
+ "default": "ARRAY[]::text[]"
286
+ },
287
+ "draft": {
288
+ "name": "draft",
289
+ "type": "boolean",
290
+ "primaryKey": false,
291
+ "notNull": true,
292
+ "default": false
293
+ },
294
+ "opened_at": {
295
+ "name": "opened_at",
296
+ "type": "timestamp with time zone",
297
+ "primaryKey": false,
298
+ "notNull": true
299
+ },
300
+ "merged_at": {
301
+ "name": "merged_at",
302
+ "type": "timestamp with time zone",
303
+ "primaryKey": false,
304
+ "notNull": false
305
+ },
306
+ "closed_at": {
307
+ "name": "closed_at",
308
+ "type": "timestamp with time zone",
309
+ "primaryKey": false,
310
+ "notNull": false
311
+ },
312
+ "finished_at": {
313
+ "name": "finished_at",
314
+ "type": "timestamp with time zone",
315
+ "primaryKey": false,
316
+ "notNull": false
317
+ },
318
+ "updated_at": {
319
+ "name": "updated_at",
320
+ "type": "timestamp with time zone",
321
+ "primaryKey": false,
322
+ "notNull": true
323
+ },
324
+ "next_action": {
325
+ "name": "next_action",
326
+ "type": "text",
327
+ "primaryKey": false,
328
+ "notNull": false
329
+ },
330
+ "ready_sync_requests": {
331
+ "name": "ready_sync_requests",
332
+ "type": "integer",
333
+ "primaryKey": false,
334
+ "notNull": true,
335
+ "default": 0
336
+ },
337
+ "ready_sync_id": {
338
+ "name": "ready_sync_id",
339
+ "type": "integer",
340
+ "primaryKey": false,
341
+ "notNull": false
342
+ },
343
+ "ready_sync_at": {
344
+ "name": "ready_sync_at",
345
+ "type": "timestamp with time zone",
346
+ "primaryKey": false,
347
+ "notNull": false
348
+ },
349
+ "conflict_fixes_resumed_at": {
350
+ "name": "conflict_fixes_resumed_at",
351
+ "type": "timestamp with time zone",
352
+ "primaryKey": false,
353
+ "notNull": false
354
+ },
355
+ "conflict_fix_asked_at": {
356
+ "name": "conflict_fix_asked_at",
357
+ "type": "timestamp with time zone",
358
+ "primaryKey": false,
359
+ "notNull": false
360
+ },
361
+ "conflict_fixes": {
362
+ "name": "conflict_fixes",
363
+ "type": "jsonb",
364
+ "primaryKey": false,
365
+ "notNull": true,
366
+ "default": "'[]'::jsonb"
367
+ }
368
+ },
369
+ "indexes": {
370
+ "junior_github_pull_requests_opened_at_idx": {
371
+ "name": "junior_github_pull_requests_opened_at_idx",
372
+ "columns": [
373
+ {
374
+ "expression": "opened_at",
375
+ "isExpression": false,
376
+ "asc": true,
377
+ "nulls": "last"
378
+ }
379
+ ],
380
+ "isUnique": false,
381
+ "concurrently": false,
382
+ "method": "btree",
383
+ "with": {}
384
+ },
385
+ "junior_github_pull_requests_merged_at_idx": {
386
+ "name": "junior_github_pull_requests_merged_at_idx",
387
+ "columns": [
388
+ {
389
+ "expression": "merged_at",
390
+ "isExpression": false,
391
+ "asc": true,
392
+ "nulls": "last"
393
+ }
394
+ ],
395
+ "isUnique": false,
396
+ "concurrently": false,
397
+ "method": "btree",
398
+ "with": {}
399
+ },
400
+ "junior_github_pull_requests_closed_at_idx": {
401
+ "name": "junior_github_pull_requests_closed_at_idx",
402
+ "columns": [
403
+ {
404
+ "expression": "closed_at",
405
+ "isExpression": false,
406
+ "asc": true,
407
+ "nulls": "last"
408
+ }
409
+ ],
410
+ "isUnique": false,
411
+ "concurrently": false,
412
+ "method": "btree",
413
+ "with": {}
414
+ },
415
+ "junior_github_pull_requests_open_idx": {
416
+ "name": "junior_github_pull_requests_open_idx",
417
+ "columns": [
418
+ {
419
+ "expression": "pull_request_id",
420
+ "isExpression": false,
421
+ "asc": true,
422
+ "nulls": "last"
423
+ }
424
+ ],
425
+ "isUnique": false,
426
+ "where": "\"junior_github_pull_requests\".\"state\" = 'open'",
427
+ "concurrently": false,
428
+ "method": "btree",
429
+ "with": {}
430
+ },
431
+ "junior_github_pull_requests_unmerged_conversations_idx": {
432
+ "name": "junior_github_pull_requests_unmerged_conversations_idx",
433
+ "columns": [
434
+ {
435
+ "expression": "conversation_ids",
436
+ "isExpression": false,
437
+ "asc": true,
438
+ "nulls": "last"
439
+ }
440
+ ],
441
+ "isUnique": false,
442
+ "where": "\"junior_github_pull_requests\".\"state\" <> 'merged'",
443
+ "concurrently": false,
444
+ "method": "gin",
445
+ "with": {}
446
+ }
447
+ },
448
+ "foreignKeys": {},
449
+ "compositePrimaryKeys": {},
450
+ "uniqueConstraints": {},
451
+ "policies": {},
452
+ "checkConstraints": {},
453
+ "isRLSEnabled": false
454
+ }
455
+ },
456
+ "enums": {},
457
+ "schemas": {},
458
+ "sequences": {},
459
+ "roles": {},
460
+ "policies": {},
461
+ "views": {},
462
+ "_meta": {
463
+ "columns": {},
464
+ "schemas": {},
465
+ "tables": {}
466
+ }
467
+ }