So basically, I'm in the middle of a data migration as well as an
upgrade.
I'm trying to find the best way to migrate the old data to the new. My
assumption that I'm operating with is that
the customizations are forcing me to migrate the data just like I
would if I were coming from a different bug tracking application.
I don't think I like the idea of dumping MySQL to XML. That is a table-
centric dump. I'd rather have a MR-centric dump of XML data.
I'm currently considering dumping the bugs to CSV and translating them
to XML for a subsequent XSLT transformation to XML and then import.
Main Question:
But I can't help but wonder: Isn't there a way to dump ALL of my 2.20
bugs into an XML file? I'm thinking about the same format that I see
when I append "&ctype=xml" to a bug's URL. But that's only one bug.
Thanks
dj
> But I can't help but wonder: Isn't there a way to dump ALL of my 2.20
> bugs into an XML file? I'm thinking about the same format that I see
> when I append "&ctype=xml" to a bug's URL. But that's only one bug.
If you remove all customizations, what prevents you from upgrading using
the usual way, i.e running ./checksetup.pl?
About having all bugs in XML format, you can do a query which returns
all bugs (may be a large list, though) and then you have to hack the URL
a bit (if you were using Bugzilla 2.22 or newer, no hack would be
required, all you would need is to click the "XML" button at the end of
the list):
1) at the end of the list, click the "Long format" button. This will
display all bugs in HTML.
2) Hack the URL (e.g. using the 'UrlParams' Firefox extension): remove
the format=multiple attribute and add ctype=xml. This will give you what
you want.
I'm not saying that's the best way to do it. Maybe someone else has a
better alternative. :)
When you have the list in the XML format, save it into a file and use
importxml.pl in Bugzilla 3.0 to import all your data in your new DB. But
still, doing a normal upgrade using checksetup.pl is still the best way
to go.
LpSolit
WRT why I didn't upgrade normally since I'm dropping the
customizations...
I'm testing the migration on my own linux box and I'm having troubles
loading the 2.20 sql dump into a clean db.
The mysql error messages weren't helpful so I though I'd back up and
try another way. (Sometimes you
never know how close you are to success before deciding to try another
way :) )
Thanks!
If this does not work on 2.18, is there any way of exporting all test cases
from 2.18 so I can import into 3.0? I have DB issues that do prevent me
from upgrading the standard way.
Thanks!
Joe
LpSolit
_______________________________________________
support-bugzilla mailing list
support-...@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put support-...@lists.mozilla.org in the To: field when you
reply.
1) Installed the UrlParams' Firefox extension; restarted Firefox
2) Created a search report in bugzilla
3) selected "Long Format"
4) In Firefox selected View->Sidebar->UrlParams
5) Unchecked the checkbox next to "Format"
6) Scrolled down to bottom of UrlParms; entered "ctype" in first empty
text box, then entered "xml" in the next empty text box.
This doesn't work?
-dj
The url looks something like: show_bug.cgi?bug_id=1&bug_id=2&ctype=xml
Buglist cheats by turning all of these individual bugs into hidden form
fields so it can be passed on a POST.
Greg