Completion status missing in email for /2/cleanup/orphans
While the /2/status/request
returns:
{
"sourceDataspace": null,
"destinationDataspace": "staging:SIS-CC-reset",
"requestId": 4,
"userEmail": "jensXXXXX",
"artefact": "*",
"sourceData": null,
"submissionTime": "2022-03-23T18:17:22.383",
"executionStart": "2022-03-23T18:55:06.63",
"executionEnd": "2022-03-23T18:55:07.19",
"executionStatus": "Completed",
"outcome": "Success",
"logs": [
{
"transactionId": 4,
"userEmail": null,
"date": "2022-03-23T18:17:22.383",
"level": "NOTICE",
"server": "transfer-65b4bf8cc4-d7tqt",
"logger": "DotStatServices.Transfer.Controllers.CleanUpController.CleanUpOrphanDsdsV2",
"message": "The request with ID 4 was successfully registered.",
"exception": ""
},
{
"transactionId": 4,
"userEmail": null,
"date": "2022-03-23T18:55:07.187",
"level": "NOTICE",
"server": "transfer-65b4bf8cc4-d7tqt",
"logger": "DotStat.Transfer.Manager.CommonManager.CleanUpAllDsds",
"message": "No orphan entries found in data database. Cleanup not necessary",
"exception": ""
}
]
}
the email contains the following incomplete message:
Object: Submitted: .Stat data request for 'n/a' in 'staging:SIS-CC-reset' (ID 4)
From: transfer_demo@siscc.org
Date: 19:55 (il y a 1 heure)
Your data management request has been processed, please see below the details:
Summary
Request ID: 4
Source data space: staging:SIS-CC-reset
Data source: n/a
Destination data space: staging:SIS-CC-reset
Dataflow: n/a
User: jensXXXX
Completion status:
Log messages
Date Level Message
03/23/2022 18:17:22 NOTICE The request with ID 4 was successfully registered.
03/23/2022 18:55:07 NOTICE No orphan entries found in data database. Cleanup not necessary
-
Instead of "Submitted: ", it should contain "Successfully completed: " -
Instead of "Completion status:", it should contain "Completion status: Completed"
Edited by Jens Dossé