openSUSE / open-build-service

Build and distribute Linux packages from sources in an automatic, consistent and reproducible way #obs
https://openbuildservice.org
GNU General Public License v2.0
922 stars 437 forks source link

Allow renaming of package files #4886

Open Ana06 opened 6 years ago

Ana06 commented 6 years ago

I think it is currently not possible to rename a file. You have to remove it and create it again with another name. It would be nice to be able to allow to rename the file instead.

I am not sure where this should be added, in the package/view_file page? :thinking:

bgeuken commented 6 years ago

I would make it so that one can double click on the package name column on the package show page. That would change the field to an input box and then a user can rename it.

The package view_file page would also be an option. But for some files, eg. archives, we currently provide such a view. We could change that of course but then we would have a pretty empty view file page for archives and alike. And using the view file page for file renaming would require much more clicks.

ChrisBr commented 6 years ago

This probably needs first support in the backend, otherwise we have to do the same in the frontend "behind the scenes" (delete and recreate file). @mlschroe @adrianschroeter is this something we could support in the backend?

ChrisBr commented 6 years ago

image

GitHub btw does it on the file edit page and I like this approach.