<div dir="ltr"><div>Thanks!  Were you able to do anything to preserve existing Trac URLs?<br><br></div>Dustin<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-09-27 14:13 GMT-04:00 Ryan Schmidt <span dir="ltr"><<a href="mailto:buildbot@ryandesign.com" target="_blank">buildbot@ryandesign.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
> On Sep 27, 2016, at 12:14 PM, Dustin J. Mitchell <<a href="mailto:dustin@buildbot.net">dustin@buildbot.net</a>> wrote:<br>
><br>
> NOTE: discussion of moving off of Trac below -- we would love to hear more opinions!<br>
<br>
</span>>       • move tickets/wiki to github (djmitche, 16:46:44)<br>
<span class="">>               • pro: github PRs and trac tickets do not interlink well; using github only would take advantage of github's integration (djmitche, 17:01:08)<br>
>               • pro: github takes care of fighting spam so we don't have to (djmitche, 17:01:35)<br>
>               • pro: everyone has a github account, whereas many do not want to sign up for Trac for a small issue (djmitche, 17:02:21)<br>
>               • (regarding spam, this also prevents people from creating accounts quite frequently) (djmitche, 17:02:57)<br>
>               • pro: less infra requirements if we're not running our own Trac (djmitche, 17:03:08)<br>
>               • con: different wiki markup language, so porting wiki pages would be tricky (djmitche, 17:04:11)<br>
>               • (although pandoc would help there) (djmitche, 17:05:48)<br>
>               • <a href="https://github.com/mavam/trac-hub" rel="noreferrer" target="_blank">https://github.com/mavam/trac-<wbr>hub</a> (bdbaddog1, 17:07:23)<br>
>               • <a href="http://stackoverflow.com/questions/6671584/how-to-export-trac-to-github-issues" rel="noreferrer" target="_blank">http://stackoverflow.com/<wbr>questions/6671584/how-to-<wbr>export-trac-to-github-issues</a> (bdbaddog1, 17:07:56)<br>
>               • AGREED: interested parties will draft a plan, circulate on mailing list, and discuss in next week's meeting (djmitche, 17:12:56)<br>
<br>
</span>I can give you some perspective on this, because I've just finished converting several macOS forge projects from Trac to GitHub.<br>
<br>
For the wikis, I wrote a script to export the Trac wiki pages from the database, convert the wiki formatting to HTML (using Trac's own renderer), then to GitHub-flavored Markdown using Pandoc, then some manual cleanup. None of the existing Trac wiki formatting conversion scripts I found were usable because they did not accommodate the entire range of Trac wiki formatting possibilities.<br>
<br>
For the tickets, I wrote a script to convert everything from Trac tickets to GitHub issues, again converting the Trac formatting through HTML to GfM with Pandoc; converting Trac ticket type, priority, severity, resolution, and keywords to GitHub issue labels; and converting Trac user email addresses to GitHub usernames. This conversion is somewhat more lossy, as certain data can't be imported to GitHub issues, for example who reported the ticket, and GitHub issues does not support custom fields.<br>
<br>
I did not preserve the editing history of the wiki pages, only the current versions. In fact we decided not to use wiki pages at all on GitHub, but to convert the wiki pages to web pages hosted on GitHub Pages using Jekyll and Twitter Bootstrap. But it would have been just as easy to have them be wiki pages on GitHub.<br>
<br>
You can see the results at <a href="https://www.macosforge.org/" rel="noreferrer" target="_blank">https://www.macosforge.org/</a>, specifically the ALAC, Calendar and Contacts Server, Darwinbuild, Filesystem Tools, Grand Central Dispatch, SCAP on Apple and Smart Card Services projects.<br>
<br>
Another macOS forge project, MacPorts, decided the loss of data and functionality associated with switching to GitHub issues was too great, and that the search features of GitHub issues were too limiting, so MacPorts will be staying with Trac for issues and wiki, while still moving its source code to GitHub. This move is still in progress. MacPorts has unique issue tracker requirements, because it is a package management system containing over 10,000 packages, so it needs to be easy to find tickets that relate to a specific package, hence the need for a custom field in which to specify that, and the ability to search on it. The Buildbot project might not find these limitations to be a problem.<br>
<br>
<br>
</blockquote></div><br></div>