14860: Fixes bug by assigning the signed manifest text to the snapshot being saved. 1.3.1
authorLucas Di Pentima <ldipentima@veritasgenetics.com>
Tue, 19 Feb 2019 19:50:36 +0000 (16:50 -0300)
committerTom Clegg <tclegg@veritasgenetics.com>
Thu, 21 Feb 2019 17:11:01 +0000 (12:11 -0500)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima@veritasgenetics.com>

services/api/app/models/collection.rb

index 487043ee3549d8afe915f9abeeaeab2c8f252707..33c81131987f2eaf75b19655c0a5da54ac8eaa81 100644 (file)
@@ -262,6 +262,7 @@ class Collection < ArvadosModel
       sync_past_versions if syncable_updates.any?
       if snapshot
         snapshot.attributes = self.syncable_updates
+        snapshot.manifest_text = snapshot.signed_manifest_text
         snapshot.save
       end
     end