Skip to content

Commit 3e6be75

Browse files
authored
change analysis description to be nullable (#452)
* change analysis description to be nullable * change property order and fix nit
1 parent e9ab9c6 commit 3e6be75

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

frontend/src/components/Analysis/utils.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ export function parseFineGrainedResults(
211211
);
212212

213213
const analysisName = myResult.name;
214-
const analysisDescription = myAnalysis?.description;
214+
const analysisDescription = myAnalysis?.description || analysisName;
215215
const bucketType = myAnalysis ? myAnalysis["method"] : "";
216216

217217
if (myResult.cls_name === "BucketAnalysisResult") {

openapi/openapi.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ openapi: "3.0.0"
22
info:
33
title: "ExplainaBoard"
44
description: "Backend APIs for ExplainaBoard"
5-
version: "0.2.8"
5+
version: "0.2.9"
66
contact:
77
88
license:
@@ -610,10 +610,11 @@ components:
610610
description: The specification of an analysis to return
611611
type: object
612612
properties:
613-
description:
614-
type: string
615613
cls_name:
616614
type: string
615+
description:
616+
type: string
617+
nullable: true
617618
additionalProperties: true
618619
required: [cls_name]
619620

0 commit comments

Comments
 (0)