Repository: opencb/cellbase (language: python)

Issue:
TASK-4976 Fix error handling when an exception raises in the CellBase Rest server constructors
Fix error handling when an exception raises in the CellBase Rest server constructors


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/task.yml b/.github/workflows/task.yml
index 6dbd2a924..ac09089ac 100644
--- a/.github/workflows/task.yml
+++ b/.github/workflows/task.yml
@@ -11,7 +11,7 @@ jobs:
     uses: opencb/java-common-libs/.github/workflows/build-java-app-workflow.yml@develop
     with:
       maven_opts: -DCELLBASE.WAR.NAME=cellbase -P default-config-test
-
+      
   test:
     uses: ./.github/workflows/test-analysis.yml
     needs: build


Test patch:
diff --git a/cellbase-client/src/test/java/org/opencb/cellbase/client/rest/VariantClientTest.java b/cellbase-client/src/test/java/org/opencb/cellbase/client/rest/VariantClientTest.java
index 24c6486a0..082c056d4 100644
--- a/cellbase-client/src/test/java/org/opencb/cellbase/client/rest/VariantClientTest.java
+++ b/cellbase-client/src/test/java/org/opencb/cellbase/client/rest/VariantClientTest.java
@@ -17,6 +17,7 @@
 package org.opencb.cellbase.client.rest;
 
 import org.apache.avro.specific.SpecificRecordBase;
+import org.apache.commons.collections4.CollectionUtils;
 import org.junit.jupiter.api.Disabled;
 import org.junit.jupiter.api.TestInstance;
 import org.junit.jupiter.params.ParameterizedTest;
@@ -105,6 +106,10 @@ private void orderVariantAnnotation(VariantAnnotation va) {
                 c.getProteinVariantAnnotation().getFeatures().sort(Comparator.comparing(SpecificRecordBase::hashCode));
             }
         });
+
+        if (CollectionUtils.isNotEmpty(va.getFunctionalScore())) {
+            va.getFunctionalScore().sort(Comparator.comparing(SpecificRecordBase::hashCode));
+        }
     }
 
 //    @Test