X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e4c30dbf271df0633efce61c630a29c89bc43bff..695702b379a7be5abd96742ffee7f4f4bfcef2a8:/apps/workbench/app/models/proxy_work_unit.rb diff --git a/apps/workbench/app/models/proxy_work_unit.rb b/apps/workbench/app/models/proxy_work_unit.rb index 91673371fe..feab5d8eb4 100644 --- a/apps/workbench/app/models/proxy_work_unit.rb +++ b/apps/workbench/app/models/proxy_work_unit.rb @@ -23,6 +23,10 @@ class ProxyWorkUnit < WorkUnit get(:modified_by_user_uuid) end + def owner_uuid + get(:owner_uuid) + end + def created_at t = get(:created_at) t = Time.parse(t) if (t.is_a? String) @@ -51,6 +55,8 @@ class ProxyWorkUnit < WorkUnit state = get(:state) if ["Running", "RunningOnServer", "RunningOnClient"].include? state "Running" + elsif state == 'New' + "Not started" else state end @@ -322,9 +328,8 @@ class ProxyWorkUnit < WorkUnit resp end - def uri - uuid = get(:uuid) - "/#{@proxied.class.table_name}/#{uuid}" + def log_object_uuids + [uuid] end protected