Defect #665
closedMantis Importer Mixes Ticket Numbers
0%
Description
Hi,
I have done an Import from my Mantis Database.
The Problem is that the ticket Numbers in redmine [1144]
are now different from the ones in the Mantis Bugtracker.
The Mantis importer says:
Bugs: 2331/2331
After that I have 2331 Tickets in redmine,
but my Mantis Bugtracker contains 2342 Tickets.
So there are 11 Tickets Missing...
Updated by Sven Schuchmann almost 17 years ago
Hi,
just analyzed my database and it seems that someone
deleted the 11 tickets directly from the database.
(the database is 4 years old and I took it over 2 years ago)
I will enter the 11 dummy tickets and try to import again...
Updated by Sven Schuchmann almost 17 years ago
Okay, here is what I did: I added 11 tickets in redmine
and changed the "id" field in "mantis_bug_table" to the gaps.
But: They were still imported with the wrong numbers.
So I patched the importer "migrate_from_mantis.rake".
I changed the line:
MantisBug.find(:all).each do |bug|
to:
MantisBug.find(:all, :order => 'id ASC').each do |bug|
And they all got imported correctly... Ticket can be closed!
Updated by Jean-Philippe Lang almost 17 years ago
- Status changed from New to Closed
I made a small fix to the Mantis importer in r1146 so that it preserves Mantis bug ids, even if you have deleted some bugs.