myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [3115] branches/events/Rakefile: workaround in ac


From: noreply
Subject: [myexperiment-hackers] [3115] branches/events/Rakefile: workaround in activity init for bug in early myexp with duplicate versions
Date: Sat, 25 Aug 2012 16:09:10 +0000 (UTC)

Revision
3115
Author
dgc
Date
2012-08-25 16:09:10 +0000 (Sat, 25 Aug 2012)

Log Message

workaround in activity init for bug in early myexp with duplicate versions

Modified Paths

Diff

Modified: branches/events/Rakefile (3114 => 3115)


--- branches/events/Rakefile	2012-08-25 15:30:38 UTC (rev 3114)
+++ branches/events/Rakefile	2012-08-25 16:09:10 UTC (rev 3115)
@@ -215,7 +215,11 @@
         :created_at => object.created_at)
   end
   
-  activities += (WorkflowVersion.find(:all, :conditions => "version > 1")).map do |object|
+  workflow_versions = (WorkflowVersion.find(:all, :conditions => "version > 1")).select do |object|
+    !(object.version == 2 && object.content_blob.data == object.workflow.versions.first.content_blob.data)
+  end
+  
+  activities += workflow_versions.map do |object|
     Activity.new(
         :subject => object.contributor,
         :action ="" 'create',

reply via email to

[Prev in Thread] Current Thread [Next in Thread]