Fixes https://pagure.io/pagure/issue/3228
Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr
This seems like the wrong fix. Instead the actual problem is the project can't be renamed, such that the old URL would redirect to the new one.
Renaming projects and moving projects in and out of groups seems to not be supported yet, and I think those are better things to do than this in most cases.
I can think of only a couple of cases where this would make sense to do instead of what I suggest above, but they are rare circumstances, in my opinion.
The main case would be if the project is archived because it's not being worked on anymore, either because development has stopped or because it has been started over in a new codebase in a new project.
Renaming project is not going to be a simple task and sometime people want to let the project be accessible but no longer want to allow interaction with it. This is what this PR hopes to achieve. Your last paragraph gives a good example of what such situation could be :)
The code is certainly fine, as-is, though.
:thumbsup:
rebased onto b597484fce9397d4e9d4436aed3a6f57aaf71fc3
Pretty please pagure-ci rebuild
Pull-Request has been merged by pingou
Fixes https://pagure.io/pagure/issue/3228
Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr