X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/1e8f93a86465bce9bf6b32245ef99932c3cbfe08..545282711fe66e35cc486243e41b70cc82551e21:/apps/workbench/app/controllers/users_controller.rb diff --git a/apps/workbench/app/controllers/users_controller.rb b/apps/workbench/app/controllers/users_controller.rb index 89d336f5e9..f9a74e2c73 100644 --- a/apps/workbench/app/controllers/users_controller.rb +++ b/apps/workbench/app/controllers/users_controller.rb @@ -15,6 +15,8 @@ class UsersController < ApplicationController # @my_vm_perms = Link.where(tail_uuid: current_user.uuid, head_kind: 'arvados#virtual_machine', link_class: 'permission', name: 'can_login') # @my_repo_perms = Link.where(tail_uuid: current_user.uuid, head_kind: 'arvados#repository', link_class: 'permission', name: 'can_write') + @my_tag_links = {} + @my_jobs = Job. limit(10). order('created_at desc'). @@ -25,6 +27,11 @@ class UsersController < ApplicationController order('created_at desc'). where(created_by: current_user.uuid) + Link.limit(1000).where(head_uuid: @my_collections.collect(&:uuid), + link_class: 'tag').each do |link| + (@my_tag_links[link.head_uuid] ||= []) << link + end + @my_pipelines = PipelineInstance. limit(10). order('created_at desc').