public inbox for gnats-devel@sourceware.org
 help / color / mirror / Atom feed
From: Phil Edwards <pedwards@disaster.jaj.com>
To: gnats-devel@sources.redhat.com
Subject: disallowing intial high-priority PRs
Date: Wed, 20 Jun 2001 11:18:00 -0000	[thread overview]
Message-ID: <20010620130144.A2177@disaster.jaj.com> (raw)

I've been informally requested to look into disallowing random anonymous
submitters from sending in PRs with the priority set to 'high'.  There's a
local policy that only the project maintainers have authority to set 'high'
priority (and thus steering the actions of a lot of people), and an annoying
number of the PRs showing up are from well-meaning people who feel their
specific problem is really really important.  (It is to /them/ but...)

Anyhow, I spewed out this hack.  Am I headed in the right direction?
(The problem with testing it is that the only gnatsd server available to
me is the one I'd eventually be modifying, i.e., no spare servers.)

Diff'd against stock 3.113 sources.


--- pr.c.orig	Tue Mar  2 19:18:54 1999
+++ pr.c	Wed Feb 28 16:37:48 2001
@@ -747,6 +747,16 @@
 	  if (verify_enum (i, pr[i].value, token))
 	    found = TRUE;
 
+          /* This hack prohibits random net submitters from submitting
+             a high-priority PR; the idea is that maintainers should be
+             the only ones permitted to raise priority to high.
+             This should be more configurable. */
+          if (found == TRUE && (!strcmp(pr[i].name,PRIORITY_STRING))
+                            && (!strcmp(pr[i].value,"high"))
+                            && (!strcmp(field_value(SUBMITTER),
+                                        pr[SUBMITTER].default_value)))
+            found = FALSE;
+
 	  if (found == FALSE)
 	    {
 	      if (check)



Any comments, flames, and suggestions would be highly appreciated.
Thanks for your time,

Phil

-- 
pedwards at disaster dot jaj dot com  |  pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools.  Fools are protected by more capable fools.

             reply	other threads:[~2001-06-20 11:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-20 11:18 Phil Edwards [this message]
2001-06-24 11:26 ` Milan Zamazal
2001-06-25  9:17   ` Phil Edwards
2001-06-26 14:30     ` Milan Zamazal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010620130144.A2177@disaster.jaj.com \
    --to=pedwards@disaster.jaj.com \
    --cc=gnats-devel@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).