Repository: comic/grand-challenge.org

Issue:
Display of Prostate Cancer Risk Score borked in Job list view
Displaying `ig` and `o` rather than `High` or `Low`.


Discussion:

Resolving patch:
diff --git a/app/grandchallenge/algorithms/views.py b/app/grandchallenge/algorithms/views.py
--- a/app/grandchallenge/algorithms/views.py
+++ b/app/grandchallenge/algorithms/views.py
@@ -674,12 +674,16 @@ def outputs_list_display(self):
                 InterfaceKind.InterfaceKindChoices.THUMBNAIL_JPG,
             }:
                 grouped_interfaces["TIMG"].append(interface)
-            elif interface.kind in {
-                InterfaceKind.InterfaceKindChoices.STRING,
-                InterfaceKind.InterfaceKindChoices.INTEGER,
-                InterfaceKind.InterfaceKindChoices.FLOAT,
-                InterfaceKind.InterfaceKindChoices.BOOL,
-            }:
+            elif (
+                interface.kind
+                in {
+                    InterfaceKind.InterfaceKindChoices.STRING,
+                    InterfaceKind.InterfaceKindChoices.INTEGER,
+                    InterfaceKind.InterfaceKindChoices.FLOAT,
+                    InterfaceKind.InterfaceKindChoices.BOOL,
+                }
+                and interface.store_in_database
+            ):
                 grouped_interfaces["JSON"].append(interface)
 
         return grouped_interfaces
@@ -733,12 +737,16 @@ def get_context_data(self, **kwargs):
                 InterfaceKind.InterfaceKindChoices.THUMBNAIL_JPG,
             ]:
                 thumbnails.append(output)
-            elif output.interface.kind in [
-                InterfaceKind.InterfaceKindChoices.BOOL,
-                InterfaceKind.InterfaceKindChoices.FLOAT,
-                InterfaceKind.InterfaceKindChoices.INTEGER,
-                InterfaceKind.InterfaceKindChoices.STRING,
-            ]:
+            elif (
+                output.interface.kind
+                in [
+                    InterfaceKind.InterfaceKindChoices.BOOL,
+                    InterfaceKind.InterfaceKindChoices.FLOAT,
+                    InterfaceKind.InterfaceKindChoices.INTEGER,
+                    InterfaceKind.InterfaceKindChoices.STRING,
+                ]
+                and output.interface.store_in_database
+            ):
                 json.append(output)
 
         context.update(
diff --git a/app/grandchallenge/evaluation/views/__init__.py b/app/grandchallenge/evaluation/views/__init__.py
--- a/app/grandchallenge/evaluation/views/__init__.py
+++ b/app/grandchallenge/evaluation/views/__init__.py
@@ -580,12 +580,16 @@ def get_context_data(self, **kwargs):
                 InterfaceKind.InterfaceKindChoices.THUMBNAIL_JPG,
             ]:
                 thumbnails.append(output)
-            elif output.interface.kind in [
-                InterfaceKind.InterfaceKindChoices.BOOL,
-                InterfaceKind.InterfaceKindChoices.FLOAT,
-                InterfaceKind.InterfaceKindChoices.INTEGER,
-                InterfaceKind.InterfaceKindChoices.STRING,
-            ]:
+            elif (
+                output.interface.kind
+                in [
+                    InterfaceKind.InterfaceKindChoices.BOOL,
+                    InterfaceKind.InterfaceKindChoices.FLOAT,
+                    InterfaceKind.InterfaceKindChoices.INTEGER,
+                    InterfaceKind.InterfaceKindChoices.STRING,
+                ]
+                and output.interface.store_in_database
+            ):
                 json.append(output)
 
         incomplete_jobs = filter_by_permission(


Test patch: