-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ticket migrate #13
Ticket migrate #13
Conversation
b99d8fb
to
9d60fa7
Compare
it's ok not to use RST for GitHub issues comments. GitHub Issues only supports "GitHub Flavored Markdown"... No need to try to convert to RST I don't know if you saw this project https://github.com/tracboat/tracboat https://github.com/tracboat/tracboat/blob/master/src/tracboat/trac2down.py |
Another nice to have feature is trying to preserve the ID of trac tickets, at least for the main chevah/server repo For example, in chevah/server we now have about 1860 PRs already created... so IDs up to 1860 are in conflict. This will automatically enable a lot of links in the closed PR https://github.com/chevah/server/pulls?q=is%3Apr+is%3Aclosed |
Conflicts: config.py.sample
@adiroiban This is ready for review. Please look at the What is not ideal part especially, I am uncertain whether to handle attachments. needs-review |
} | ||
|
||
# GitHub repository for Trac tickets with Component not in the mapping. | ||
FALLBACK_REPOSITORY = 'server' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FALLBACK_REPOSITORY = None or FALLBACK_REPOSITORY = SkipMigration()
We can more easily exclude these repositories from the select_tickets
function. I will add a feature to skip already-submitted tickets seen in tickets_created.tsv
.
I believe this is nearing completion. Any partial run (with conditions like component being Org-wide projects are created and closed (and also saved to avoid creating duplicates). There is no sleep until the rate-limit is (nearly) hit, so most requests will happen as fast as possible in one thread. Would appreciate another review. needs-review |
This is the ticket to migrate tickets.
Fixes https://github.com/chevah/server/issues/1271 and https://github.com/chevah/server/issues/1267 .
GitHub REST Issue creation docs: https://docs.github.com/en/rest/reference/issues#create-an-issue
What is not ideal:
Tables or links to wiki do not work (not sure if we have any tables in a ticket).Attachments are not handled. We have just 7. Are they need to for Twisted?Not in this PR. Created Handle attachments if needed by Twisted Trac #14Have not tried the interaction between the automated comments and the GitHub bot changing ticket statuses/labels. Should I censor command keywords from the comments?Mentioned in Story: Perform Twisted ticket migration #16Add "incremental migration" to remember and skip tickets already posted. This allows safe re-runs, which will not double-post tickets. This should help us do a migration PR -> sftpplus.com tickets first.Mentioned in Story: Perform Twisted ticket migration #16tickets_created.tsv
inrequestNextNumber
.Formatting comparison
{{{#!rst
How to try and test the changes
reviewers: @adiroiban
Test with
DRY_RUN=True
: generate and check proposed trac -> GH URL mappings on the real repos.I could not do this because I don't have access to the
salt
repo, nor the current Trac dump.If you want, test with one or more custom Trac ticket ID conditions (preferably ones with matching GitHub ID) in the
select_tickets
method, andDRY_RUN=False
.