This is an automated email from the ASF dual-hosted git repository.

skperez pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-sdap-nexus.git


The following commit(s) were added to refs/heads/master by this push:
     new cd58f7b  Fix for null count field in return for matchup_spark request 
(#171)
cd58f7b is described below

commit cd58f7b828b7d597d2aeb096f59c39c1a1f00622
Author: Riley Kuttruff <[email protected]>
AuthorDate: Wed Jul 6 16:59:22 2022 -0700

    Fix for null count field in return for matchup_spark request (#171)
    
    * Fix for null count field in return for matchup_spark request
    
    * Update CHANGELOG.md
    
    Co-authored-by: rileykk <[email protected]>
---
 CHANGELOG.md                                    | 3 ++-
 analysis/webservice/algorithms_spark/Matchup.py | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index fa91402..9b0642c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,4 +16,5 @@ and this project adheres to [Semantic 
Versioning](https://semver.org/spec/v2.0.0
 ### Removed
 ### Fixed
 - Fix failing test_matchup unit test
-### Security
+- Fixed null value for count in matchup response
+### Security
\ No newline at end of file
diff --git a/analysis/webservice/algorithms_spark/Matchup.py 
b/analysis/webservice/algorithms_spark/Matchup.py
index cf20c5f..5ce97a8 100644
--- a/analysis/webservice/algorithms_spark/Matchup.py
+++ b/analysis/webservice/algorithms_spark/Matchup.py
@@ -280,7 +280,7 @@ class Matchup(NexusCalcSparkHandler):
             result = DomsQueryResults(results=None, args=args, 
details=details, bounds=None, count=None,
                                       computeOptions=None, 
executionId=execution_id, status_code=202)
         else:
-            result = DomsQueryResults(results=matches, args=args, 
details=details, bounds=None, count=None,
+            result = DomsQueryResults(results=matches, args=args, 
details=details, bounds=None, count=len(matches),
                                       computeOptions=None, 
executionId=execution_id)
 
         return result

Reply via email to