Skip to content

Commit

Permalink
Allow quality analyst to be null
Browse files Browse the repository at this point in the history
  • Loading branch information
QuincyCantu committed Nov 13, 2024
1 parent b1add39 commit 9dda8b7
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,15 @@ private String getStringSensorType(Sensor sensor) {
}

private PassivePackerQualityDetails getQualityDetails(DataQuality<String> dataQuality) throws NotFoundException, DatastoreException {
String analyst = dataQuality.getQualityAnalyst();
if (analyst == null || analyst.isEmpty()) {
return PassivePackerQualityDetails.builder()
.description(dataQuality.getQualityAssessmentDescription())
.method(dataQuality.getQualityAnalysisMethod())
.objectives(dataQuality.getQualityAnalysisObjectives())
.qualityDetails(getQualityEntries(dataQuality.getQualityEntries()))
.build();
}
Person person = personRepository.getByUniqueField(dataQuality.getQualityAnalyst());
return PassivePackerQualityDetails.builder()
.analyst(dataQuality.getQualityAnalyst())
Expand Down

0 comments on commit 9dda8b7

Please sign in to comment.