-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Moving issues across repositories #453
Comments
Would cloning the issue over to the new repo and then closing the new one suffice? (given that it's just a button-click away) |
I'm not sure to see what you mean, but I see multiple ways to implement it:
Note that I did not dig in the implementation details of Gitea, my solutions are mostly based on assumptions so I may not see all implications of their implementation. My personal favorite is the third, but the first one would be sufficient for me. EDIT: I just though, sometimes we also need to "cherry pick" issues from another repository without deleting the original. For example, when forking a project, we sometimes need to get issues from the parent. This is well demonstrated with gogs and gitea, where gitea ends up with issues containing only a link to the gogs one. It would be nice if we could also "copy" an issue from another repository (related or not). I still have to think a little more on how to make all of this work together though, I will report back my ideas once it gets clearer in my mind. |
Finally, here is how I would see it:
Of course, this is only a draft to expose my ideas and is widely open to discussion |
Sounds like a useful feature, but I would put only the additional actions into a drop down, close should stay as it is |
I do not have any problem with it, let's let the close button as it is. Otherwise, does it look good to you? Is the third point technically possible? I guessed some implementation details when thinking about it... |
Could use this as a reference :) https://about.gitlab.com/2016/04/20/feature-highlight-move-issues/ |
Any update on this feature? |
Nobody are working on this. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
This would be a great feature. I just created a pile of issues under the wrong project and don't relish copy-pasting them one by one. |
This seems to be closely related (a duplicate?) of #2991 |
We have a triage project where we work on misc issues. |
Idear: copy issue; close orig; move comments on orig(they are moved); setup a redirect to new location This schould prevent links from breaking and you have a nice redirect. eafen links to issuecomment schould be aave if we move them rather than copy-them |
I ran into a situation where I needed to merge two repos into a new unified one, including transferring all issues/projects. I ended up doing this with a few SQL queries. First I forked one of the original repos and got the The first query changes the
The next two queries update the issue counts in the new repo. I'm sure you could inject another query in here to count the number of total/closed issues but I just read the numbers from the web interface and entered them manually.
The last query changes the
Keep in mind that this process will remove these issues and projects from their original repo. This might not be a perfect solution but hopefully somebody finds it useful. Edit: Turns out that I also needed to update the
|
Our organisation would really benefit if it was possible to copy or move issues to other repository. |
This feature would be very much appreciated! |
Likewise would be appreciated as we find issues are generally logged in an adhoc manner by users at the organisation level, and then later identified by devs as belonging with a particular component in its own repo. |
When moving an issue, the index will be changed and old index will be dropped. |
Current approach is manually create, copy-paste, and then close old issue - so any improvement on that workflow would be useful to us. |
If one uses @besworks' SQL queries above (thank you @besworks !), please note there are a few others to run to keep your gitea stable. Pitifully, I have not written all here. From what I remember:
As gitea database may evolve between the date of this post and the date where you will try this manual migration, I recommend that you export from your current database all tables' definitions (i.e. without data) and that you look for the keyword |
this function is very useful why always been cancel ? |
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This is a to-do list to implement it.
|
This comment was marked as duplicate.
This comment was marked as duplicate.
This feature would also help a lot when synchronising gitea issues with tickets from another source (like GLPI for example) as user's often make errors when assigning tickets to projects or applications. |
there is a constructive discussion on this ongoing here too: https://codeberg.org/forgejo/forgejo/issues/1280 (in best case collaboration instead of double work) 🙏 |
I have given the todo list in #453 (comment) maybe we can improve it together. |
copy issue; close orig; move comments on orig(they are moved); setup a redirect to new location
Gitea is great for small projects, but some features are missing for (very?) big projects, Atom being the perfect example of what I am meaning. With this kind of huge project, some issues arise. I'm dividing those issues in multiple bug reports for easy tracking.
One of those issues is that it is sometimes hard to guess the exact origin of a bug. One may report a bug in the wrong component, or not know where the bug exactly comes from. In the prototyping stage, it may even happen that features move from one repository to another, requiring to move associated bugs with them (I got the case). This currently require closing and copy-pasting bugs, which is counter productive and makes bug tracking harder.
Being able to move bugs across repositories would greatly ease the development of such big project.
Note: on move create a redirect ... so kinda add issue type redirect and let rest stay as is. create new issue in new repo and Copy issue. second change direct referenced content (comments...)
The text was updated successfully, but these errors were encountered: