Mercurial > p > roundup > code
annotate scripts/README.txt @ 6806:bdd28b244839
- issue2551223 - fix timestamp truncation in mysql and postgresql
The data types used to represent timestamps in pg and mysql for
ephemeral tables: sessions and otks don't have enough signifcant
digits to work. As a result the timestamps are rounduped (up/down)
rsuling in the stored timestamp being 2 minutes (pg) or 2-3
hours(mysql) off from what it should be.
Modify db schema to use a numeric type that preserves more significant
figures. Implement schema upgrade. Document need for upgrade in
upgrading.txt.
Write tests for schema upgrade.
Implement test for updateTimestamp method on BasicDatabase that showed
this issue in the first place. Write overrides for test for
anydbm/memorydb which store timestamp properly or not at all.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Mon, 25 Jul 2022 17:20:20 -0400 |
| parents | cd408eb748dd |
| children | 8d9a6063cb22 |
| rev | line source |
|---|---|
|
1647
73bf927091c7
*** empty log message ***
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
1 Scripts in this directory: |
|
73bf927091c7
*** empty log message ***
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
2 |
|
73bf927091c7
*** empty log message ***
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
3 add-issue |
|
73bf927091c7
*** empty log message ***
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
4 Add a single issue, as specified on the command line, to your tracker. The |
|
73bf927091c7
*** empty log message ***
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
5 initial message for the issue is taken from standard input. |
|
73bf927091c7
*** empty log message ***
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
6 |
|
6473
7655dae061b8
Document missing files. Alphabetize.
John Rouillard <rouilj@ieee.org>
parents:
4828
diff
changeset
|
7 copy-user.py |
|
7655dae061b8
Document missing files. Alphabetize.
John Rouillard <rouilj@ieee.org>
parents:
4828
diff
changeset
|
8 Copy one or more Roundup users from one tracker instance to another. |
|
7655dae061b8
Document missing files. Alphabetize.
John Rouillard <rouilj@ieee.org>
parents:
4828
diff
changeset
|
9 |
|
6571
cd408eb748dd
Add small utility script for dumping dbm based databases.
John Rouillard <rouilj@ieee.org>
parents:
6553
diff
changeset
|
10 dump_dbm_sessions_db.py |
|
cd408eb748dd
Add small utility script for dumping dbm based databases.
John Rouillard <rouilj@ieee.org>
parents:
6553
diff
changeset
|
11 Simple script to dump a session style dbm database e.g. db/otks or |
|
cd408eb748dd
Add small utility script for dumping dbm based databases.
John Rouillard <rouilj@ieee.org>
parents:
6553
diff
changeset
|
12 db/sessions in readable form. |
|
cd408eb748dd
Add small utility script for dumping dbm based databases.
John Rouillard <rouilj@ieee.org>
parents:
6553
diff
changeset
|
13 |
|
6473
7655dae061b8
Document missing files. Alphabetize.
John Rouillard <rouilj@ieee.org>
parents:
4828
diff
changeset
|
14 imapServer.py |
|
7655dae061b8
Document missing files. Alphabetize.
John Rouillard <rouilj@ieee.org>
parents:
4828
diff
changeset
|
15 This IMAP server script that runs in the background and checks for new |
|
7655dae061b8
Document missing files. Alphabetize.
John Rouillard <rouilj@ieee.org>
parents:
4828
diff
changeset
|
16 email from a variety of mailboxes. |
|
7655dae061b8
Document missing files. Alphabetize.
John Rouillard <rouilj@ieee.org>
parents:
4828
diff
changeset
|
17 |
|
7655dae061b8
Document missing files. Alphabetize.
John Rouillard <rouilj@ieee.org>
parents:
4828
diff
changeset
|
18 import_sf.py |
|
7655dae061b8
Document missing files. Alphabetize.
John Rouillard <rouilj@ieee.org>
parents:
4828
diff
changeset
|
19 Import tracker data from Sourceforge.NET into a new roundup instance. |
|
7655dae061b8
Document missing files. Alphabetize.
John Rouillard <rouilj@ieee.org>
parents:
4828
diff
changeset
|
20 |
|
1647
73bf927091c7
*** empty log message ***
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
21 roundup-reminder |
|
73bf927091c7
*** empty log message ***
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
22 Generate an email that lists outstanding issues. Send in both plain text |
|
73bf927091c7
*** empty log message ***
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
23 and HTML formats. |
|
73bf927091c7
*** empty log message ***
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
24 |
|
6473
7655dae061b8
Document missing files. Alphabetize.
John Rouillard <rouilj@ieee.org>
parents:
4828
diff
changeset
|
25 schema_diagram.py |
|
7655dae061b8
Document missing files. Alphabetize.
John Rouillard <rouilj@ieee.org>
parents:
4828
diff
changeset
|
26 Generate a schema diagram for a roundup tracker. It generates a 'dot file' |
|
7655dae061b8
Document missing files. Alphabetize.
John Rouillard <rouilj@ieee.org>
parents:
4828
diff
changeset
|
27 that is then fed into the 'dot' tool (http://www.graphviz.org) to generate |
|
7655dae061b8
Document missing files. Alphabetize.
John Rouillard <rouilj@ieee.org>
parents:
4828
diff
changeset
|
28 a graph. |
|
7655dae061b8
Document missing files. Alphabetize.
John Rouillard <rouilj@ieee.org>
parents:
4828
diff
changeset
|
29 |
|
7655dae061b8
Document missing files. Alphabetize.
John Rouillard <rouilj@ieee.org>
parents:
4828
diff
changeset
|
30 schema-dump.py |
|
7655dae061b8
Document missing files. Alphabetize.
John Rouillard <rouilj@ieee.org>
parents:
4828
diff
changeset
|
31 Use recently documented XML-RPC API to dump Roundup data schema in |
|
7655dae061b8
Document missing files. Alphabetize.
John Rouillard <rouilj@ieee.org>
parents:
4828
diff
changeset
|
32 human readable form. |
|
7655dae061b8
Document missing files. Alphabetize.
John Rouillard <rouilj@ieee.org>
parents:
4828
diff
changeset
|
33 |
|
7655dae061b8
Document missing files. Alphabetize.
John Rouillard <rouilj@ieee.org>
parents:
4828
diff
changeset
|
34 spam-remover |
|
7655dae061b8
Document missing files. Alphabetize.
John Rouillard <rouilj@ieee.org>
parents:
4828
diff
changeset
|
35 Remove file attachment spam from a tracker. (Warning destructive, |
|
7655dae061b8
Document missing files. Alphabetize.
John Rouillard <rouilj@ieee.org>
parents:
4828
diff
changeset
|
36 read script well.) |
|
7655dae061b8
Document missing files. Alphabetize.
John Rouillard <rouilj@ieee.org>
parents:
4828
diff
changeset
|
37 |
|
6553
75da037d1c54
Add another xmlrpc example script and update readme.
John Rouillard <rouilj@ieee.org>
parents:
6473
diff
changeset
|
38 stats.xmlrpc.py |
|
75da037d1c54
Add another xmlrpc example script and update readme.
John Rouillard <rouilj@ieee.org>
parents:
6473
diff
changeset
|
39 Script using the xmlrpc interface to retrieve info. Generates report |
|
75da037d1c54
Add another xmlrpc example script and update readme.
John Rouillard <rouilj@ieee.org>
parents:
6473
diff
changeset
|
40 on what values are used by the various issues on bugs.python.org. |
|
75da037d1c54
Add another xmlrpc example script and update readme.
John Rouillard <rouilj@ieee.org>
parents:
6473
diff
changeset
|
41 |
|
3764
7f0c63868fa9
add new script
Richard Jones <richard@users.sourceforge.net>
parents:
3176
diff
changeset
|
42 weekly-report |
|
7f0c63868fa9
add new script
Richard Jones <richard@users.sourceforge.net>
parents:
3176
diff
changeset
|
43 Generate a simple report outlining the activity in one tracker for the |
|
7f0c63868fa9
add new script
Richard Jones <richard@users.sourceforge.net>
parents:
3176
diff
changeset
|
44 most recent week. |
|
7f0c63868fa9
add new script
Richard Jones <richard@users.sourceforge.net>
parents:
3176
diff
changeset
|
45 |
|
6473
7655dae061b8
Document missing files. Alphabetize.
John Rouillard <rouilj@ieee.org>
parents:
4828
diff
changeset
|
46 ---- |
|
1647
73bf927091c7
*** empty log message ***
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
47 |
|
73bf927091c7
*** empty log message ***
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
48 server-ctl |
|
73bf927091c7
*** empty log message ***
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
49 Control the roundup-server daemon from the command line with start, stop, |
|
73bf927091c7
*** empty log message ***
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
50 restart, condstart (conditional start - only if server is stopped) and |
|
73bf927091c7
*** empty log message ***
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
51 status commands. |
|
73bf927091c7
*** empty log message ***
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
52 |
|
1841
24fb163ddece
added Debian rc script
Richard Jones <richard@users.sourceforge.net>
parents:
1647
diff
changeset
|
53 roundup.rc-debian |
|
24fb163ddece
added Debian rc script
Richard Jones <richard@users.sourceforge.net>
parents:
1647
diff
changeset
|
54 An control script that may be installed in /etc/init.d on Debian systems. |
|
24fb163ddece
added Debian rc script
Richard Jones <richard@users.sourceforge.net>
parents:
1647
diff
changeset
|
55 Offers start, stop and restart commands and integrates with the Debian |
|
24fb163ddece
added Debian rc script
Richard Jones <richard@users.sourceforge.net>
parents:
1647
diff
changeset
|
56 init process. |
|
24fb163ddece
added Debian rc script
Richard Jones <richard@users.sourceforge.net>
parents:
1647
diff
changeset
|
57 |
|
6473
7655dae061b8
Document missing files. Alphabetize.
John Rouillard <rouilj@ieee.org>
parents:
4828
diff
changeset
|
58 |
|
7655dae061b8
Document missing files. Alphabetize.
John Rouillard <rouilj@ieee.org>
parents:
4828
diff
changeset
|
59 systemd.gunicorn |
|
7655dae061b8
Document missing files. Alphabetize.
John Rouillard <rouilj@ieee.org>
parents:
4828
diff
changeset
|
60 A systemd unit file for running roundup under gnuicorn WSGI server. |
|
7655dae061b8
Document missing files. Alphabetize.
John Rouillard <rouilj@ieee.org>
parents:
4828
diff
changeset
|
61 |
|
7655dae061b8
Document missing files. Alphabetize.
John Rouillard <rouilj@ieee.org>
parents:
4828
diff
changeset
|
62 ---- |
|
3176
18ad9d702a5b
added "imapServer.py" script (patch [SF#934567])
Richard Jones <richard@users.sourceforge.net>
parents:
1841
diff
changeset
|
63 |
|
4828
64daaa4bf816
contributors.py: Exclude robots and change sorting so that
anatoly techtonik <techtonik@gmail.com>
parents:
3764
diff
changeset
|
64 contributors.py |
|
64daaa4bf816
contributors.py: Exclude robots and change sorting so that
anatoly techtonik <techtonik@gmail.com>
parents:
3764
diff
changeset
|
65 Analyzes Mercurial log, filters and compiles list of committers with years |
|
64daaa4bf816
contributors.py: Exclude robots and change sorting so that
anatoly techtonik <techtonik@gmail.com>
parents:
3764
diff
changeset
|
66 of contribution. Can be useful for updating COPYING.txt |
|
6553
75da037d1c54
Add another xmlrpc example script and update readme.
John Rouillard <rouilj@ieee.org>
parents:
6473
diff
changeset
|
67 |
|
75da037d1c54
Add another xmlrpc example script and update readme.
John Rouillard <rouilj@ieee.org>
parents:
6473
diff
changeset
|
68 ---- |
|
75da037d1c54
Add another xmlrpc example script and update readme.
John Rouillard <rouilj@ieee.org>
parents:
6473
diff
changeset
|
69 |
|
75da037d1c54
Add another xmlrpc example script and update readme.
John Rouillard <rouilj@ieee.org>
parents:
6473
diff
changeset
|
70 Docker |
|
75da037d1c54
Add another xmlrpc example script and update readme.
John Rouillard <rouilj@ieee.org>
parents:
6473
diff
changeset
|
71 Directory for docker setup. More info on how to use it is in |
|
75da037d1c54
Add another xmlrpc example script and update readme.
John Rouillard <rouilj@ieee.org>
parents:
6473
diff
changeset
|
72 doc/installation.txt. |
|
75da037d1c54
Add another xmlrpc example script and update readme.
John Rouillard <rouilj@ieee.org>
parents:
6473
diff
changeset
|
73 |
|
75da037d1c54
Add another xmlrpc example script and update readme.
John Rouillard <rouilj@ieee.org>
parents:
6473
diff
changeset
|
74 Docker/Dockerfile - Create roundup docker. |
|
75da037d1c54
Add another xmlrpc example script and update readme.
John Rouillard <rouilj@ieee.org>
parents:
6473
diff
changeset
|
75 |
|
75da037d1c54
Add another xmlrpc example script and update readme.
John Rouillard <rouilj@ieee.org>
parents:
6473
diff
changeset
|
76 Docker/requirements.txt - Python requirements built into docker. |
|
75da037d1c54
Add another xmlrpc example script and update readme.
John Rouillard <rouilj@ieee.org>
parents:
6473
diff
changeset
|
77 |
|
75da037d1c54
Add another xmlrpc example script and update readme.
John Rouillard <rouilj@ieee.org>
parents:
6473
diff
changeset
|
78 Docker/roundup-start - Startup script for roundup in docker. |
|
75da037d1c54
Add another xmlrpc example script and update readme.
John Rouillard <rouilj@ieee.org>
parents:
6473
diff
changeset
|
79 |
|
75da037d1c54
Add another xmlrpc example script and update readme.
John Rouillard <rouilj@ieee.org>
parents:
6473
diff
changeset
|
80 Docker/docker-compose.yml - Manage two docker containers for roundup |
|
75da037d1c54
Add another xmlrpc example script and update readme.
John Rouillard <rouilj@ieee.org>
parents:
6473
diff
changeset
|
81 and mysql. |
