Aded joblines status view and updated graph to use the view. BOD-110

This commit is contained in:
Patrick Fic
2020-08-06 10:33:13 -07:00
parent bebdfe7a93
commit f383d78cda
35 changed files with 412 additions and 23 deletions

View File

@@ -0,0 +1 @@
[]

View File

@@ -0,0 +1,8 @@
- args:
cascade: true
read_only: false
sql: "CREATE OR REPLACE FUNCTION public.parts_status_by_job_id(jobidvar uuid)\n
RETURNS SETOF joblines\n LANGUAGE plpgsql\n STABLE\nAS $function$\n\nBEGIN\n
\ \n return query select status ,count(1), part_type from joblines j where
j.jobid =jobIdVar group by status, part_type;\n\n\n\tEND\n$function$;"
type: run_sql