Skip to content

Commit

Permalink
Merge pull request #4288 from nationalarchives/TDRD-218-remove-uuid
Browse files Browse the repository at this point in the history
[TDRD 218] Remove UUID from download
  • Loading branch information
annielh authored Nov 13, 2024
2 parents e6bd3be + f2c4594 commit c814141
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 1 addition & 2 deletions app/controllers/DownloadMetadataController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ class DownloadMetadataController @Inject() (
descriptionClosed,
descriptionAlternate,
language,
filenameTranslated,
fileUUID
filenameTranslated
)

val nameMap = displayProperties.filter(dp => columnOrder.contains(dp.propertyName)).map(dp => (dp.propertyName, dp.displayName)).toMap
Expand Down
3 changes: 0 additions & 3 deletions test/controllers/DownloadMetadataControllerSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -140,17 +140,14 @@ class DownloadMetadataControllerSpec extends FrontEndTestHelper {
rows.head.getCell(2).asString must equal("Date last modified")
rows.head.getCell(3).asString must equal("Date of the record")
rows.head.getCell(4).asString must equal("Description")
rows.head.getCell(5).asString must equal("UUID")

rows(1).getCell(0).asString must equal("test/path1")
rows(1).getCell(1).asString must equal("FileName1")
rows(1).getCell(2).asDate.toLocalDate.toString must equal(lastModified.format(DateTimeFormatter.ISO_DATE))
rows(2).getCell(5).asString must equal(uuid2)

rows(2).getCell(0).asString must equal("test/path2")
rows(2).getCell(1).asString must equal("FileName2")
rows(2).getCell(2).asDate.toLocalDate.toString must equal(lastModified.format(DateTimeFormatter.ISO_DATE))
rows(2).getCell(5).asString must equal(uuid2)

}
})
Expand Down

0 comments on commit c814141

Please sign in to comment.