[ARVADOS] updated: 1.3.0-951-g46f3bff06

Git user git at public.curoverse.com
Fri May 24 17:59:33 UTC 2019


Summary of changes:
 services/api/app/models/collection.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

       via  46f3bff06569f06ce84799635ad25727cfd095b5 (commit)
      from  be66896514a5dccf6364a414d44391a3015592c5 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 46f3bff06569f06ce84799635ad25727cfd095b5
Author: Lucas Di Pentima <ldipentima at veritasgenetics.com>
Date:   Fri May 24 14:58:59 2019 -0300

    15275: Don't create snapshots whenever is_trashed is true.
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima at veritasgenetics.com>

diff --git a/services/api/app/models/collection.rb b/services/api/app/models/collection.rb
index 8dca6fc9f..8ec4761df 100644
--- a/services/api/app/models/collection.rb
+++ b/services/api/app/models/collection.rb
@@ -338,7 +338,7 @@ class Collection < ArvadosModel
   def should_preserve_version?
     return false unless (Rails.configuration.Collections.CollectionVersioning && versionable_updates?(self.changes.keys))
 
-    return false if self.changes.keys.include?('is_trashed') && self.is_trashed_was == false
+    return false if self.is_trashed
 
     idle_threshold = Rails.configuration.Collections.PreserveVersionIfIdle
     if !self.preserve_version_was &&

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list