bug-gnats
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Changing priorities


From: Robert Lupton the Good
Subject: RE: Changing priorities
Date: Fri, 21 Sep 2001 15:37:21 -0400

Yngve Svendsen writes:
 > At 13:55 21.09.2001 -0400, George Nawfal wrote:
 > >You can do that by changing Priority values in the source code, recompile
 > >the code then reinstall gnats.
 > 
 > Yes, that is indeed the only way to do it in GNATS 3. In GNATS 4, 
 > absolutely everything having to do with fields is configurable (names, 
 > allowed values, on-change actions etc.).


There is one workaround that I know of.  If you aren't using the
submitters-id field you can subvert it in gnatsweb-site.pl:

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
sub site_callback {
    my($reason, @args) = @_;

    if ($reason eq 'initialize')
    {
        # Submitter-Id:
        # Ensure that
        #   "unknown" is the default (only needed if !$SENDEXCLUDE)
        # and that
        #   it's treated as an ENUM, and cannot be set when the PR's submitted
        #
        @submitter_id = grep(!/unknown|all/, @submitter_id);
        unshift(@submitter_id, "unknown"); # the default must go first
        unshift(@submitter_id, ""); # it'll be popped
        
        $fieldnames{'Submitter-Id'} =  $ENUM | $SENDEXCLUDE;
        $fieldnames{'Submitter-Id'} |= $REASONCHANGE | $AUDITINCLUDE;
   }
}
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Then modify the "submitters" file
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
unknown:The Unknown Submitter:none:-1:gnats-admin:
#
# Overload submitter ID with when we're going to address a PR
#
#unknown:Unknown Priority::::
approved:Approved Priority::::
longTerm:LongTerm Priority::::
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


The only remaining problem is that gnatsweb still calls the field
"Submitter-ID".  If Yngve will accept it, I'm happy to provide a
patch to enable that to be configured in the site.pl file too.

Still, gnats-4 is the real way to go.




                                        R



reply via email to

[Prev in Thread] Current Thread [Next in Thread]