This PR adds a new weblink for draft builds when another build has claimed the NVR.
Fixes https://pagure.io/koji/issue/4438
Looks good overall! Just a couple minor things
In the exception handler, you set promoted_build = None, but this is already the value that was set earlier.
promoted_build = None
The code should probably verify that the found build is indeed a non-draft one. The release value should ensure that, but better to check explicitly.
The heading in the template isn't very clear. I'd recommend using "Draft superseded by:" or similar.
1 new commit added
Fixes: https://pagure.io/koji/issue/4438
use non breaking spaces
Looks good overall! Just a couple minor things In the exception handler, you set promoted_build = None, but this is already the value that was set earlier. The code should probably verify that the found build is indeed a non-draft one. The release value should ensure that, but better to check explicitly. The heading in the template isn't very clear. I'd recommend using "Draft superseded by:" or similar.
Updated code to explicitly check draft builds and then only set promoted_build to non-null. Also updated the row header to Draft superseded by: without breaking spaces.
promoted_build
Draft superseded by:
:thumbsup:
Metadata Update from @mikem: - Pull-request tagged with: testing-basic
Metadata Update from @mfilip: - Pull-request tagged with: testing-done
Commit 4a974634 fixes this pull-request
Pull-Request has been merged by mikem
This PR adds a new weblink for draft builds when another build has claimed the NVR.
Fixes https://pagure.io/koji/issue/4438