Skip to content

Commit 18505b9

Browse files
committed
Update transcripts
1 parent 64dc4b5 commit 18505b9

File tree

4 files changed

+38
-60
lines changed

4 files changed

+38
-60
lines changed

src/Share/Notifications/Types.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ instance PG.EncodeValue NotificationTopicGroup where
132132
instance PG.DecodeValue NotificationTopicGroup where
133133
decodeValue = HasqlDecoders.enum \case
134134
"watch_project" -> Just WatchProject
135+
"all_project_topics" -> Just AllProjectTopics
135136
_ -> Nothing
136137

137138
instance Aeson.ToJSON NotificationTopicGroup where

transcripts/share-apis/notifications/list-notifications-read-transcripts.json

Lines changed: 35 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,54 @@
1414
"kind": "user"
1515
},
1616
"data": {
17-
"kind": "project:branch:updated",
18-
"link": "http://<HOST>:1234/@test/publictestproject/code/newbranch/latest",
17+
"kind": "project:contribution:updated",
18+
"link": "http://<HOST>:1234/@test/publictestproject/contributions/1",
1919
"payload": {
20-
"branch": {
21-
"branchContributorHandle": null,
22-
"branchContributorUserId": null,
23-
"branchId": "B-<UUID>",
24-
"branchName": "newbranch",
25-
"branchShortHand": "newbranch",
26-
"projectBranchShortHand": "@test/publictestproject/newbranch"
20+
"contribution": {
21+
"author": {
22+
"avatarUrl": null,
23+
"handle": "test",
24+
"name": null,
25+
"userId": "U-<UUID>"
26+
},
27+
"contributionId": "C-<UUID>",
28+
"description": "This contribution addresses an issue where users were unable to log in due to a validation error in the authentication process.\n\n## Changes made:\n\n* Modified the validation logic for the Auth type to properly authenticate users.\n* Added unit tests to ensure the authentication process works as expected.\n\n## Testing:\n\nI tested this change locally on my development environment and confirmed that users can now log in without any issues. All unit tests are passing.",
29+
"number": 1,
30+
"sourceBranch": {
31+
"branchContributorHandle": null,
32+
"branchContributorUserId": null,
33+
"branchId": "B-<UUID>",
34+
"branchName": "main",
35+
"branchShortHand": "main",
36+
"projectBranchShortHand": "@test/publictestproject/main"
37+
},
38+
"status": "closed",
39+
"targetBranch": {
40+
"branchContributorHandle": "transcripts",
41+
"branchContributorUserId": "U-<UUID>",
42+
"branchId": "B-<UUID>",
43+
"branchName": "contribution",
44+
"branchShortHand": "@transcripts/contribution",
45+
"projectBranchShortHand": "@test/publictestproject/@transcripts/contribution"
46+
},
47+
"title": "Fix issue with user authentication"
2748
},
2849
"project": {
2950
"projectId": "P-<UUID>",
3051
"projectOwnerHandle": "test",
3152
"projectOwnerUserId": "U-<UUID>",
3253
"projectShortHand": "@test/publictestproject",
3354
"projectSlug": "publictestproject"
55+
},
56+
"status_update": {
57+
"newStatus": "closed",
58+
"oldStatus": "in_review"
3459
}
3560
}
3661
},
3762
"id": "EVENT-<UUID>",
3863
"occurredAt": "<TIMESTAMP>",
64+
"projectId": "P-<UUID>",
3965
"resourceId": "RES-<UUID>",
4066
"scope": {
4167
"info": {

transcripts/share-apis/notifications/list-notifications-transcripts.json

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,6 @@
11
{
22
"body": {
33
"items": [
4-
{
5-
"createdAt": "<TIMESTAMP>",
6-
"event": {
7-
"actor": {
8-
"info": {
9-
"avatarUrl": null,
10-
"handle": "test",
11-
"name": null,
12-
"userId": "U-<UUID>"
13-
},
14-
"kind": "user"
15-
},
16-
"data": {
17-
"kind": "project:branch:updated",
18-
"link": "http://<HOST>:1234/@test/publictestproject/code/newbranch/latest",
19-
"payload": {
20-
"branch": {
21-
"branchContributorHandle": null,
22-
"branchContributorUserId": null,
23-
"branchId": "B-<UUID>",
24-
"branchName": "newbranch",
25-
"branchShortHand": "newbranch",
26-
"projectBranchShortHand": "@test/publictestproject/newbranch"
27-
},
28-
"project": {
29-
"projectId": "P-<UUID>",
30-
"projectOwnerHandle": "test",
31-
"projectOwnerUserId": "U-<UUID>",
32-
"projectShortHand": "@test/publictestproject",
33-
"projectSlug": "publictestproject"
34-
}
35-
}
36-
},
37-
"id": "EVENT-<UUID>",
38-
"occurredAt": "<TIMESTAMP>",
39-
"resourceId": "RES-<UUID>",
40-
"scope": {
41-
"info": {
42-
"avatarUrl": null,
43-
"handle": "test",
44-
"name": null,
45-
"userId": "U-<UUID>"
46-
},
47-
"kind": "user"
48-
}
49-
},
50-
"id": "NOT-<UUID>",
51-
"status": "unread"
52-
},
534
{
545
"createdAt": "<TIMESTAMP>",
556
"event": {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Successful webhooks: 6
2-
Unsuccessful webhooks: 6
1+
Successful webhooks: 7
2+
Unsuccessful webhooks: 0
33

0 commit comments

Comments
 (0)