Re: Optional require-change-reason Processing
"Alexander N. Mueller" <[email protected]> Fri, 04 Nov 2005 10:06:29 +0100
| Newsgroups | gmane.comp.bug-tracking.gnats.general |
|---|---|
| Organization | MULTA MEDIO Informationssysteme AG |
| Message-ID | <[email protected]> |
Edward E. Jaffe wrote:
> I can't seem to figure out how to implement optional
> require-change-reason processing. For example, we do not wish to force
> this processing for certain values of "Responsible". Ideally, I would
> like to implement something like:
>
> on-change "oldpr:Responsible !=\"unassigned\"" {
> require-change-reason
> }
>
> I've tried some simple tests like:
>
> on-change "Responsible ==\"edjaffe\"" {
> require-change-reason
> }
>
> No matter what expression I code, GnatsWeb ignores the expression and
> forces the change reason to be entered. I've bypassed that code in
> gnatsweb.pl just to see how gnatsd will react to the PR edit with or
> without the reason. Gnatsd seems to update the PR without complaint no
> matter what the Responsible value. This leads me to think gnatsd doesn't
> care about change reasons and expects the apps themselves to do the
> enforcement. And I can't see how my on-change expression influences
> GnatsWeb to decide whether to require the field.
>
> Is what I want to do possible? If so, what am I doing wrong? Any help
> appreciated...
Hi Edward,
there is a PR for this in the gnats bug database (#491).
I've submitted this PR in Feb 2005.
Cheers,
Alexander N. Mueller