Skip to content

Commit 87c25e7

Browse files
authored
fix: add stackKey to CrashDetails (#119)
1 parent b6ad9a0 commit 87c25e7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

spec/fakes/crash/crash-api-response.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export const createFakeCrashApiResponse = () => ({
2626
platform: 'NES',
2727
previousCrashId: 998,
2828
processor: 'Pentium 4',
29+
stackKey: 'myConsoleCrasher(1337)',
2930
stackKeyComment: 'hello world!',
3031
stackKeyId: 117,
3132
stackKeyDefectLabel: 'idk',

src/crash/crash-details/crash-details.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export interface CrashDetails {
4646
platform: string;
4747
previousCrashId: number;
4848
processor: string;
49+
stackKey: string;
4950
stackKeyComment: string;
5051
stackKeyId: number;
5152
stackKeyDefectId: number;
@@ -79,6 +80,7 @@ export function createCrashDetails(options: CrashDetailsRawResponse): CrashDetai
7980
const ipAddress = defaultToEmptyString(options.ipAddress, 'options.ipAddress');
8081
const platform = defaultToEmptyString(options.platform, 'options.platform');
8182
const processor = defaultToEmptyString(options.processor, 'options.processor');
83+
const stackKey = defaultToEmptyString(options.stackKey, 'options.stackKey');
8284
const stackKeyComment = defaultToEmptyString(options.stackKeyComment,'options.stackKeyComment');
8385
const stackKeyDefectLabel = defaultToEmptyString(options.stackKeyDefectLabel, 'options.stackKeyDefectLabel');
8486
const stackKeyDefectUrl = defaultToEmptyString(options.stackKeyDefectUrl, 'options.stackKeyDefectUrl');
@@ -114,6 +116,7 @@ export function createCrashDetails(options: CrashDetailsRawResponse): CrashDetai
114116
ipAddress,
115117
platform,
116118
processor,
119+
stackKey,
117120
stackKeyComment,
118121
stackKeyDefectLabel,
119122
stackKeyDefectUrl,

0 commit comments

Comments
 (0)