From 56063274aa147cd26cbc50f123c945b30bf5d82e Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 25 Sep 2017 18:46:56 +0300 Subject: [PATCH] minor cleanup... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/collections.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ui (gen4)/features/collections.js b/ui (gen4)/features/collections.js index 443f6eaf..9fd9a33d 100755 --- a/ui (gen4)/features/collections.js +++ b/ui (gen4)/features/collections.js @@ -1373,8 +1373,6 @@ module.CollectionTags = core.ImageGridFeatures.Feature({ }], - // XXX should we be a bit more atomic and save tags iff - // they were changed only??? ['prepareIndexForWrite', function(res, _, full){ var raw = res.raw.collections || {} @@ -1383,8 +1381,7 @@ module.CollectionTags = core.ImageGridFeatures.Feature({ // for changes as this is already taken care off by // the main collections feature, here we just update // the stuff it created... - // XXX should we be a bit more atomic and save tags iff - // they were changed only??? + // XXX should we iterate over index or raw here??? Object.keys(raw).forEach(function(title){ var path = 'collections/'+ raw[title].gid var metadata = res.index[path + '/metadata']