Skip to content

Commit

Permalink
610: add some comments on where I base the mapping from
Browse files Browse the repository at this point in the history
  • Loading branch information
halprin committed Jan 15, 2024
1 parent daec3ea commit 6fb41f5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@ PartnerMetadataStatus ourStatusFromReportStreamStatus(String rsStatus) {
return PartnerMetadataStatus.PENDING;
}

// based off of the Status enum in the SubmissionHistory.kt code in RS
// https://github.com/CDCgov/prime-reportstream/blob/master/prime-router/src/main/kotlin/history/SubmissionHistory.kt
return switch (rsStatus) {
case "Error", "Not Delivering" -> PartnerMetadataStatus.FAILED;
case "Delivered" -> PartnerMetadataStatus.DELIVERED;
Expand Down

0 comments on commit 6fb41f5

Please sign in to comment.