1 class JobsController < ApplicationController
3 def generate_provenance(jobs)
4 return if params['tab_pane'] != "Provenance"
10 collections << j[:output]
11 collections.concat(ProvenanceHelper::find_collections(j[:script_parameters]))
12 nodes << {:uuid => j[:script_version]}
15 Collection.where(uuid: collections).each do |c|
19 @svg = ProvenanceHelper::create_provenance_graph nodes, "provenance_svg", {
21 :all_script_parameters => true,
22 :script_version_nodes => true}
28 @objects = Job.where(uuid: params[:uuid])
29 generate_provenance(@objects)
43 generate_provenance([@object])
56 %w(Status Log Details Provenance Advanced)