<div dir="ltr"><div dir="ltr">On Mon, 20 Apr 2020 at 13:57, Anton Korobeynikov via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> If we are reasonably certain that no one would be opening new issues on GitHub while the migration is running...<br>
And pull requests (the numbering is common for issues and pull<br>
requests) as well. And we cannot disable pull requests at all. And I'm<br>
afraid the issues will need to be opened as well during the migration.<br>
And now the real problem: should an "extra" pull request or issue<br>
intervene in the migration there is no way to "reset" the counter<br>
besides deleting the project and creating it once again. We could only<br>
sacrifice some bugzilla issues to restore the numbering...<br></blockquote><div><br></div><div>We can edit summaries and comments, presumably by API calls as well as by the web UI. So how about this:</div><div><br></div><div>Step 1: Preallocate sufficient github issue numbers. Make a bot account and with it file empty placeholder issues until we have N issues total, where N is the number of bugzilla bugs.</div><div>Step 2: Shut down the ability to file new bugzilla bugs, double-check we have enough placeholder bugs, then open up github for new issue submissions. Change <a href="http://llvm.org/PRxxxxx">llvm.org/PRxxxxx</a> to redirect to github for xxxxx's higher than the transition point.</div><div>Step 3a: For each issue filed by the bot account, sync that bug's contents to the bugzilla entry: copy across the subject, all the comments, tags, and so on.<br></div><div>Step 3b: For each issue not filed by the bot account whose number is that of a bugzilla entry, file a new github bug and sync it with the bugzilla bug then add a tracking comment to the github bug saying what the new number is.</div><div><br></div><div>All we would need to do before we switch systems is steps 1 and 2. The data import can be done incrementally with no time constraints. Once transition is complete, we can change <a href="http://llvm.org/PRxxxxx">llvm.org/PRxxxxx</a> (and existing bugzilla links, since I'm sure they exist in the wild too) to redirect to github, and shut down our bugzilla instance.</div><div><br></div><div>If new PRs are filed during step 1, we get new "problem" issue numbers, which we deal with in the same way as the 210 existing github issue numbers.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
-- <br>
With best regards, Anton Korobeynikov<br>
Department of Statistical Modelling, Saint Petersburg State University<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div></div>