From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10035 invoked from network); 16 Feb 2005 18:40:43 -0000 Received: from unknown (HELO lists.gnu.org) (199.232.76.165) by sourceware.org with SMTP; 16 Feb 2005 18:40:43 -0000 Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D1UJm-0005VR-9y for listarch-gnats-devel@sources.redhat.com; Wed, 16 Feb 2005 13:54:34 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D1UGq-0004v0-8P for help-gnats@gnu.org; Wed, 16 Feb 2005 13:51:32 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D1UGf-0004oY-2n for help-gnats@gnu.org; Wed, 16 Feb 2005 13:51:25 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D1UGa-0004hz-EI for help-gnats@gnu.org; Wed, 16 Feb 2005 13:51:16 -0500 Received: from [12.38.223.195] (helo=starentnetworks.com) by monty-python.gnu.org with smtp (Exim 4.34) id 1D1Tks-00070V-AK for help-gnats@gnu.org; Wed, 16 Feb 2005 13:18:30 -0500 Received: (qmail 6121 invoked from network); 16 Feb 2005 17:47:10 -0000 Received: from ames.starentnetworks.com (12.33.235.15) by mail.starentnetworks.com with SMTP; 16 Feb 2005 17:47:10 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 content-class: urn:content-classes:message MIME-Version: 1.0 Date: Wed, 16 Feb 2005 18:40:00 -0000 Message-ID: <8A16DAD84432534FBFC19FD92B50512F0268BBDE@ames.starentnetworks.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: restricting close PR Thread-Index: AcUUNlUoVWDlP0dOSO+1YqVdd4nUCgAHDqEw From: "McFarland, Ken" To: "Jim Prowak" , Cc: Subject: RE: restricting close PR X-BeenThere: help-gnats@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion about GNU GNATS List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0823749738==" Sender: help-gnats-bounces+listarch-gnats-devel=sources.redhat.com@gnu.org Errors-To: help-gnats-bounces+listarch-gnats-devel=sources.redhat.com@gnu.org X-SW-Source: 2005-q1/txt/msg00029.txt.bz2 This is a multi-part message in MIME format. --===============0823749738== content-class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C51453.E9A0061D" This is a multi-part message in MIME format. ------_=_NextPart_001_01C51453.E9A0061D Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-length: 2210 Jim, =20 Without making perl change in gnatsweb.pl I don't think thing there is supp= ort for this today. However, you could do something like this in your dbconfig file. It's not pretty, but would probably work....but you'll need= to keep an updated list of people not allowed to close a PR in here (not= =20 a great solution) I don't to this exactly, but do change other fields base= d on certain state changes. I didn't try this, but tweaked mine a bit for= =20 this example.... I think this would work for you to block say user kmcfarla= from closing a PR. =20 fwiw =20 field "State" { builtin-name "state" description "The current state of the PR" enumerated-in-file { path "states" fields { "state" "type" "description" } key "state" default "open" } textsearch =20 on-change { # Add Audit-Trail entries when this field changes. add-audit-trail # Require that a reason be supplied when this field is edited. require-change-reason } =20 # # Change State back to its original setting for the following users are= n't allowed to Close a PR # on-change "(oldpr:State[type]=3D=3D\"open\") & (Originator=3D=3D\"kmcfa= rla\")" { =20 set-field "State" { oldpr:State } } } -----Original Message----- From: help-gnats-bounces+kmcfarland=3Dstarentnetworks.com@gnu.org [mailto:h= elp-gnats-bounces+kmcfarland=3Dstarentnetworks.com@gnu.org]On Behalf Of Jim= Prowak Sent: Wednesday, February 16, 2005 9:17 AM To: help-gnats@gnu.org Subject: restricting close PR With gnats-web, is there a way to restrict the ability to close PRs to a ce= rtain user?=20 thanks, Jim ---------------------------------------------------------------------------= ----------------- Jim Prowak Voice(= 585) 899-4306=20=20=20 National Semiconductor Fax (585) 899-4= 320=20=20=20=20 1000 Pittsford-Victor Rd. Pittsford, N.Y. 14534=20=20=20=20 jim.prowak@nsc.com ---------------------------------------------------------------------------= -----------------=20 ------_=_NextPart_001_01C51453.E9A0061D Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-length: 6029
Jim,
 
Without making perl change in gnatsweb.pl I don't think thing= there=20 is support for this today.   However, you could do something like= this=20 in your
dbconfig file.  It's not pretty, but would probably work....b= ut=20 you'll need to keep an updated list of people not allowed to close a PR in= =20 here  (not
a=20 great solution)  I don't to this exactly, but do change other fields b= ased=20 on certain state changes.  I didn't try this, but tweaked mine a = bit=20 for
this=20 example.... I think this would work for you to block say = user=20 kmcfarla from closing a PR.
 
fwiw
 
field "State" {
    builtin-name=20 "state"
    description "The current state of the=20 PR"
    enumerated-in-file=20 {
        path=20 "states"
        fields { "state" "ty= pe"=20 "description" }
        key=20 "state"
        default=20 "open"
    }
   =20 textsearch
 
    on-change=20 {
        # Add Audit-Trail entries w= hen=20 this field changes.
       =20 add-audit-trail
        # Require tha= t a=20 reason be supplied when this field is=20 edited.
       =20 require-change-reason
    }
 

  &n= bsp;=20 #
    # Change Stat= e back=20 to its original setting for the following users aren't allowed to Clos= e a=20 PR
    #
    on-change=20 "(oldpr:State[type]=3D=3D\"open\")= =20 & (Originator=3D=3D\"kmcfarla\")" {
 
         =       =20 set-field "State"=20 {
           &nbs= p;           =20 oldpr:State
          =      =20 }
    }
}

<= /DIV>
-----Original Message-----
From:=20 help-gnats-bounces+kmcfarland=3Dstarentnetworks.com@gnu.org=20 [mailto:help-gnats-bounces+kmcfarland=3Dstarentnetworks.com@gnu.org]On= Behalf=20 Of Jim Prowak
Sent: Wednesday, February 16, 2005 9:17=20 AM
To: help-gnats@gnu.org
Subject: restricting close= =20 PR


With gnats-we= b, is=20 there a way to restrict the ability to close PRs to a certain user?=20

thanks,

Jim
------------------------------------------= --------------------------------------------------
Jim=20 Prowak                   &nb= sp;=20                     &nb= sp;=20                 Voice(585) 899-43= 06=20  
National Semiconductor           &nbs= p;=20                     &nb= sp;=20    Fax (585) 899-4320    
1000 Pittsford-Victor=20 Rd.
Pittsford, N.Y. 14534  =20  
jim.prowak@nsc.com
-----------------------------------------= ---------------------------------------------------
=20
------_=_NextPart_001_01C51453.E9A0061D-- --===============0823749738== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline Content-length: 140 _______________________________________________ Help-gnats mailing list Help-gnats@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnats --===============0823749738==--