Add cycle start and end dates for performance_cycle
This commit is contained in:
@@ -6,6 +6,8 @@
|
|||||||
|
|
||||||
with distinct_cycles as (
|
with distinct_cycles as (
|
||||||
select
|
select
|
||||||
|
min(step_submission_date) as cycle_start_date,
|
||||||
|
max(step_submission_date) as cycle_end_date,
|
||||||
task_name,
|
task_name,
|
||||||
case
|
case
|
||||||
when count(case when task_status != 'Completed' then 1 end) = 0
|
when count(case when task_status != 'Completed' then 1 end) = 0
|
||||||
@@ -19,9 +21,9 @@ with distinct_cycles as (
|
|||||||
|
|
||||||
select
|
select
|
||||||
dense_rank() over (order by task_name)::bigint as id,
|
dense_rank() over (order by task_name)::bigint as id,
|
||||||
null::date as start_date,
|
cycle_start_date::date as start_date,
|
||||||
null::date as end_date,
|
cycle_end_date::date as end_date,
|
||||||
task_name as name,
|
task_name as name,
|
||||||
task_status as status,
|
'Closed' as status, -- overwritten logic for Sarens
|
||||||
task_name as type
|
task_name as type
|
||||||
from distinct_cycles
|
from distinct_cycles
|
||||||
|
|||||||
Reference in New Issue
Block a user