projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Respect running_job_log_records_to_fetch in JobsController#logs.
[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 536518277f1ca86da6256af0887a5be9ee7bc560..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,6
+60,15
@@
class JobsController < ApplicationController
super
end
super
end
+ 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
if params[:uuid]
%w(Recent Provenance)
def index_pane_list
if params[:uuid]
%w(Recent Provenance)