Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DASB-600 - Report sink fixes and updates #158

Merged
merged 11 commits into from
Aug 8, 2024
2 changes: 0 additions & 2 deletions processing-status-api-function-app/test/scripts/.env

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ data class Report(
@GraphQLDescription("Data stream route")
var dataStreamRoute: String? = null,

@GraphQLDescription("Date/time of when the upload was first ingested into the data-exchange")
var dexIngestDateTime: OffsetDateTime? = null,

@GraphQLDescription("Message metadata")
var messageMetadata: MessageMetadata? = null,

Expand Down Expand Up @@ -68,6 +71,6 @@ data class Report(
@GraphQLDescription("Content of the report. If the report is JSON then the content will be shown as JSON. Otherwise, the content is a base64 encoded string.")
var content : Map<*, *>? = null,

@GraphQLDescription("Datestamp the report was recorded in the database")
@GraphQLDescription("Date/time of when the report was recorded in the database")
var timestamp: OffsetDateTime? = null
)
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ data class ReportDeadLetter(
@GraphQLDescription("Data stream route")
var dataStreamRoute: String? = null,

@GraphQLDescription("Date/time of when the upload was first ingested into the data-exchange")
var dexIngestDateTime: OffsetDateTime? = null,

@GraphQLDescription("Stage name this report is associated with")
var stageName: String? = null,

Expand All @@ -56,7 +59,7 @@ data class ReportDeadLetter(
@GraphQLDescription("Content of the report. If the report is JSON then the content will be shown as JSON. Otherwise, the content is a base64 encoded string.")
var content : Map<*, *>? = null,

@GraphQLDescription("Datestamp the report was recorded in the database")
@GraphQLDescription("Date/time of when the report was recorded in the database")
var timestamp: OffsetDateTime? = null,

@GraphQLDescription("Disposition type of the report")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import java.util.*
* @property reportId String?
* @property dataStreamId String?
* @property dataStreamRoute String?
* @property dexIngestDateTime Date?
* @property messageMetadata MessageMetadata?
* @property stageInfo StageInfo?
* @property tags Map<String,String??
Expand All @@ -40,13 +41,15 @@ open class ReportDao(

var dataStreamRoute: String? = null,

var messageMetadata: MessageMetadata? = null,
var dexIngestDateTime: Date? = null,

var stageInfo: StageInfo? = null,
var messageMetadata: MessageMetadata? = null,

var tags: Map<String,String>? = null,
var stageInfo: StageInfo? = null,

var data: Map<String,String>? = null,
var tags: Map<String, String>? = null,

var data: Map<String, String>? = null,

var contentType : String? = null,

Expand Down Expand Up @@ -85,13 +88,14 @@ open class ReportDao(
this.reportId = [email protected]
this.dataStreamId = [email protected]
this.dataStreamRoute = [email protected]
this.messageMetadata= [email protected]
this.stageInfo= [email protected]
this.tags= [email protected]
this.data= [email protected]
this.dexIngestDateTime = [email protected]?.toInstant()?.atOffset(ZoneOffset.UTC)
this.messageMetadata = [email protected]
this.stageInfo = [email protected]
this.tags = [email protected]
this.data = [email protected]
this.messageId = [email protected]
this.jurisdiction= [email protected]
this.senderId= [email protected]
this.jurisdiction = [email protected]
this.senderId = [email protected]
this.timestamp = [email protected]?.toInstant()?.atOffset(ZoneOffset.UTC)
this.contentType = [email protected]
this.content = [email protected] as? Map<*, *>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package gov.cdc.ocio.processingstatusapi.models.dao

import gov.cdc.ocio.processingstatusapi.models.ReportDeadLetter
import java.time.ZoneOffset
import java.util.*


/**
Expand All @@ -25,6 +26,7 @@ data class ReportDeadLetterDao(
this.reportId = [email protected]
this.dataStreamId = [email protected]
this.dataStreamRoute = [email protected]
this.dexIngestDateTime = [email protected]?.toInstant()?.atOffset(ZoneOffset.UTC)
// this.messageId = [email protected]
// this.status = [email protected]
this.timestamp = [email protected]?.toInstant()?.atOffset(ZoneOffset.UTC)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ data class SubmissionDetails(
@GraphQLDescription("Upload Id of the report")
var uploadId: String? = null,

@GraphQLDescription("Datestamp the report was recorded in the database")
@GraphQLDescription("Date/time of when the report was recorded in the database")
var dexIngestDateTime: OffsetDateTime? = null,

@GraphQLDescription("DataStreamId in the report")
Expand Down
Loading
Loading