@sentry/junior-github 0.313.0 → 0.315.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/{events-mAaCafvx.js → events-D3Qnj4yY.js} +58 -20
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3130 -1873
- package/dist/testing.js +1 -1
- package/migrations/20260722180343_pull_request_outcomes/snapshot.json +315 -0
- package/migrations/20260722224832_issue_outcomes/snapshot.json +301 -0
- package/migrations/20260722230324_pull_request_commit_composition/snapshot.json +42 -0
- package/migrations/20260722231413_pull_request_conversations/snapshot.json +42 -0
- package/migrations/20260723023722_marvelous_toad_men/snapshot.json +42 -0
- package/migrations/20260724235000_github_cost_associations/snapshot.json +73 -0
- package/migrations/20260725024522_fat_korvac/snapshot.json +158 -0
- package/migrations/20260811221145_shallow_millenium_guard/snapshot.json +54 -0
- package/migrations/{0008_native_code_backfill.sql → 20260824190830_native_code_backfill/migration.sql} +5 -9
- package/migrations/20260824190830_native_code_backfill/snapshot.json +9 -0
- package/migrations/20261028220913_nostalgic_thing/snapshot.json +128 -0
- package/migrations/20261101195735_sleepy_slayback/snapshot.json +169 -0
- package/migrations/20261112142844_pull_request_draft/snapshot.json +42 -0
- package/migrations/20261113213858_pull_request_next_action/snapshot.json +61 -0
- package/migrations/20261119095049_conflict_fixes_resumed_at/snapshot.json +42 -0
- package/migrations/20261119230607_conflict_fixes/snapshot.json +42 -0
- package/migrations/20261120232426_conflict_fix_asked_at/snapshot.json +42 -0
- package/migrations/20261121002146_pull_request_finished_at/snapshot.json +42 -0
- package/migrations/20261121002159_pull_request_lifecycle_copies/snapshot.json +118 -0
- package/migrations/20261123212042_drop_pull_request_issues/migration.sql +1 -0
- package/migrations/20261123212042_drop_pull_request_issues/snapshot.json +51 -0
- package/migrations/20261123220932_drop_github_issues/migration.sql +1 -0
- package/migrations/20261123220932_drop_github_issues/snapshot.json +83 -0
- package/migrations/20261123224011_pull_request_lifecycle_backfill/migration.sql +80 -0
- package/migrations/20261123224011_pull_request_lifecycle_backfill/snapshot.json +9 -0
- package/migrations/20261123224012_pull_request_lifecycle_in_code_index/migration.sql +10 -0
- package/migrations/20261123224012_pull_request_lifecycle_in_code_index/snapshot.json +219 -0
- package/package.json +4 -4
- package/migrations/meta/0000_snapshot.json +0 -148
- package/migrations/meta/0001_snapshot.json +0 -256
- package/migrations/meta/0002_snapshot.json +0 -262
- package/migrations/meta/0003_snapshot.json +0 -269
- package/migrations/meta/0004_snapshot.json +0 -275
- package/migrations/meta/0005_snapshot.json +0 -289
- package/migrations/meta/0006_snapshot.json +0 -336
- package/migrations/meta/0007_snapshot.json +0 -352
- package/migrations/meta/0008_snapshot.json +0 -348
- package/migrations/meta/0009_snapshot.json +0 -404
- package/migrations/meta/0010_snapshot.json +0 -427
- package/migrations/meta/0011_snapshot.json +0 -434
- package/migrations/meta/0012_snapshot.json +0 -434
- package/migrations/meta/0013_snapshot.json +0 -448
- package/migrations/meta/0014_snapshot.json +0 -455
- package/migrations/meta/0015_snapshot.json +0 -461
- package/migrations/meta/0016_snapshot.json +0 -467
- package/migrations/meta/0017_snapshot.json +0 -418
- package/migrations/meta/_journal.json +0 -132
- /package/migrations/{0000_pull_request_outcomes.sql → 20260722180343_pull_request_outcomes/migration.sql} +0 -0
- /package/migrations/{0001_issue_outcomes.sql → 20260722224832_issue_outcomes/migration.sql} +0 -0
- /package/migrations/{0002_pull_request_commit_composition.sql → 20260722230324_pull_request_commit_composition/migration.sql} +0 -0
- /package/migrations/{0003_pull_request_conversations.sql → 20260722231413_pull_request_conversations/migration.sql} +0 -0
- /package/migrations/{0004_marvelous_toad_men.sql → 20260723023722_marvelous_toad_men/migration.sql} +0 -0
- /package/migrations/{0005_github_cost_associations.sql → 20260724235000_github_cost_associations/migration.sql} +0 -0
- /package/migrations/{0006_fat_korvac.sql → 20260725024522_fat_korvac/migration.sql} +0 -0
- /package/migrations/{0007_shallow_millenium_guard.sql → 20260811221145_shallow_millenium_guard/migration.sql} +0 -0
- /package/migrations/{0009_nostalgic_thing.sql → 20261028220913_nostalgic_thing/migration.sql} +0 -0
- /package/migrations/{0010_sleepy_slayback.sql → 20261101195735_sleepy_slayback/migration.sql} +0 -0
- /package/migrations/{0011_pull_request_draft.sql → 20261112142844_pull_request_draft/migration.sql} +0 -0
- /package/migrations/{0012_pull_request_next_action.sql → 20261113213858_pull_request_next_action/migration.sql} +0 -0
- /package/migrations/{0013_conflict_fixes_resumed_at.sql → 20261119095049_conflict_fixes_resumed_at/migration.sql} +0 -0
- /package/migrations/{0014_conflict_fixes.sql → 20261119230607_conflict_fixes/migration.sql} +0 -0
- /package/migrations/{0015_conflict_fix_asked_at.sql → 20261120232426_conflict_fix_asked_at/migration.sql} +0 -0
- /package/migrations/{0016_pull_request_finished_at.sql → 20261121002146_pull_request_finished_at/migration.sql} +0 -0
- /package/migrations/{0017_pull_request_lifecycle_copies.sql → 20261121002159_pull_request_lifecycle_copies/migration.sql} +0 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "diff",
|
|
3
|
+
"version": "10",
|
|
4
|
+
"dialect": "postgres",
|
|
5
|
+
"id": "7b0a99a8-d5c9-4810-a220-3b6c8517c9cf",
|
|
6
|
+
"prevIds": ["3156d5c8-917d-416b-a19b-f58e7ee76acc"],
|
|
7
|
+
"footprints": [
|
|
8
|
+
{
|
|
9
|
+
"statementType": "add_column",
|
|
10
|
+
"statementTarget": [
|
|
11
|
+
"column",
|
|
12
|
+
"public",
|
|
13
|
+
"junior_github_pull_requests",
|
|
14
|
+
"draft"
|
|
15
|
+
],
|
|
16
|
+
"writes": [
|
|
17
|
+
"s|col|public.junior_github_pull_requests.draft",
|
|
18
|
+
"n|col|public.junior_github_pull_requests.draft",
|
|
19
|
+
"e|col|public.junior_github_pull_requests.draft"
|
|
20
|
+
],
|
|
21
|
+
"reads": ["n|tbl|public.junior_github_pull_requests", "n|sch|public"]
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"deltas": [
|
|
25
|
+
{
|
|
26
|
+
"op": "create",
|
|
27
|
+
"row": {
|
|
28
|
+
"schema": "public",
|
|
29
|
+
"table": "junior_github_pull_requests",
|
|
30
|
+
"name": "draft",
|
|
31
|
+
"type": "boolean",
|
|
32
|
+
"typeSchema": null,
|
|
33
|
+
"notNull": true,
|
|
34
|
+
"dimensions": 0,
|
|
35
|
+
"default": "false",
|
|
36
|
+
"generated": null,
|
|
37
|
+
"identity": null,
|
|
38
|
+
"entityType": "columns"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "diff",
|
|
3
|
+
"version": "10",
|
|
4
|
+
"dialect": "postgres",
|
|
5
|
+
"id": "055a183e-3fe9-4077-a93f-6fd5f0786389",
|
|
6
|
+
"prevIds": ["7b0a99a8-d5c9-4810-a220-3b6c8517c9cf"],
|
|
7
|
+
"footprints": [
|
|
8
|
+
{
|
|
9
|
+
"statementType": "add_column",
|
|
10
|
+
"statementTarget": [
|
|
11
|
+
"column",
|
|
12
|
+
"public",
|
|
13
|
+
"junior_github_pull_requests",
|
|
14
|
+
"next_action"
|
|
15
|
+
],
|
|
16
|
+
"writes": [
|
|
17
|
+
"s|col|public.junior_github_pull_requests.next_action",
|
|
18
|
+
"n|col|public.junior_github_pull_requests.next_action",
|
|
19
|
+
"e|col|public.junior_github_pull_requests.next_action"
|
|
20
|
+
],
|
|
21
|
+
"reads": ["n|tbl|public.junior_github_pull_requests", "n|sch|public"]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"statementType": "drop_column",
|
|
25
|
+
"statementTarget": [
|
|
26
|
+
"column",
|
|
27
|
+
"public",
|
|
28
|
+
"junior_github_pull_requests",
|
|
29
|
+
"ready_to_merge_at"
|
|
30
|
+
],
|
|
31
|
+
"writes": [
|
|
32
|
+
"s|col|public.junior_github_pull_requests.ready_to_merge_at",
|
|
33
|
+
"n|col|public.junior_github_pull_requests.ready_to_merge_at",
|
|
34
|
+
"e|col|public.junior_github_pull_requests.ready_to_merge_at"
|
|
35
|
+
],
|
|
36
|
+
"reads": ["n|tbl|public.junior_github_pull_requests", "n|sch|public"]
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"deltas": [
|
|
40
|
+
{
|
|
41
|
+
"op": "create",
|
|
42
|
+
"row": {
|
|
43
|
+
"schema": "public",
|
|
44
|
+
"table": "junior_github_pull_requests",
|
|
45
|
+
"name": "next_action",
|
|
46
|
+
"type": "text",
|
|
47
|
+
"typeSchema": null,
|
|
48
|
+
"notNull": false,
|
|
49
|
+
"dimensions": 0,
|
|
50
|
+
"default": null,
|
|
51
|
+
"generated": null,
|
|
52
|
+
"identity": null,
|
|
53
|
+
"entityType": "columns"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"op": "drop",
|
|
58
|
+
"key": "columns\u0000[\"public\",\"junior_github_pull_requests\",\"ready_to_merge_at\"]"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "diff",
|
|
3
|
+
"version": "10",
|
|
4
|
+
"dialect": "postgres",
|
|
5
|
+
"id": "6578cc70-eade-4298-9b62-c709750ee166",
|
|
6
|
+
"prevIds": ["055a183e-3fe9-4077-a93f-6fd5f0786389"],
|
|
7
|
+
"footprints": [
|
|
8
|
+
{
|
|
9
|
+
"statementType": "add_column",
|
|
10
|
+
"statementTarget": [
|
|
11
|
+
"column",
|
|
12
|
+
"public",
|
|
13
|
+
"junior_github_pull_requests",
|
|
14
|
+
"conflict_fixes_resumed_at"
|
|
15
|
+
],
|
|
16
|
+
"writes": [
|
|
17
|
+
"s|col|public.junior_github_pull_requests.conflict_fixes_resumed_at",
|
|
18
|
+
"n|col|public.junior_github_pull_requests.conflict_fixes_resumed_at",
|
|
19
|
+
"e|col|public.junior_github_pull_requests.conflict_fixes_resumed_at"
|
|
20
|
+
],
|
|
21
|
+
"reads": ["n|tbl|public.junior_github_pull_requests", "n|sch|public"]
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"deltas": [
|
|
25
|
+
{
|
|
26
|
+
"op": "create",
|
|
27
|
+
"row": {
|
|
28
|
+
"schema": "public",
|
|
29
|
+
"table": "junior_github_pull_requests",
|
|
30
|
+
"name": "conflict_fixes_resumed_at",
|
|
31
|
+
"type": "timestamp with time zone",
|
|
32
|
+
"typeSchema": null,
|
|
33
|
+
"notNull": false,
|
|
34
|
+
"dimensions": 0,
|
|
35
|
+
"default": null,
|
|
36
|
+
"generated": null,
|
|
37
|
+
"identity": null,
|
|
38
|
+
"entityType": "columns"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "diff",
|
|
3
|
+
"version": "10",
|
|
4
|
+
"dialect": "postgres",
|
|
5
|
+
"id": "0b758f75-fee5-4b69-afab-9de8929e99b2",
|
|
6
|
+
"prevIds": ["6578cc70-eade-4298-9b62-c709750ee166"],
|
|
7
|
+
"footprints": [
|
|
8
|
+
{
|
|
9
|
+
"statementType": "add_column",
|
|
10
|
+
"statementTarget": [
|
|
11
|
+
"column",
|
|
12
|
+
"public",
|
|
13
|
+
"junior_github_pull_requests",
|
|
14
|
+
"conflict_fixes"
|
|
15
|
+
],
|
|
16
|
+
"writes": [
|
|
17
|
+
"s|col|public.junior_github_pull_requests.conflict_fixes",
|
|
18
|
+
"n|col|public.junior_github_pull_requests.conflict_fixes",
|
|
19
|
+
"e|col|public.junior_github_pull_requests.conflict_fixes"
|
|
20
|
+
],
|
|
21
|
+
"reads": ["n|tbl|public.junior_github_pull_requests", "n|sch|public"]
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"deltas": [
|
|
25
|
+
{
|
|
26
|
+
"op": "create",
|
|
27
|
+
"row": {
|
|
28
|
+
"schema": "public",
|
|
29
|
+
"table": "junior_github_pull_requests",
|
|
30
|
+
"name": "conflict_fixes",
|
|
31
|
+
"type": "jsonb",
|
|
32
|
+
"typeSchema": null,
|
|
33
|
+
"notNull": true,
|
|
34
|
+
"dimensions": 0,
|
|
35
|
+
"default": "'[]'",
|
|
36
|
+
"generated": null,
|
|
37
|
+
"identity": null,
|
|
38
|
+
"entityType": "columns"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "diff",
|
|
3
|
+
"version": "10",
|
|
4
|
+
"dialect": "postgres",
|
|
5
|
+
"id": "5c9ad6b9-5a37-427f-bc06-7bc3d5345353",
|
|
6
|
+
"prevIds": ["0b758f75-fee5-4b69-afab-9de8929e99b2"],
|
|
7
|
+
"footprints": [
|
|
8
|
+
{
|
|
9
|
+
"statementType": "add_column",
|
|
10
|
+
"statementTarget": [
|
|
11
|
+
"column",
|
|
12
|
+
"public",
|
|
13
|
+
"junior_github_pull_requests",
|
|
14
|
+
"conflict_fix_asked_at"
|
|
15
|
+
],
|
|
16
|
+
"writes": [
|
|
17
|
+
"s|col|public.junior_github_pull_requests.conflict_fix_asked_at",
|
|
18
|
+
"n|col|public.junior_github_pull_requests.conflict_fix_asked_at",
|
|
19
|
+
"e|col|public.junior_github_pull_requests.conflict_fix_asked_at"
|
|
20
|
+
],
|
|
21
|
+
"reads": ["n|tbl|public.junior_github_pull_requests", "n|sch|public"]
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"deltas": [
|
|
25
|
+
{
|
|
26
|
+
"op": "create",
|
|
27
|
+
"row": {
|
|
28
|
+
"schema": "public",
|
|
29
|
+
"table": "junior_github_pull_requests",
|
|
30
|
+
"name": "conflict_fix_asked_at",
|
|
31
|
+
"type": "timestamp with time zone",
|
|
32
|
+
"typeSchema": null,
|
|
33
|
+
"notNull": false,
|
|
34
|
+
"dimensions": 0,
|
|
35
|
+
"default": null,
|
|
36
|
+
"generated": null,
|
|
37
|
+
"identity": null,
|
|
38
|
+
"entityType": "columns"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "diff",
|
|
3
|
+
"version": "10",
|
|
4
|
+
"dialect": "postgres",
|
|
5
|
+
"id": "a060e2c9-de82-4766-94c1-358cac925a4e",
|
|
6
|
+
"prevIds": ["5c9ad6b9-5a37-427f-bc06-7bc3d5345353"],
|
|
7
|
+
"footprints": [
|
|
8
|
+
{
|
|
9
|
+
"statementType": "add_column",
|
|
10
|
+
"statementTarget": [
|
|
11
|
+
"column",
|
|
12
|
+
"public",
|
|
13
|
+
"junior_github_pull_requests",
|
|
14
|
+
"finished_at"
|
|
15
|
+
],
|
|
16
|
+
"writes": [
|
|
17
|
+
"s|col|public.junior_github_pull_requests.finished_at",
|
|
18
|
+
"n|col|public.junior_github_pull_requests.finished_at",
|
|
19
|
+
"e|col|public.junior_github_pull_requests.finished_at"
|
|
20
|
+
],
|
|
21
|
+
"reads": ["n|tbl|public.junior_github_pull_requests", "n|sch|public"]
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"deltas": [
|
|
25
|
+
{
|
|
26
|
+
"op": "create",
|
|
27
|
+
"row": {
|
|
28
|
+
"schema": "public",
|
|
29
|
+
"table": "junior_github_pull_requests",
|
|
30
|
+
"name": "finished_at",
|
|
31
|
+
"type": "timestamp with time zone",
|
|
32
|
+
"typeSchema": null,
|
|
33
|
+
"notNull": false,
|
|
34
|
+
"dimensions": 0,
|
|
35
|
+
"default": null,
|
|
36
|
+
"generated": null,
|
|
37
|
+
"identity": null,
|
|
38
|
+
"entityType": "columns"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "diff",
|
|
3
|
+
"version": "10",
|
|
4
|
+
"dialect": "postgres",
|
|
5
|
+
"id": "84ce1936-1b4b-461e-95a0-f3dbfd5d14fb",
|
|
6
|
+
"prevIds": ["a060e2c9-de82-4766-94c1-358cac925a4e"],
|
|
7
|
+
"footprints": [
|
|
8
|
+
{
|
|
9
|
+
"statementType": "drop_index",
|
|
10
|
+
"statementTarget": [
|
|
11
|
+
"index",
|
|
12
|
+
"public",
|
|
13
|
+
"junior_github_pull_requests",
|
|
14
|
+
"junior_github_pull_requests_merged_at_idx"
|
|
15
|
+
],
|
|
16
|
+
"writes": [
|
|
17
|
+
"s|idx|public.junior_github_pull_requests_merged_at_idx",
|
|
18
|
+
"n|idx|public.junior_github_pull_requests_merged_at_idx",
|
|
19
|
+
"e|idx|public.junior_github_pull_requests_merged_at_idx",
|
|
20
|
+
"n|rel|public.junior_github_pull_requests_merged_at_idx"
|
|
21
|
+
],
|
|
22
|
+
"reads": [
|
|
23
|
+
"e|tbl|public.junior_github_pull_requests",
|
|
24
|
+
"n|sch|public",
|
|
25
|
+
"e|col|public.junior_github_pull_requests.merged_at"
|
|
26
|
+
],
|
|
27
|
+
"sharedWrites": []
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"statementType": "drop_index",
|
|
31
|
+
"statementTarget": [
|
|
32
|
+
"index",
|
|
33
|
+
"public",
|
|
34
|
+
"junior_github_pull_requests",
|
|
35
|
+
"junior_github_pull_requests_closed_at_idx"
|
|
36
|
+
],
|
|
37
|
+
"writes": [
|
|
38
|
+
"s|idx|public.junior_github_pull_requests_closed_at_idx",
|
|
39
|
+
"n|idx|public.junior_github_pull_requests_closed_at_idx",
|
|
40
|
+
"e|idx|public.junior_github_pull_requests_closed_at_idx",
|
|
41
|
+
"n|rel|public.junior_github_pull_requests_closed_at_idx"
|
|
42
|
+
],
|
|
43
|
+
"reads": [
|
|
44
|
+
"e|tbl|public.junior_github_pull_requests",
|
|
45
|
+
"n|sch|public",
|
|
46
|
+
"e|col|public.junior_github_pull_requests.closed_at"
|
|
47
|
+
],
|
|
48
|
+
"sharedWrites": []
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"statementType": "drop_column",
|
|
52
|
+
"statementTarget": [
|
|
53
|
+
"column",
|
|
54
|
+
"public",
|
|
55
|
+
"junior_github_pull_requests",
|
|
56
|
+
"merged_at"
|
|
57
|
+
],
|
|
58
|
+
"writes": [
|
|
59
|
+
"s|col|public.junior_github_pull_requests.merged_at",
|
|
60
|
+
"n|col|public.junior_github_pull_requests.merged_at",
|
|
61
|
+
"e|col|public.junior_github_pull_requests.merged_at"
|
|
62
|
+
],
|
|
63
|
+
"reads": ["n|tbl|public.junior_github_pull_requests", "n|sch|public"]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"statementType": "drop_column",
|
|
67
|
+
"statementTarget": [
|
|
68
|
+
"column",
|
|
69
|
+
"public",
|
|
70
|
+
"junior_github_pull_requests",
|
|
71
|
+
"closed_at"
|
|
72
|
+
],
|
|
73
|
+
"writes": [
|
|
74
|
+
"s|col|public.junior_github_pull_requests.closed_at",
|
|
75
|
+
"n|col|public.junior_github_pull_requests.closed_at",
|
|
76
|
+
"e|col|public.junior_github_pull_requests.closed_at"
|
|
77
|
+
],
|
|
78
|
+
"reads": ["n|tbl|public.junior_github_pull_requests", "n|sch|public"]
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"statementType": "drop_column",
|
|
82
|
+
"statementTarget": [
|
|
83
|
+
"column",
|
|
84
|
+
"public",
|
|
85
|
+
"junior_github_pull_requests",
|
|
86
|
+
"draft"
|
|
87
|
+
],
|
|
88
|
+
"writes": [
|
|
89
|
+
"s|col|public.junior_github_pull_requests.draft",
|
|
90
|
+
"n|col|public.junior_github_pull_requests.draft",
|
|
91
|
+
"e|col|public.junior_github_pull_requests.draft"
|
|
92
|
+
],
|
|
93
|
+
"reads": ["n|tbl|public.junior_github_pull_requests", "n|sch|public"]
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"deltas": [
|
|
97
|
+
{
|
|
98
|
+
"op": "drop",
|
|
99
|
+
"key": "columns\u0000[\"public\",\"junior_github_pull_requests\",\"merged_at\"]"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"op": "drop",
|
|
103
|
+
"key": "columns\u0000[\"public\",\"junior_github_pull_requests\",\"closed_at\"]"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"op": "drop",
|
|
107
|
+
"key": "columns\u0000[\"public\",\"junior_github_pull_requests\",\"draft\"]"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"op": "drop",
|
|
111
|
+
"key": "indexes\u0000[\"public\",\"junior_github_pull_requests_merged_at_idx\"]"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"op": "drop",
|
|
115
|
+
"key": "indexes\u0000[\"public\",\"junior_github_pull_requests_closed_at_idx\"]"
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
DROP TABLE "junior_github_pull_request_issues" CASCADE;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "diff",
|
|
3
|
+
"version": "10",
|
|
4
|
+
"dialect": "postgres",
|
|
5
|
+
"id": "b85b88bb-e673-46b0-bf5a-e3582daae286",
|
|
6
|
+
"prevIds": ["84ce1936-1b4b-461e-95a0-f3dbfd5d14fb"],
|
|
7
|
+
"footprints": [
|
|
8
|
+
{
|
|
9
|
+
"statementType": "drop_table",
|
|
10
|
+
"statementTarget": [
|
|
11
|
+
"table",
|
|
12
|
+
"public",
|
|
13
|
+
"junior_github_pull_request_issues"
|
|
14
|
+
],
|
|
15
|
+
"writes": [
|
|
16
|
+
"s|tbl|public.junior_github_pull_request_issues",
|
|
17
|
+
"n|tbl|public.junior_github_pull_request_issues",
|
|
18
|
+
"e|tbl|public.junior_github_pull_request_issues",
|
|
19
|
+
"n|rel|public.junior_github_pull_request_issues",
|
|
20
|
+
"n|type|public.junior_github_pull_request_issues"
|
|
21
|
+
],
|
|
22
|
+
"reads": ["n|sch|public"]
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"deltas": [
|
|
26
|
+
{
|
|
27
|
+
"op": "drop",
|
|
28
|
+
"key": "tables\u0000[\"public\",\"junior_github_pull_request_issues\"]"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"op": "drop",
|
|
32
|
+
"key": "columns\u0000[\"public\",\"junior_github_pull_request_issues\",\"pull_request_id\"]"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"op": "drop",
|
|
36
|
+
"key": "columns\u0000[\"public\",\"junior_github_pull_request_issues\",\"issue_repository_full_name\"]"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"op": "drop",
|
|
40
|
+
"key": "columns\u0000[\"public\",\"junior_github_pull_request_issues\",\"issue_number\"]"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"op": "drop",
|
|
44
|
+
"key": "fks\u0000[\"public\",\"junior_github_pull_request_issues\",\"junior_github_pull_request_issues_pull_request_id_junior_github\"]"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"op": "drop",
|
|
48
|
+
"key": "pks\u0000[\"public\",\"junior_github_pull_request_issues\",\"junior_github_pull_request_issues_pull_request_id_issue_repository_full_name_issue_number_pk\"]"
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
DROP TABLE "junior_github_issues" CASCADE;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "diff",
|
|
3
|
+
"version": "10",
|
|
4
|
+
"dialect": "postgres",
|
|
5
|
+
"id": "1fadcb30-52c2-4998-858b-124b9dcbc2da",
|
|
6
|
+
"prevIds": ["b85b88bb-e673-46b0-bf5a-e3582daae286"],
|
|
7
|
+
"footprints": [
|
|
8
|
+
{
|
|
9
|
+
"statementType": "drop_table",
|
|
10
|
+
"statementTarget": ["table", "public", "junior_github_issues"],
|
|
11
|
+
"writes": [
|
|
12
|
+
"s|tbl|public.junior_github_issues",
|
|
13
|
+
"n|tbl|public.junior_github_issues",
|
|
14
|
+
"e|tbl|public.junior_github_issues",
|
|
15
|
+
"n|rel|public.junior_github_issues",
|
|
16
|
+
"n|type|public.junior_github_issues"
|
|
17
|
+
],
|
|
18
|
+
"reads": ["n|sch|public"]
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"deltas": [
|
|
22
|
+
{
|
|
23
|
+
"op": "drop",
|
|
24
|
+
"key": "tables\u0000[\"public\",\"junior_github_issues\"]"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"op": "drop",
|
|
28
|
+
"key": "columns\u0000[\"public\",\"junior_github_issues\",\"issue_id\"]"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"op": "drop",
|
|
32
|
+
"key": "columns\u0000[\"public\",\"junior_github_issues\",\"repository_id\"]"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"op": "drop",
|
|
36
|
+
"key": "columns\u0000[\"public\",\"junior_github_issues\",\"repository_full_name\"]"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"op": "drop",
|
|
40
|
+
"key": "columns\u0000[\"public\",\"junior_github_issues\",\"number\"]"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"op": "drop",
|
|
44
|
+
"key": "columns\u0000[\"public\",\"junior_github_issues\",\"state\"]"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"op": "drop",
|
|
48
|
+
"key": "columns\u0000[\"public\",\"junior_github_issues\",\"opened_at\"]"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"op": "drop",
|
|
52
|
+
"key": "columns\u0000[\"public\",\"junior_github_issues\",\"closed_at\"]"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"op": "drop",
|
|
56
|
+
"key": "columns\u0000[\"public\",\"junior_github_issues\",\"updated_at\"]"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"op": "drop",
|
|
60
|
+
"key": "columns\u0000[\"public\",\"junior_github_issues\",\"state_reason\"]"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"op": "drop",
|
|
64
|
+
"key": "columns\u0000[\"public\",\"junior_github_issues\",\"conversation_ids\"]"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"op": "drop",
|
|
68
|
+
"key": "indexes\u0000[\"public\",\"junior_github_issues_opened_at_idx\"]"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"op": "drop",
|
|
72
|
+
"key": "indexes\u0000[\"public\",\"junior_github_issues_closed_at_idx\"]"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"op": "drop",
|
|
76
|
+
"key": "indexes\u0000[\"public\",\"junior_github_issues_open_idx\"]"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"op": "drop",
|
|
80
|
+
"key": "pks\u0000[\"public\",\"junior_github_issues\",\"junior_github_issues_pkey\"]"
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
-- Junior's code index holds the lifecycle and the linked Conversations of
|
|
2
|
+
-- Junior pull requests, and 0021 drops their copies here. Copy a pull
|
|
3
|
+
-- request that the code index does not have, and a newer lifecycle or
|
|
4
|
+
-- Conversation link of one that it has. Only those rows change. Core
|
|
5
|
+
-- migrations run first and drop the url columns, so this writes no links.
|
|
6
|
+
INSERT INTO junior_code_repositories (
|
|
7
|
+
id,
|
|
8
|
+
name,
|
|
9
|
+
provider,
|
|
10
|
+
provider_id,
|
|
11
|
+
updated_at
|
|
12
|
+
)
|
|
13
|
+
SELECT DISTINCT ON (repository_id)
|
|
14
|
+
gen_random_uuid(),
|
|
15
|
+
repository_full_name,
|
|
16
|
+
'github',
|
|
17
|
+
repository_id,
|
|
18
|
+
updated_at
|
|
19
|
+
FROM junior_github_pull_requests
|
|
20
|
+
ORDER BY repository_id, updated_at DESC
|
|
21
|
+
ON CONFLICT (provider, provider_id) DO NOTHING;
|
|
22
|
+
--> statement-breakpoint
|
|
23
|
+
INSERT INTO junior_code_changes (
|
|
24
|
+
id,
|
|
25
|
+
closed_at,
|
|
26
|
+
conversation_ids,
|
|
27
|
+
merged_at,
|
|
28
|
+
number,
|
|
29
|
+
opened_at,
|
|
30
|
+
provider,
|
|
31
|
+
provider_id,
|
|
32
|
+
repository_id,
|
|
33
|
+
state,
|
|
34
|
+
updated_at
|
|
35
|
+
)
|
|
36
|
+
SELECT
|
|
37
|
+
gen_random_uuid(),
|
|
38
|
+
CASE WHEN github_change.state <> 'open' THEN github_change.finished_at END,
|
|
39
|
+
github_change.conversation_ids,
|
|
40
|
+
CASE WHEN github_change.state = 'merged' THEN github_change.finished_at END,
|
|
41
|
+
github_change.number,
|
|
42
|
+
github_change.opened_at,
|
|
43
|
+
'github',
|
|
44
|
+
github_change.pull_request_id,
|
|
45
|
+
repository.id,
|
|
46
|
+
CASE github_change.state
|
|
47
|
+
WHEN 'closed_unmerged' THEN 'closed'
|
|
48
|
+
ELSE github_change.state
|
|
49
|
+
END,
|
|
50
|
+
github_change.updated_at
|
|
51
|
+
FROM junior_github_pull_requests AS github_change
|
|
52
|
+
JOIN junior_code_repositories AS repository
|
|
53
|
+
ON repository.provider = 'github'
|
|
54
|
+
AND repository.provider_id = github_change.repository_id
|
|
55
|
+
ON CONFLICT (provider, provider_id) DO UPDATE SET
|
|
56
|
+
closed_at = CASE
|
|
57
|
+
WHEN junior_code_changes.updated_at < EXCLUDED.updated_at
|
|
58
|
+
THEN EXCLUDED.closed_at
|
|
59
|
+
ELSE junior_code_changes.closed_at
|
|
60
|
+
END,
|
|
61
|
+
conversation_ids = ARRAY(
|
|
62
|
+
SELECT DISTINCT value
|
|
63
|
+
FROM unnest(
|
|
64
|
+
junior_code_changes.conversation_ids || EXCLUDED.conversation_ids
|
|
65
|
+
) AS value
|
|
66
|
+
ORDER BY value
|
|
67
|
+
),
|
|
68
|
+
merged_at = CASE
|
|
69
|
+
WHEN junior_code_changes.updated_at < EXCLUDED.updated_at
|
|
70
|
+
THEN EXCLUDED.merged_at
|
|
71
|
+
ELSE junior_code_changes.merged_at
|
|
72
|
+
END,
|
|
73
|
+
state = CASE
|
|
74
|
+
WHEN junior_code_changes.updated_at < EXCLUDED.updated_at
|
|
75
|
+
THEN EXCLUDED.state
|
|
76
|
+
ELSE junior_code_changes.state
|
|
77
|
+
END,
|
|
78
|
+
updated_at = GREATEST(junior_code_changes.updated_at, EXCLUDED.updated_at)
|
|
79
|
+
WHERE junior_code_changes.updated_at < EXCLUDED.updated_at
|
|
80
|
+
OR NOT junior_code_changes.conversation_ids @> EXCLUDED.conversation_ids;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
DROP INDEX "junior_github_pull_requests_opened_at_idx";--> statement-breakpoint
|
|
2
|
+
DROP INDEX "junior_github_pull_requests_open_idx";--> statement-breakpoint
|
|
3
|
+
DROP INDEX "junior_github_pull_requests_unmerged_conversations_idx";--> statement-breakpoint
|
|
4
|
+
ALTER TABLE "junior_github_pull_requests" DROP COLUMN "repository_id";--> statement-breakpoint
|
|
5
|
+
ALTER TABLE "junior_github_pull_requests" DROP COLUMN "repository_full_name";--> statement-breakpoint
|
|
6
|
+
ALTER TABLE "junior_github_pull_requests" DROP COLUMN "number";--> statement-breakpoint
|
|
7
|
+
ALTER TABLE "junior_github_pull_requests" DROP COLUMN "state";--> statement-breakpoint
|
|
8
|
+
ALTER TABLE "junior_github_pull_requests" DROP COLUMN "conversation_ids";--> statement-breakpoint
|
|
9
|
+
ALTER TABLE "junior_github_pull_requests" DROP COLUMN "opened_at";--> statement-breakpoint
|
|
10
|
+
ALTER TABLE "junior_github_pull_requests" DROP COLUMN "finished_at";
|