summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/create-sample-burndown.php4
-rwxr-xr-xscripts/create-sample-cfd.php4
-rwxr-xr-xscripts/create-sample-lead-time.php70
-rwxr-xr-xscripts/make-assets.sh6
4 files changed, 77 insertions, 7 deletions
diff --git a/scripts/create-sample-burndown.php b/scripts/create-sample-burndown.php
index ae0b2627..188ad7d9 100755
--- a/scripts/create-sample-burndown.php
+++ b/scripts/create-sample-burndown.php
@@ -3,11 +3,11 @@
require __DIR__.'/../app/common.php';
-use Model\ProjectDailySummary;
+use Model\ProjectDailyColumnStats;
use Model\TaskCreation;
use Model\TaskStatus;
-$pds = new ProjectDailySummary($container);
+$pds = new ProjectDailyColumnStats($container);
$taskCreation = new TaskCreation($container);
$taskStatus = new TaskStatus($container);
diff --git a/scripts/create-sample-cfd.php b/scripts/create-sample-cfd.php
index 73135f7a..e7ff1ec9 100755
--- a/scripts/create-sample-cfd.php
+++ b/scripts/create-sample-cfd.php
@@ -3,11 +3,11 @@
require __DIR__.'/../app/common.php';
-use Model\ProjectDailySummary;
+use Model\ProjectDailyColumnStats;
use Model\TaskCreation;
use Model\TaskPosition;
-$pds = new ProjectDailySummary($container);
+$pds = new ProjectDailyColumnStats($container);
$taskCreation = new TaskCreation($container);
$taskPosition = new TaskPosition($container);
diff --git a/scripts/create-sample-lead-time.php b/scripts/create-sample-lead-time.php
new file mode 100755
index 00000000..d4d82006
--- /dev/null
+++ b/scripts/create-sample-lead-time.php
@@ -0,0 +1,70 @@
+#!/usr/bin/env php
+<?php
+
+require __DIR__.'/../app/common.php';
+
+use Model\Project;
+use Model\ProjectDailyStats;
+
+$p = new Project($container);
+$pds = new ProjectDailyStats($container);
+
+$p->create(array('name' => 'Test Lead/Cycle time'));
+
+$container['db']->table('tasks')->insert(array(
+ 'title' => 'Lead time = 4d | Cycle time = 3d',
+ 'date_creation' => strtotime('-7 days'),
+ 'date_started' => strtotime('-6 days'),
+ 'date_completed' => strtotime('-3 days'),
+ 'is_active' => 0,
+ 'project_id' => 1,
+ 'column_id' => 1,
+));
+
+$container['db']->table('tasks')->insert(array(
+ 'title' => 'Lead time = 1d | Cycle time = 1d',
+ 'date_creation' => strtotime('-7 days'),
+ 'date_started' => strtotime('-7 days'),
+ 'date_completed' => strtotime('-6 days'),
+ 'is_active' => 0,
+ 'project_id' => 1,
+ 'column_id' => 1,
+));
+
+$pds->updateTotals(1, date('Y-m-d', strtotime('-6 days')));
+
+$container['db']->table('tasks')->insert(array(
+ 'title' => 'Lead time = 7d | Cycle time = 5d',
+ 'date_creation' => strtotime('-7 days'),
+ 'date_started' => strtotime('-5 days'),
+ 'date_completed' => strtotime('today'),
+ 'is_active' => 0,
+ 'project_id' => 1,
+ 'column_id' => 1,
+));
+
+$pds->updateTotals(1, date('Y-m-d', strtotime('-5 days')));
+
+$container['db']->table('tasks')->insert(array(
+ 'title' => 'Lead time = 1d | Cycle time = 0',
+ 'date_creation' => strtotime('-3 days'),
+ 'date_started' => 0,
+ 'date_completed' => 0,
+ 'is_active' => 0,
+ 'project_id' => 1,
+ 'column_id' => 1,
+));
+
+$pds->updateTotals(1, date('Y-m-d', strtotime('-4 days')));
+
+$container['db']->table('tasks')->insert(array(
+ 'title' => 'Lead time = 1d | Cycle time = 1d',
+ 'date_creation' => strtotime('-3 days'),
+ 'date_started' => strtotime('-3 days'),
+ 'date_completed' => 0,
+ 'is_active' => 0,
+ 'project_id' => 1,
+ 'column_id' => 1,
+));
+
+$pds->updateTotals(1, date('Y-m-d', strtotime('-3 days')));
diff --git a/scripts/make-assets.sh b/scripts/make-assets.sh
index e340a4b2..0041afaa 100755
--- a/scripts/make-assets.sh
+++ b/scripts/make-assets.sh
@@ -1,11 +1,11 @@
#!/bin/bash
print_css="print links table board task comment subtask markdown"
-app_css="base links title table form button alert tooltip header board task comment subtask markdown listing activity dashboard pagination popover confirm sidebar responsive dropdown"
-vendor_css="jquery-ui.min chosen.min fullcalendar.min font-awesome.min c3.min"
+app_css="base links title table form button alert tooltip header board task comment subtask markdown listing activity dashboard pagination popover confirm sidebar responsive dropdown screenshot filters"
+vendor_css="jquery-ui.min jquery-ui-timepicker-addon.min chosen.min fullcalendar.min font-awesome.min c3.min"
app_js="base board calendar analytic swimlane screenshot"
-vendor_js="jquery-1.11.1.min jquery-ui.min jquery.ui.touch-punch.min chosen.jquery.min dropit.min moment.min fullcalendar.min mousetrap.min mousetrap-global-bind.min app.min"
+vendor_js="jquery-1.11.1.min jquery-ui.min jquery-ui-timepicker-addon.min jquery.ui.touch-punch.min chosen.jquery.min dropit.min moment.min fullcalendar.min mousetrap.min mousetrap-global-bind.min app.min"
lang_js="da de es fi fr hu it ja nl pl pt-br ru sv sr th tr zh-cn"
function merge_css {