4408: When creating a new review request make arbitrary field required
- NotABug
- Review Board
volo.zyko | |
What version are you running?
2.0.20
Describe the enhancement and the motivation for it.
In our project people always forget to specify mercurial branch from which they create a patch. In other projects other fields can be important.
Also, very few of us use RBT, as its command line interface is a bit complicated. So, in this ticket I mean manual patch upload.
What operating system are you using? What browser?
Linux/MacOS. Chrome/Firefox.
BTW, adding
is_required = True
toBranchField
in reviewboard/reviews/builtin_fields.py didn't help. So, what else should we change.
This would be better done as an extension as that field will not be checked.
You can set up a
SignalHook
that will listen for thereviewboard.reviews.signals.review_request_publishing
signal and throw areviewboard.reviews.errors.PublishError
if the branch field is not filled out.You can look at this guide on extending Review Board for help on writing extensions.
-
- New + NotABug