X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/22e066d43cb09beb21c4cd5b12a787b81a00f97e..8d6ffdf2fba938e7fbb5f128664d828d2669bcfe:/apps/workbench/app/models/work_unit.rb diff --git a/apps/workbench/app/models/work_unit.rb b/apps/workbench/app/models/work_unit.rb index 1c2d02fa96..dd4a706f9d 100644 --- a/apps/workbench/app/models/work_unit.rb +++ b/apps/workbench/app/models/work_unit.rb @@ -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 @@ -17,6 +21,10 @@ class WorkUnit # returns uuid of the user who modified this work unit most recently end + def owner_uuid + # returns uuid of the owner of this work unit + end + def created_at # returns created_at timestamp end @@ -37,6 +45,10 @@ class WorkUnit # returns a string representing state of the work unit end + def exit_code + # returns the work unit's execution exit code + end + def state_bootstrap_class # returns a class like "danger", "success", or "warning" that a view can use directly to make a display class end @@ -107,10 +119,6 @@ class WorkUnit # returns true if this work unit can be canceled end - def readable? - # is the proxied object readable by current user? - end - def uri # returns the uri for this work unit end @@ -124,10 +132,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 @@ -179,4 +183,20 @@ class WorkUnit def container_uuid # container_uuid of a container_request end + + def log_object_uuids + # object uuids for live log + end + + def live_log_lines(limit) + # fetch log entries from logs table for @proxied + end + + 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