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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## Unreleased

### Fixed
- Fix to remove dataset from a space [#349](https://github.com/clowder-framework/clowder/issues/349)
(The count might be off to existing spaces, please run fixCounts script)

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

Expand Down
1 change: 0 additions & 1 deletion app/services/mongodb/MongoDBSpaceService.scala
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,6 @@ class MongoDBSpaceService @Inject() (
datasets.get(dataset) match {
case Some(x) => {
val datasetBytes = datasets.getBytesForDataset(dataset)
datasets.addToSpace(dataset, space)
ProjectSpaceDAO.update(MongoDBObject("_id" -> new ObjectId(space.stringify)), $inc("spaceBytes" -> -1 * datasetBytes), upsert=false, multi=false, WriteConcern.Safe)
ProjectSpaceDAO.update(MongoDBObject("_id" -> new ObjectId(space.stringify)), $inc("fileCount" -> -1 * x.files.length), upsert=false, multi=false, WriteConcern.Safe)
ProjectSpaceDAO.update(MongoDBObject("_id" -> new ObjectId(space.stringify)), $inc("datasetCount" -> -1), upsert=false, multi=false, WriteConcern.Safe)
Expand Down