Fixes: releng#10394
Signed-off-by: Tomas Hrcka thrcka@redhat.com
rebased onto 0f770d5a5d239495b21885817de982af177ac7f5
if fas_username is not passed onto the request, args.get() above will return None and Non.exists will not work.
fas_username
args.get()
None
Non.exists
Could you expand on the use-case for this change?
Currently, when releng is un-retiring packages we do it using the PATCH HTTP method to set the projects main_admin. As mentioned in the issue I have linked this is causing to leave orphan_reason in the database. By updating this endpoint and releng scripts this should be fixed.
rebased onto 45bbf86e2372a38f47f6e976c67ef9359cbfe971
rebased onto 1b252696d889d734dacc341fcb8a2fb839b629fa
Ups, it should be fixed now.
Don't we want that only rel-eng and admin users are able to assign a package to others?
I started to write a separate endpoint for this, but then I stopped due to lack of time trying to make test works: https://pagure.io/fork/mattia/pagure-dist-git/c/a0d34d5160ad77dd4736b41f762713caf7736fda?branch=unretire
@mattia I have troubles with getting tests running as well, let me pick up your new endpoint and get the tests running.
Pull-Request has been closed by humaton
Fixes: releng#10394
Signed-off-by: Tomas Hrcka thrcka@redhat.com