Until now, error was raised from postgres insert. Now is user's existence checked before running insert.
Fixes: https://pagure.io/koji/issue/1163
:thumbsup:
This will still fail if owner is a valid user name. The following code assumes an integer. We need to grab the id from that get_user call.
1 new commit added
convert username to user_id
updated
fix test for numeric user_id
Metadata Update from @tkopecek: - Pull-request tagged with: testing-ready
Metadata Update from @jcupova: - Pull-request tagged with: testing-done
Commit ea082d30 fixes this pull-request
Pull-Request has been merged by mikem
Until now, error was raised from postgres insert. Now is user's
existence checked before running insert.
Fixes: https://pagure.io/koji/issue/1163