A script exists at scripts/trac_export.py
to extract trac tickets, and can be imported with scripts/allura_import.py
Jon Schewe describes the whole process at http://mail-archives.apache.org/mod_mbox/incubator-allura-users/201303.mbox/%3CCALpcnoxEG%3DNJ7UG1dfOKj%2BbEPMtybGNStXZPVjfHrLyLDz%3DXLA%40mail.gmail.com%3E
Improvements needed:
See [#6139] for wiki import.
We should strongly consider making our ticket import format match our API format, so that a backup [#3154] can be restored directly. ... or do that later
Tickets: #3154
Tickets: #4213
Tickets: #6139
Tickets: #6140
Tickets: #6441
Originally by: nathancarter
I am having trouble finding on the internet anywhere (or SF.net in particular) a reliable way to take an existing Trac (hosted app) ticket database and import it into Allura. (E.g., the support discussion at https://sourceforge.net/p/forge/site-support/1701/ says that the official migration documentation is incorrect, and maybe the Allura devs have a better answer, but no such official answer is posted anywhere that I can find.) Despite this, if I understand correctly, it is required to update to Allura in the somewhat near future. So is the official position that those with existing Trac hosted app ticket databases are simply left out in the cold?
There are 2 separate things going on:
Someday we might provide a path from Trac into Allura, but there's no plan for that right now.
Originally by: nathancarter
That does help clarify, thank you!
In that same spirit, please allow me to explain my three options and let me know if I understand them correctly.
Thank you for helping us make an informed plan!
Yep, you've got it. Unfortunately there isn't SVN (or git) integration with Trac when Trac is installed on project web space. I don't know offhand if that will be made available or not.
Originally by: *anonymous
So the path forward seems to be this:
That's how I'll proceed. Thanks again!
Diff:
Related
Tickets:
#4186Tickets:
#6139Diff:
Related
Tickets:
#3154Tickets:
#6139Diff:
Related
Tickets:
#3154Tickets:
#6139Diff:
Related
Tickets:
#3154Tickets:
#6139Created:
Related
Tickets:
#4213Closed #344.
je/42cc_4213
Closed #345.
je/42cc_4213
Originally by: nathancarter
I'm excited to see progress on this ticket! Thanks, Igor!
To be sure I understand what's happening: (1) We've already got a Trac export method described in the link in the description of this ticket. (2) Once you're done with #344-#347, we'll have an automated process for pulling that extracted stuff into Allura (YAY!). (3) Therefore we can be totally done with Trac and switch to Allura, which has the scm integration (both svn and git) that Trac wouldn't have if it were installed in project web space.
In other words, as soon as you do #346 and #347, we have a path to upgrade Trac projects to Allura ASAP. Have I understood this correctly? (If so, allow me to say yay once again!)
Yep, that's right.
In fact, most of this work is improvements to the process, and the basic process works already.
Originally by: nathancarter
Great, thank you!
Originally by: nathancarter
OK I've done the trac export and am ready to move on to allura_import.py. I'm to the point where I need an API key. But Googling around doesn't seem to tell me where I go about requesting one. Can you tell me how to start that process?
Hello Nathan, please log support ticket for this, make sure to indicate the project this is for, and mark the ticket as private. I'll generate a key for you and post the info there.
Originally by: nathancarter
Done. Thank you!
Originally by: nathancarter
Running allura_import.py in --validate mode completes, and the only warnings are about usernames, and it's just a handful. I plan to fix them manually after the real import.
So I proceed to do the real import (exact same command without the --validate) and I get a 403 Forbidden, with the only text of the page being, "We're sorry but we weren't able to process this request." Not sure what to do next because that's not very informative...
Any tips? Sorry to be a pest here.
Closed #346.
je/42cc_4213