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

TDRD 88: Add file name path parameter to call to draft metadata checks step function #3899

Merged
merged 13 commits into from
May 13, 2024

Conversation

annielh
Copy link
Contributor

@annielh annielh commented May 10, 2024

No description provided.

@annielh annielh changed the title TDRD 88: Add file name query parameter to call to draft metadata checks step function TDRD 88: Add file name path parameter to call to draft metadata checks step function May 10, 2024
Copy link
Contributor

@vimleshtna vimleshtna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Just a minor comment. Thanks

@@ -49,15 +49,16 @@ class DraftMetadataUploadController @Inject() (
val successPage = routes.DraftMetadataChecksController.draftMetadataChecksPage(consignmentId)
val token = request.asInstanceOf[Request[AnyContent]].token
val uploadBucket = s"${applicationConfig.draft_metadata_s3_bucket_name}"
val uploadKey = s"$consignmentId/draft-metadata.csv"
val uploadFileName = "draft-metadata.csv"
val uploadKey = s"$consignmentId/$uploadFileName"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is best to add a property in application.base.conf file and use it here.

draftMetadata {
    fileName = "draft-metadata.csv"
}

Copy link
Contributor

@vimleshtna vimleshtna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks

@annielh annielh merged commit 5f39026 into master May 13, 2024
4 checks passed
@annielh annielh deleted the TDRD-88-add-file-name-query-parameter branch May 13, 2024 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants