Merge branch '10701-refactor-dispatch'
[arvados.git] / apps / workbench / app / models / work_unit.rb
index ce55bb3c176df2ef3ef32c36bda8898da9dabb0c..e10f8b7f5f005c7e6e2730cf040e16f4bb2efcce 100644 (file)
@@ -9,6 +9,10 @@ class WorkUnit
     # returns the arvados UUID of the underlying object
   end
 
+  def parent
+    # returns the parent uuid of this work unit
+  end
+
   def children
     # returns an array of child work units
   end
@@ -115,8 +119,8 @@ class WorkUnit
     # returns true if this work unit can be canceled
   end
 
-  def readable?
-    # is the proxied object readable by current user?
+  def confirm_cancellation
+    # returns true if this work unit wants to use a confirmation for cancellation
   end
 
   def uri
@@ -132,10 +136,6 @@ class WorkUnit
   end
 
   # view helper methods
-  def link_to_log
-    # display a link to log if present
-  end
-
   def walltime
     # return walltime for a running or completed work unit
   end
@@ -199,4 +199,8 @@ class WorkUnit
   def render_log
     # return partial and locals to be rendered
   end
+
+  def template_uuid
+    # return the uuid of this work unit's template, if one exists
+  end
 end