Skip to content

Commit

Permalink
Add backend TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
fhennig committed Dec 18, 2024
1 parent 5103721 commit b4ec669
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ open class SubmissionController(
private val requestIdContext: RequestIdContext,
) {

/* TODO change to be made here - similar to restrictedUntil the parameter will conditionally be mandatory */
@Operation(description = SUBMIT_DESCRIPTION)
@ApiResponse(responseCode = "200", description = SUBMIT_RESPONSE_DESCRIPTION)
@PostMapping("/submit", consumes = ["multipart/form-data"])
Expand All @@ -96,6 +97,8 @@ open class SubmissionController(
" Format: YYYY-MM-DD",
) @RequestParam restrictedUntil: String?,
): List<SubmissionIdMapping> {
// in here, just default to open DataUseTerms and then don't worry anymore
// throw an error if the parameter is given
val params = SubmissionParams.OriginalSubmissionParams(
organism,
authenticatedUser,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ open class ReleasedDataModel(
("releasedAtTimestamp" to LongNode(rawProcessedData.releasedAtTimestamp.toTimestamp())),
("releasedDate" to TextNode(rawProcessedData.releasedAtTimestamp.toUtcDateString())),
("versionStatus" to TextNode(versionStatus.name)),
// TODO changes made here - don't include these fields
("dataUseTerms" to TextNode(currentDataUseTerms.type.name)),
("dataUseTermsRestrictedUntil" to restrictedDataUseTermsUntil),
("pipelineVersion" to LongNode(rawProcessedData.pipelineVersion)),
Expand Down

0 comments on commit b4ec669

Please sign in to comment.