-
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
Add support for keywords migration as labels #28
Comments
The first idea is obviously to create a label per keyword... |
As suggested my @meejah in the last N&B, Twisted has likely faced some similar concern when they have decided to migrated from Trac to GitHub. |
I've tried to query those Twisted searchable metadata, but yet failed to find any issues where they would have used those keywords... In addition, as far as I can tell, search queries are not as advanced on Forgejo as on GitHub and seem to be limited to the title of the issues (not covering the description or the comment)! |
This is the repo you want, I believe: https://github.com/chevah/trac-to-github |
Please add this as another "con" for Forgejo / codeberg. |
If we were to compare with GitHub, advanced issue search queries (e.g.: with regex) and code search would indeed be a con for Gitea/Forgejo and any SaaS serving them indeed. But the main idea was to compare Gitea/Forgejo on self-hosted vs on SaaS. Never the less, this is an interesting user story to cover assuming Trac was allowing to search in comments. And I was surprised by the fact that Forgejo/Gitea search did not seem to cover it. As it turned out, this feature is available in the latest Forgejo running now on Codeberg. And not yet in our self-hosted instance in NixOS v24.05. But should be available this month in v24.11. |
Assuming we can search in comments (see above), we then could decide to dump the keywords as metadata in the description. |
Thank you @meejah: this tool is actually parsing the |
I've verified this apparent lack of "search in comments" and found out that is was caused by a broken indexer ( This being said, the migration from keywords to labels is working well enough IMHO. |
Trac tickets have a
keywords
field which are "useful for searching and report generation" about tickets related to a the same topic without having to create acomponent
or amilestone
(which may requires some privileges).As today, there are already a few fields from Track tickets which are converted in Gitea labels:
From here:
trac2gitea/importer/label.go
Lines 42 to 70 in f013209
It would make sense to use a new type of label to migrate the keywords.
Though, because of their "free" natures, their number might be quite large and generate a long list of label in Gitea, we might want to enable this feature only when requested and also propose a (default?) prefix such as
keyword/
.The text was updated successfully, but these errors were encountered: