Commit 603d195f authored by Mhurd's avatar Mhurd
Browse files

Fix case sensitivity issue

parent 41ad8305
...@@ -346,7 +346,7 @@ plugins: ...@@ -346,7 +346,7 @@ plugins:
task-days-in-project: task-days-in-project:
title: Days in project title: Days in project
db: metrics db: metrics
query: select ('T' || :task_id || ' has spent ' || printf('%.1f', (sum(duration) / 86400.0)) || ' days on ' || :project_name) as days_in_project from task_metrics join project on metric = phid where state = 'tagged' and name = :project_name and task = CAST(:task_id as decimal); query: select ('T' || :task_id || ' has spent ' || printf('%.1f', (sum(duration) / 86400.0)) || ' days on ' || :project_name) as days_in_project from task_metrics join project on metric = phid where state = 'tagged' and lower(name) = lower(:project_name) and task = CAST(:task_id as decimal);
library: metric library: metric
display: display:
field: days_in_project field: days_in_project
...@@ -355,7 +355,7 @@ plugins: ...@@ -355,7 +355,7 @@ plugins:
task-days-in-columns: task-days-in-columns:
title: Days in columns title: Days in columns
db: metrics db: metrics
query: select *, next_ts - ts as duration, printf('%.1f', ((next_ts - ts) / 86400.0)) AS duration_days from (select events.*, columns.column_name, columns.project_name, columns.is_default, ifnull(LEAD(ts) OVER(ORDER BY ts), strftime('%s','now', 'localtime')) next_ts from events join columns on new = column_phid where new like '%PHID-PCOL-%' and task = :task_id and event = 'columns' and project_name = :project_name order by ts); query: select *, next_ts - ts as duration, printf('%.1f', ((next_ts - ts) / 86400.0)) AS duration_days from (select events.*, columns.column_name, columns.project_name, columns.is_default, ifnull(LEAD(ts) OVER(ORDER BY ts), strftime('%s','now', 'localtime')) next_ts from events join columns on new = column_phid where new like '%PHID-PCOL-%' and task = :task_id and event = 'columns' and lower(project_name) = lower(:project_name) order by ts);
library: vega library: vega
display: display:
mark: { type: bar, tooltip: true } mark: { type: bar, tooltip: true }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment