1 class JobsController < ApplicationController
3 def generate_provenance(jobs)
8 collections << j[:output]
9 collections.concat(ProvenanceHelper::find_collections(j[:script_parameters]))
10 nodes << {:uuid => j[:script_version]}
13 Collection.where(uuid: collections).each do |c|
17 @svg = ProvenanceHelper::create_provenance_graph nodes, "provenance_svg", {:all_script_parameters => true, :script_version_nodes => true}
23 @jobs = Job.where(uuid: params[:uuid])
24 generate_provenance(@jobs)
31 generate_provenance([@object])
43 %w(attributes provenance metadata json api)