-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathadmin_help.html
More file actions
530 lines (440 loc) · 14 KB
/
admin_help.html
File metadata and controls
530 lines (440 loc) · 14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
<table>
<tr><td valign=top><strong>commit</strong></td>
<td><p><tt></tt></p>
<p>
Commit changes made to the database during an interactive session.
</p><p>
The changes made during an interactive session are not
automatically written to the database - they must be committed
using this command.
</p><p>
One-off commands on the command-line are automatically committed if
they are successful.
</p><p>
</td></tr>
<tr><td valign=top><strong>create</strong></td>
<td><p><tt>classname property=value ...</tt></p>
<p>
Create a new entry of a given class.
</p><p>
This creates a new entry of the given class using the property
name=value arguments provided on the command line after the "create"
command.
</p><p>
</td></tr>
<tr><td valign=top><strong>display</strong></td>
<td><p><tt>designator[,designator]*</tt></p>
<p>
Show the property values for the given node(s).
</p><p>
A designator is a classname and a nodeid concatenated,
eg. bug1, user10, ...
</p><p>
This lists the properties and their associated values
for the given node.
</p><p>
</td></tr>
<tr><td valign=top><strong>export</strong></td>
<td><p><tt>[[-]class[,class]] export_dir</tt></p>
<p>
Export the database and file content.
</p><p>
Database content is exported to colon separated files.
To exclude the files (e.g. for the msg or file class),
use the exporttables command.
</p><p>
Optionally limit the export to just the named classes
or exclude the named classes, if the 1st argument
starts with '-'.
</p><p>
This action exports the current data from the database into
colon-separated-value files that are placed in the nominated
export_dir directory.
</p><p>
</td></tr>
<tr><td valign=top><strong>exporttables</strong></td>
<td><p><tt>[[-]class[,class]] export_dir</tt></p>
<p>
Export only the database to files, no file content.
</p><p>
Database content is exported to colon separated files.
The files below $TRACKER_HOME/db/files/ (which can be
archived separately) are not part of the export.
To include the files, use the export command.
</p><p>
Optionally limit the export to just the named classes
or exclude the named classes, if the 1st argument
starts with '-'.
</p><p>
This action exports the current data from the database into
colon-separated-value files that are placed in the export_dir
destination directory.
</p><p>
</td></tr>
<tr><td valign=top><strong>filter</strong></td>
<td><p><tt>classname propname=value ...</tt></p>
<p>
Find the nodes of the given class with a given property value.
</p><p>
Find the nodes of the given class with a given property value.
Multiple values can be specified by separating them with commas.
If property is a string, all values must match. I.E. it's an
'and' operation. If the property is a link/multilink any value
matches. I.E. an 'or' operation.
</p><p>
</td></tr>
<tr><td valign=top><strong>find</strong></td>
<td><p><tt>classname propname=value ...</tt></p>
<p>
Find the nodes of the given class with a given link property value.
</p><p>
Find the nodes of the given class with a given link property value.
The value may be either the nodeid of the linked node, or its key
value.
</p><p>
</td></tr>
<tr><td valign=top><strong>genconfig</strong></td>
<td><p><tt>filename</tt></p>
<p>
Create a new tracker config file with default values in filename.
See also updateconfig.
</p><p>
</td></tr>
<tr><td valign=top><strong>get</strong></td>
<td><p><tt>property designator[,designator]*</tt></p>
<p>
Get the given property of one or more designator(s).
</p><p>
A designator is a classname and a nodeid concatenated,
eg. bug1, user10, ...
</p><p>
Retrieves the property value of the nodes specified
by the designators.
</p><p>
</td></tr>
<tr><td valign=top><strong>help</strong></td>
<td><p><tt>topic</tt></p>
<p>
Give help about topic.
</p><p>
commands -- list commands
<command> -- help specific to a command
initopts -- init command options
all -- all available help
</p><p>
</td></tr>
<tr><td valign=top><strong>history</strong></td>
<td><p><tt>designator [skipquiet] [raw]</tt></p>
<p>
Show the history entries of a designator.
</p><p>
A designator is a classname and a nodeid concatenated,
eg. bug1, user10, ...
</p><p>
Lists the journal entries viewable by the user for the node
identified by the designator. If skipquiet is added, journal
entries for quiet properties are not shown. If raw is added,
the output is the raw representation of the journal entries.
</p><p>
</td></tr>
<tr><td valign=top><strong>import</strong></td>
<td><p><tt>import_dir</tt></p>
<p>
Import a database and file contents from the directory.
</p><p>
The directory should have the same format as one containing
the output of export. There are two files imported per class.
The files used in the import are:
</p><p>
<class>.csv
This must define the same properties as the class
(including having a "header" line with those
property names.)
</p><p>
<class>-journals.csv
This defines the journals for the items
being imported.
</p><p>
The imported nodes will have the same nodeid as defined in the
import file, thus replacing any existing content.
</p><p>
The new nodes are added to the existing database - if you want to
create a new database using the imported data, then create a new
database (or, tediously, retire all the old data.)
</p><p>
</td></tr>
<tr><td valign=top><strong>importtables</strong></td>
<td><p><tt>export_dir</tt></p>
<p>
This imports the database tables exported using exporttables.
</p><p>
It does not import the content of files like msgs and files.
</p><p>
</td></tr>
<tr><td valign=top><strong>initialise</strong></td>
<td><p><tt>[adminpw]</tt></p>
<p>
Initialise a new Roundup tracker.
</p><p>
The administrator details will be set at this step.
</p><p>
Execute the tracker's initialisation function dbinit.init()
</p><p>
</td></tr>
<tr><td valign=top><strong>install</strong></td>
<td><p><tt>[template [backend [key=val[,key=val]]]]</tt></p>
<p>
Install a new Roundup tracker.
</p><p>
The command will prompt for the tracker home directory
(if not supplied through TRACKER_HOME or the -i option).
The template and backend may be specified on the command-line
as arguments, in that order.
</p><p>
Command line arguments following the backend allows you to
pass initial values for config options. For example, passing
"web_http_auth=no,rdbms_user=dinsdale" will override defaults
for options http_auth in section [web] and user in section [rdbms].
Please be careful to not use spaces in this argument! (Enclose
whole argument in quotes if you need spaces in option value).
</p><p>
The initialise command must be called after this command in order
to initialise the tracker's database. You may edit the tracker's
initial database contents before running that command by editing
the tracker's dbinit.py module init() function.
</p><p>
See also initopts help.
</p><p>
</td></tr>
<tr><td valign=top><strong>list</strong></td>
<td><p><tt>classname [property]</tt></p>
<p>
List the instances of a class.
</p><p>
Lists all instances of the given class. If the property is not
specified, the "label" property is used. The label property is
tried in order: the key, "name", "title" and then the first
property, alphabetically.
</p><p>
With -c, -S or -s print a list of item id's if no property
specified. If property specified, print list of that property
for every class instance.
</p><p>
</td></tr>
<tr><td valign=top><strong>migrate</strong></td>
<td><p><tt></tt></p>
<p>
Update a tracker's database to be compatible with the Roundup
codebase.
</p><p>
You should run the "migrate" command for your tracker once
you've installed the latest codebase.
</p><p>
Do this before you use the web, command-line or mail interface
and before any users access the tracker.
</p><p>
This command will respond with either "Tracker updated" (if
you've not previously run it on an RDBMS backend) or "No
migration action required" (if you have run it, or have used
another interface to the tracker, or possibly because you are
using anydbm).
</p><p>
It's safe to run this even if it's not required, so just get
into the habit.
</p><p>
</td></tr>
<tr><td valign=top><strong>pack</strong></td>
<td><p><tt>period | date</tt></p>
<p>
Remove journal entries older than the date/period.
</p><p>
A period is specified using the suffixes "y", "m", and "d". The
suffix "w" (for "week") means 7 days.
</p><p>
<pre> "3y" means three years</pre>
<pre> "2y 1m" means two years and one month</pre>
<pre> "1m 25d" means one month and 25 days</pre>
<pre> "2w 3d" means two weeks and three days</pre>
</p><p>
Date format is "YYYY-MM-DD" eg:
<pre> 2001-01-01</pre>
</p><p>
</p><p>
</td></tr>
<tr><td valign=top><strong>perftest</strong></td>
<td><p><tt>[mode] [arguments]*</tt></p>
<p>
Time operations in Roundup.
</p><p>
Supported arguments:
</p><p>
<pre> [password] [rounds=<integer>] [scheme=<scheme>]</pre>
</p><p>
'password' is the default mode. The tracker's config.ini
setting for 'password_pbkdf2_default_rounds' is the default
value for 'rounds'. On the command line, 'rounds' can include
thousands separator of ',' or '.'. 'scheme' is the default
coded into Roundup. List supported schemes by using 'scheme='.
</p><p>
</p><p>
</td></tr>
<tr><td valign=top><strong>pragma</strong></td>
<td><p><tt>setting=value | 'list'</tt></p>
<p>
Set internal admin settings to a value.
</p><p>
For example:
</p><p>
<pre> pragma verbose=True</pre>
<pre> pragma verbose=yes</pre>
<pre> pragma verbose=on</pre>
<pre> pragma verbose=1</pre>
</p><p>
will turn on verbose mode for roundup-admin.
</p><p>
<pre> pragma list</pre>
</p><p>
will show all settings and their current values. If verbose
is enabled hidden settings and descriptions will be shown.
</p><p>
</td></tr>
<tr><td valign=top><strong>reindex</strong></td>
<td><p><tt>[classname|classname:#-#|designator]*</tt></p>
<p>
Re-generate a tracker's search indexes.
</p><p>
This will re-generate the search indexes for a tracker.
This will typically happen automatically.
</p><p>
You can incrementally reindex using an argument like:
</p><p>
<pre> reindex issue:23-1000</pre>
</p><p>
to reindex issue class items 23-1000. Missing items
are reported but do not stop indexing of the range.
</p><p>
</td></tr>
<tr><td valign=top><strong>restore</strong></td>
<td><p><tt>designator[,designator]*</tt></p>
<p>
Restore the retired node specified by designator.
</p><p>
A designator is a classname and a nodeid concatenated,
eg. bug1, user10, ...
</p><p>
The given nodes will become available for users again.
</p><p>
</td></tr>
<tr><td valign=top><strong>retire</strong></td>
<td><p><tt>designator[,designator]*</tt></p>
<p>
Retire the node specified by designator.
</p><p>
A designator is a classname and a nodeid concatenated,
eg. bug1, user10, ...
</p><p>
This action indicates that a particular node is not to be retrieved
by the list or find commands, and its key value may be re-used.
</p><p>
</td></tr>
<tr><td valign=top><strong>rollback</strong></td>
<td><p><tt></tt></p>
<p>
Undo all changes that are pending commit to the database.
</p><p>
The changes made during an interactive session are not
automatically written to the database - they must be committed
manually. This command undoes all those changes, so a commit
immediately after would make no changes to the database.
</p><p>
</td></tr>
<tr><td valign=top><strong>security</strong></td>
<td><p><tt>[Role name]</tt></p>
<p>
Display the Permissions available to one or all Roles.
</p><p>
Also validates that any properties defined in a
permission are valid.
</p><p>
Run this after changing your permissions to catch
typos.
</p><p>
</td></tr>
<tr><td valign=top><strong>set</strong></td>
<td><p><tt>items property=value [property=value ...]</tt></p>
<p>
Set the given properties of one or more items(s).
</p><p>
The items are specified as a class or as a comma-separated
list of item designators (ie "designator[,designator,...]").
</p><p>
A designator is a classname and a nodeid concatenated,
eg. bug1, user10, ...
</p><p>
This command sets the properties to the values for all
designators given. If a class is used, the property will be
set for all items in the class. If the value is missing
(ie. "property=") then the property is un-set. If the property
is a multilink, you specify the linked ids for the multilink
as comma-separated numbers (ie "1,2,3").
</p><p>
</p><p>
</td></tr>
<tr><td valign=top><strong>specification</strong></td>
<td><p><tt>classname</tt></p>
<p>
Show the properties for a classname.
</p><p>
This lists the properties for a given class.
</p><p>
</td></tr>
<tr><td valign=top><strong>table</strong></td>
<td><p><tt>classname [property[,property]*]</tt></p>
<p>
List the instances of a class in tabular form.
</p><p>
Lists all instances of the given class. If the properties are not
specified, all properties are displayed. By default, the column
widths are the width of the largest value. The width may be
explicitly defined by defining the property as "name:width".
For example::
</p><p>
<pre> roundup> table priority id,name:10</pre>
<pre> Id Name</pre>
<pre> 1 fatal-bug</pre>
<pre> 2 bug</pre>
<pre> 3 usability</pre>
<pre> 4 feature</pre>
</p><p>
Also to make the width of the column the width of the label,
leave a trailing : without a width on the property. For example::
</p><p>
<pre> roundup> table priority id,name:</pre>
<pre> Id Name</pre>
<pre> 1 fata</pre>
<pre> 2 bug</pre>
<pre> 3 usab</pre>
<pre> 4 feat</pre>
</p><p>
will result in a the 4 character wide "Name" column.
</p><p>
</td></tr>
<tr><td valign=top><strong>templates</strong></td>
<td><p><tt>[trace_search]</tt></p>
<p>
List templates and their installed directories.
</p><p>
With trace_search also list all directories that are
searched for templates.
</p><p>
</td></tr>
<tr><td valign=top><strong>updateconfig</strong></td>
<td><p><tt><filename></tt></p>
<p>
Merge existing tracker config with new settings.
</p><p>
Output the updated config file to <filename>. Use current
settings from existing roundup tracker in tracker home.
</p><p>
</td></tr>
</table>