Mercurial > p > roundup > code
annotate website/www/index.txt @ 6433:c1d3fbcdbfbd
issue2551142 - Import of retired node ... unique constraint failure.
Title: Import of retired node with username after active node fails
with unique constraint failure.
More fixes needed for mysql and postgresql.
mysql: add unique constraint for (keyvalue, __retired__) when
creating class in the database.
On schema change if class is changed, remove the unique
constraint too.
upgrade version of rdbms database from 5 to 6 to add constraint
to all version 5 databases that were created as version 5
and didn't get the unique constraint. Make no changes
on version 5 databases upgraded from version 4, the upgrade
process to 5 added the constraint. Make no changes
to other databases (sqlite, postgres) during upgrade from
version 5 to 6.
postgres: Handle the exception raised on unique constraint violation.
The exception invalidates the database connection so it
can't be used to recover from the exception.
Added two new database methods:
checkpoint_data - performs a db.commit under postgres
does nothing on other backends
restore_connection_on_error - does a db.rollback on
postgres, does nothing on other
backends
with the rollback() done on the connection I can use the
database connection to fixup the import that failed on the
unique constraint. This makes postgres slower but without the
commit after every imported object, the rollback will delete
all the entries done up to this point.
Trying to figure out how to make the caller do_import batch
and recover from this failure is beyond me.
Also dismissed having to process the export csv file before
importing. Pushing that onto a user just seems wrong. Also
since import/export isn't frequently done the lack of
surprise on having a failing import and reduced
load/frustration for the user seems worth it. Also the import
can be run in verbose mode where it prints out a row as it is
processed, so it may take a while, ut the user can get
feedback.
db_test-base.py: add test for upgrade from 5 to 6.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Thu, 10 Jun 2021 12:52:05 -0400 |
| parents | 92cc82788f83 |
| children | 5296d27ac97c |
| rev | line source |
|---|---|
|
4035
e4950073153f
Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff
changeset
|
1 Roundup Issue Tracker |
|
e4950073153f
Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff
changeset
|
2 ===================== |
|
e4950073153f
Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff
changeset
|
3 |
|
6263
3a851df879cd
Remove doc dependency sphinxcontrib-cheeseshop.
John Rouillard <rouilj@ieee.org>
parents:
6225
diff
changeset
|
4 .. raw:: html |
|
3a851df879cd
Remove doc dependency sphinxcontrib-cheeseshop.
John Rouillard <rouilj@ieee.org>
parents:
6225
diff
changeset
|
5 |
|
3a851df879cd
Remove doc dependency sphinxcontrib-cheeseshop.
John Rouillard <rouilj@ieee.org>
parents:
6225
diff
changeset
|
6 <div class="release_info note">Download: |
|
3a851df879cd
Remove doc dependency sphinxcontrib-cheeseshop.
John Rouillard <rouilj@ieee.org>
parents:
6225
diff
changeset
|
7 <a href="https://pypi.org/project/roundup/">latest</a></div> |
|
4035
e4950073153f
Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff
changeset
|
8 |
|
5949
573b688fffeb
RELEASE.txt changes checkin pre 2.0.0alpha0
John Rouillard <rouilj@ieee.org>
parents:
5941
diff
changeset
|
9 Roundup is a simple-to-use and -install issue-tracking system with |
|
573b688fffeb
RELEASE.txt changes checkin pre 2.0.0alpha0
John Rouillard <rouilj@ieee.org>
parents:
5941
diff
changeset
|
10 command-line, web and e-mail interfaces. It is based on the winning |
|
573b688fffeb
RELEASE.txt changes checkin pre 2.0.0alpha0
John Rouillard <rouilj@ieee.org>
parents:
5941
diff
changeset
|
11 design from Ka-Ping Yee in the Software Carpentry "Track" design |
|
573b688fffeb
RELEASE.txt changes checkin pre 2.0.0alpha0
John Rouillard <rouilj@ieee.org>
parents:
5941
diff
changeset
|
12 competition. |
|
4035
e4950073153f
Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff
changeset
|
13 |
|
6225
043a8ffd79ad
Commits for roundup 2.0 release.
John Rouillard <rouilj@ieee.org>
parents:
6163
diff
changeset
|
14 The current stable version of Roundup is 2.0.0 which has quite a |
|
043a8ffd79ad
Commits for roundup 2.0 release.
John Rouillard <rouilj@ieee.org>
parents:
6163
diff
changeset
|
15 comprehensive :doc:`feature set <docs/features>` compared to the last |
|
043a8ffd79ad
Commits for roundup 2.0 release.
John Rouillard <rouilj@ieee.org>
parents:
6163
diff
changeset
|
16 stable release (v1.6.1). These features include: |
|
5949
573b688fffeb
RELEASE.txt changes checkin pre 2.0.0alpha0
John Rouillard <rouilj@ieee.org>
parents:
5941
diff
changeset
|
17 |
|
573b688fffeb
RELEASE.txt changes checkin pre 2.0.0alpha0
John Rouillard <rouilj@ieee.org>
parents:
5941
diff
changeset
|
18 * Python 2 and Python 3 support |
|
573b688fffeb
RELEASE.txt changes checkin pre 2.0.0alpha0
John Rouillard <rouilj@ieee.org>
parents:
5941
diff
changeset
|
19 * a new REST interface |
| 6163 | 20 * updates to jinja2 templates including security improvements |
|
5949
573b688fffeb
RELEASE.txt changes checkin pre 2.0.0alpha0
John Rouillard <rouilj@ieee.org>
parents:
5941
diff
changeset
|
21 |
|
6225
043a8ffd79ad
Commits for roundup 2.0 release.
John Rouillard <rouilj@ieee.org>
parents:
6163
diff
changeset
|
22 For more information see the :doc:`design overview <docs/design>`, and |
|
043a8ffd79ad
Commits for roundup 2.0 release.
John Rouillard <rouilj@ieee.org>
parents:
6163
diff
changeset
|
23 all the other :doc:`documentation <docs>`. Roundup has been deployed |
|
043a8ffd79ad
Commits for roundup 2.0 release.
John Rouillard <rouilj@ieee.org>
parents:
6163
diff
changeset
|
24 for: |
|
4035
e4950073153f
Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff
changeset
|
25 |
|
e4950073153f
Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff
changeset
|
26 * bug tracking and TODO list management (the classic installation) |
|
e4950073153f
Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff
changeset
|
27 * customer help desk support (with a wizard for the phone answerers, linking to networking, |
|
e4950073153f
Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff
changeset
|
28 system and development issue trackers) |
|
e4950073153f
Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff
changeset
|
29 * issue management for IETF working groups |
|
e4950073153f
Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff
changeset
|
30 * sales lead tracking |
|
e4950073153f
Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff
changeset
|
31 * conference paper submission and double-blind referee management |
|
e4950073153f
Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff
changeset
|
32 * weblogging (well, almost :) |
|
e4950073153f
Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff
changeset
|
33 |
|
5949
573b688fffeb
RELEASE.txt changes checkin pre 2.0.0alpha0
John Rouillard <rouilj@ieee.org>
parents:
5941
diff
changeset
|
34 ...and so on. It's been designed with :doc:`flexibility |
|
573b688fffeb
RELEASE.txt changes checkin pre 2.0.0alpha0
John Rouillard <rouilj@ieee.org>
parents:
5941
diff
changeset
|
35 <docs/customizing>` in mind - it's not just another bug |
|
573b688fffeb
RELEASE.txt changes checkin pre 2.0.0alpha0
John Rouillard <rouilj@ieee.org>
parents:
5941
diff
changeset
|
36 tracker. Roundup ships with a *demo tracker* to play with - after |
|
573b688fffeb
RELEASE.txt changes checkin pre 2.0.0alpha0
John Rouillard <rouilj@ieee.org>
parents:
5941
diff
changeset
|
37 you've unpacked the source, just run "python demo.py" and load up the |
|
573b688fffeb
RELEASE.txt changes checkin pre 2.0.0alpha0
John Rouillard <rouilj@ieee.org>
parents:
5941
diff
changeset
|
38 URL it prints out! |
|
4035
e4950073153f
Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff
changeset
|
39 |
|
e4950073153f
Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff
changeset
|
40 Roundup was originally released as version 0.1.1 in late August, 2001. The first `change note`_ I wrote says: |
|
e4950073153f
Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff
changeset
|
41 |
|
e4950073153f
Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff
changeset
|
42 Needed a bug tracking system. Looked around. Tried to install many Perl-based systems, to no avail. |
|
e4950073153f
Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff
changeset
|
43 Got tired of waiting for Roundup to be released. Had just finished major product project, so needed |
|
e4950073153f
Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff
changeset
|
44 something different for a while. Roundup here I come... |
|
e4950073153f
Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff
changeset
|
45 |
|
5941
29d428927362
prep for 2.0.0alpha0 release.
John Rouillard <rouilj@ieee.org>
parents:
5335
diff
changeset
|
46 .. _`download`: https://pypi.org/project/roundup/ |
|
4829
b77ef61a844e
Fix link to CHANGES.txt to avoid file download
anatoly techtonik <techtonik@gmail.com>
parents:
4789
diff
changeset
|
47 .. _`change note`: https://sourceforge.net/p/roundup/code/ci/tip/tree/CHANGES.txt |
|
6269
92cc82788f83
Replace http:....roundup-tracker.org with https.
John Rouillard <rouilj@ieee.org>
parents:
6263
diff
changeset
|
48 .. _`its own set of docs`: https://www.roundup-tracker.org/dev-docs/docs.html |
