projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
9767: include workflows in the template chooser.
[arvados.git]
/
apps
/
workbench
/
app
/
controllers
/
jobs_controller.rb
diff --git
a/apps/workbench/app/controllers/jobs_controller.rb
b/apps/workbench/app/controllers/jobs_controller.rb
index 1ae8e50a1db484e472958fa6c9d448c316f99309..f18a79d646c4a0a1dc774e52f0c2d4da1c8f9346 100644
(file)
--- a/
apps/workbench/app/controllers/jobs_controller.rb
+++ b/
apps/workbench/app/controllers/jobs_controller.rb
@@
-1,4
+1,8
@@
class JobsController < ApplicationController
class JobsController < ApplicationController
+ skip_around_filter :require_thread_api_token, if: proc { |ctrl|
+ Rails.configuration.anonymous_user_token and
+ 'show' == ctrl.action_name
+ }
def generate_provenance(jobs)
return if params['tab_pane'] != "Provenance"
def generate_provenance(jobs)
return if params['tab_pane'] != "Provenance"
@@
-56,7
+60,13
@@
class JobsController < ApplicationController
super
end
super
end
- def push_logs
+ def logs
+ @logs = @object.
+ stderr_log_query(Rails.configuration.running_job_log_records_to_fetch).
+ map { |e| e.serializable_hash.merge({ 'prepend' => true }) }
+ respond_to do |format|
+ format.json { render json: @logs }
+ end
end
def index_pane_list
end
def index_pane_list