Skip to content

Commit 56cb4c1

Browse files
committed
cosmetic
update demoTeam
1 parent bf7f32a commit 56cb4c1

File tree

3 files changed

+42
-11
lines changed

3 files changed

+42
-11
lines changed

Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ PROJECT_NAME = CodevTT
3131
# This could be handy for archiving the generated documentation or
3232
# if some version control system is used.
3333

34-
PROJECT_NUMBER = 1.1.0
34+
PROJECT_NUMBER = 1.2.0
3535

3636
# Using the PROJECT_BRIEF tag one can provide an optional one line description
3737
# for a project that appears at the top of each page and should give viewer

tools/create_fake_db.php

Lines changed: 40 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,36 @@
99
along with CodevTT. If not, see <http://www.gnu.org/licenses/>.
1010
*/
1111

12+
/* ==================================================
13+
* ==== ACTIONS A EFFECTUER APRES EXECUTION =====
14+
*
15+
* - supprimer les droits d'administration mantis du user 'manager' (qui est temporairement admin, le compte administrator ayant ete desactive)
16+
* => il n'y aura plus aucun admin mantis, il faut reactiver administrator avec phpmyadmin...
17+
*
18+
* - cloturer les commandes qui ne sont pas interessantes pour la demo (n'en laisser que 2 ou 3)
19+
* - postionner le filtre des commandes pour user1 et manager pour ne pas afficher les commandes cloturees
20+
* - verifier les plugins affichés dans chaque dashboard
21+
* - supprimer user1 de la team 23
22+
* - desactiver les doodles ?
23+
*
24+
*/
25+
26+
27+
1228
$logger = Logger::getLogger("create_fake_db");
1329

1430
# Make sure this script doesn't run via the webserver
1531
if( php_sapi_name() != 'cli' ) {
1632
echo "create_fake_db.php is not allowed to run through the webserver.\n ";
17-
$logger->error("send_timesheet_emails.php is not allowed to run through the webserver.");
33+
$logger->error("create_fake_db.php is not allowed to run through the webserver.");
1834
exit( 1 );
1935
}
2036

37+
$stprojId=73; // 73 =TachesAnnexes RSI_TMA_Sante // 24;
38+
$mgrId=2; // 37;
39+
$usrId=134; // 44
40+
$lbayleId=2;
41+
$demoTeamId=20; //11; // RSI_TMA_Sante
2142

2243

2344

@@ -64,7 +85,7 @@ function create_fake_db($formattedFieldList) {
6485
updateProjects();
6586

6687

67-
echo "- Clean issues...<br>"; flush();
88+
echo "- Clean issues...\n"; flush();
6889
$j = 0;
6990

7091
// all prj except SideTasksProjects (and externalTasksPrj)
@@ -113,7 +134,7 @@ function create_fake_db($formattedFieldList) {
113134
} // proj
114135

115136
// commands
116-
echo "- Clean commands...<br>"; flush();
137+
echo "- Clean commands...\n"; flush();
117138
execQuery("UPDATE codev_command_table SET `reporter` = 'Joe the customer'");
118139
execQuery("UPDATE codev_command_table SET `description` = 'fake description...'");
119140

@@ -159,11 +180,16 @@ function create_fake_db($formattedFieldList) {
159180

160181

161182
function updateUsers() {
162-
echo "- Clean users...<br>"; flush();
183+
echo "- Clean users...\n"; flush();
163184

185+
global $usrId;
186+
global $mgrId;
187+
global $lbayleId;
188+
/*
164189
$mgrId=37;
165190
$usrId=41; // 44
166191
$lbayleId=2;
192+
*/
167193
$query = "SELECT id from `mantis_user_table` WHERE id NOT IN (1, $lbayleId, $mgrId, $usrId)"; // administrator, manager, lbayle, user1
168194
$result1 = execQuery($query);
169195
$i = 0;
@@ -206,12 +232,18 @@ function updateUsers() {
206232

207233
function updateTeams() {
208234

209-
echo "- Clean teams...<br>"; flush();
210-
235+
echo "- Clean teams...\n"; flush();
236+
237+
global $mgrId;
238+
global $lbayleId;
239+
global $demoTeamId;
240+
global $stprojId;
241+
/*
211242
$mgrId=37;
212243
$lbayleId=2;
213244
$demoTeamId=11;
214245
$stprojId=24;
246+
*/
215247

216248
execQuery("UPDATE `codev_team_table` SET `leader_id` = '$lbayleId' ");
217249

@@ -239,7 +271,7 @@ function updateTeams() {
239271

240272
function updateProjects() {
241273

242-
echo "- Clean projects...<br>"; flush();
274+
echo "- Clean projects...\n"; flush();
243275

244276
$stprojId=24;
245277
$extprojId= Config::getInstance()->getValue(Config::id_externalTasksProject); // 3
@@ -291,5 +323,5 @@ function i18n() {
291323

292324
create_fake_db($formattedFieldList);
293325

294-
echo "Done.<br>";
326+
echo "Done.\n";
295327

tpl/time_tracking.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,8 @@ <h2>{$managedUser_realname}</h2>
187187

188188
{if $timetrackingTuples}
189189
<div style="margin-top: 2em;">
190-
{t}Future timetracks{/t}
191-
192190
<table style="margin-top: 2em; width: 100%;">
191+
<caption>{t}Future timetracks{/t}</caption>
193192
<thead>
194193
<tr>
195194
<th></th>

0 commit comments

Comments
 (0)