Skip to content

Commit 59f9683

Browse files
committed
1 parent 4381a97 commit 59f9683

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

seer/seer.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@
8686
GroupingRequest = typing_extensions.TypedDict(
8787
"GroupingRequest",
8888
{
89-
"group_id": int,
89+
"hash": str,
90+
"group_id": typing.Union[int, None],
9091
"project_id": int,
9192
"stacktrace": str,
9293
"message": str,
@@ -102,6 +103,7 @@
102103
"GroupingResponse",
103104
{
104105
"parent_group_id": typing.Union[int, None],
106+
"parent_hash": str,
105107
"stacktrace_similarity": float,
106108
"message_similarity": float,
107109
"should_group": bool,

seer/seer_api.json

+18-3
Original file line numberDiff line numberDiff line change
@@ -386,9 +386,20 @@
386386
"GroupingRequest": {
387387
"properties": {
388388
"group_id": {
389-
"type": "integer",
389+
"anyOf": [
390+
{
391+
"type": "integer"
392+
},
393+
{
394+
"type": "null"
395+
}
396+
],
390397
"title": "Group Id"
391398
},
399+
"hash": {
400+
"type": "string",
401+
"title": "Hash"
402+
},
392403
"project_id": {
393404
"type": "integer",
394405
"title": "Project Id"
@@ -413,7 +424,7 @@
413424
}
414425
},
415426
"type": "object",
416-
"required": ["group_id", "project_id", "stacktrace", "message"],
427+
"required": ["hash", "project_id", "stacktrace", "message"],
417428
"title": "GroupingRequest"
418429
},
419430
"GroupingResponse": {
@@ -429,6 +440,10 @@
429440
],
430441
"title": "Parent Group Id"
431442
},
443+
"parent_hash": {
444+
"type": "string",
445+
"title": "Parent Hash"
446+
},
432447
"stacktrace_similarity": {
433448
"type": "number",
434449
"title": "Stacktrace Similarity"
@@ -444,7 +459,7 @@
444459
},
445460
"type": "object",
446461
"required": [
447-
"parent_group_id",
462+
"parent_hash",
448463
"stacktrace_similarity",
449464
"message_similarity",
450465
"should_group"

0 commit comments

Comments
 (0)