From 98f50919e81aea0c58482571f72429df4da55828 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Mon, 26 Feb 2018 16:56:10 +0000 Subject: [PATCH] comment about file replacements --- .../Features/Project/ProjectEntityMongoUpdateHandler.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/services/web/app/coffee/Features/Project/ProjectEntityMongoUpdateHandler.coffee b/services/web/app/coffee/Features/Project/ProjectEntityMongoUpdateHandler.coffee index da4421e4ec..47a8d0c553 100644 --- a/services/web/app/coffee/Features/Project/ProjectEntityMongoUpdateHandler.coffee +++ b/services/web/app/coffee/Features/Project/ProjectEntityMongoUpdateHandler.coffee @@ -56,7 +56,10 @@ module.exports = ProjectEntityMongoUpdateHandler = self = conditions = _id:project._id inc = {} inc["#{path.mongo}.rev"] = 1 - # we need to increment the project version number for any structure change + # currently we do not need to increment the project version number for changes that are replacements + # but when we make switch to having immutable files the replace operation will add a new file, and + # this will require a version increase. We will start incrementing the project version now as it does + # no harm and will help to test it. inc['version'] = 1 set = {} set["#{path.mongo}.created"] = new Date()