-
Notifications
You must be signed in to change notification settings - Fork 5
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
Preserve Trac comment numbers #7
Comments
ok, makes sense. |
If we create links to trac in the converted issues and comments, then those links will be broken when trac is stopped someday. Is this okay? |
the idea is to either rewrite these links, or keep a readonly copy of trac around |
Why create new links to trac if we rewrite them after migration? I think it makes sense to embed the original comment number in the migrated comment but embedding a link to the original comment does not (if trac goes down someday) |
Separate from the question whether we want to display the trac links: I think we need to keep a mapping (ticket_number, comment_number) -> issue_comment.url so that we can rewrite Trac links to specific comments |
Yes. |
After ticket-to-issue migration, would the issues (and comments therein) be editable? If yes, who will have the write permission? The original author? |
Yes, the original author of the issue or comment -- if we have a github account for them on file. |
Perhaps we can use markdown anchors in the issue comments. Here we refer to the next comment - comment 4711 using |
I'm writing these anchors out in 23a993f. Example: https://github.com/sagemath/trac_to_gh/blob/main/Issues-26xxx/26855.md#comment:5 Help welcome with rewriting links in "Replying to [comment:18 jdemeyer]:" etc. to markdown |
This is working well, thank you! |
Fixed by #45 |
Currently the script converts Trac comments to GH Issue comments with a header like this:
(sagemath/trac_to_gh#26 (comment))
It would be good to preserve the comment number, for the benefit of external links pointing to specific comments.
For example, we could just include the full original URL:
Likewise, the script should show the original Trac URL of the ticket.
The text was updated successfully, but these errors were encountered: