Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## Unreleased

### Changed
- MongoDB Service log error:'Not all dataset IDs found for Dataset|Folder bulk get request', now incl all the IDs notFound

### Added
- MRI previewer for NIFTY (.nii) files.

Expand Down
6 changes: 4 additions & 2 deletions app/services/mongodb/MongoDBDatasetService.scala
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,10 @@ class MongoDBDatasetService @Inject() (
val found = Dataset.find(query).toList
val notFound = ids.diff(found.map(_.id))

if (notFound.length > 0)
Logger.error("Not all dataset IDs found for bulk get request")
if (notFound.length > 0) {
Logger.error("Not all dataset IDs found for [Dataset] bulk get request")
Logger.error("notfound=" + notFound.toString)
}
return DBResult(found, notFound)
}

Expand Down
8 changes: 5 additions & 3 deletions app/services/mongodb/MongoDBFolderService.scala
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ class MongoDBFolderService @Inject() (files: FileService, datasets: DatasetServi
val found = FolderDAO.find(query).toList
val notFound = ids.diff(found.map(ds => ds.id))

if (notFound.length > 0)
Logger.error("Not all dataset IDs found for bulk get request")
if (notFound.length > 0) {
Logger.error("Not all dataset IDs found for [Folder] bulk get request")
Logger.error("notfound=" + notFound.toString)
}
return DBResult(found, notFound)
}

Expand Down Expand Up @@ -181,4 +183,4 @@ object FolderDAO extends ModelCompanion[Folder, ObjectId] {
case None =>throw new RuntimeException("No MongoSalatPlugin");
case Some(x) => new SalatDAO[Folder, ObjectId](collection = x.collection("folders")){}
}
}
}