Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gjUFA-0003Bd-Gw for pgsql-www@arkaria.postgresql.org; Tue, 15 Jan 2019 19:19:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gjUF9-0002Pw-9T for pgsql-www@arkaria.postgresql.org; Tue, 15 Jan 2019 19:19:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gjUF9-0002Pp-3i for pgsql-www@lists.postgresql.org; Tue, 15 Jan 2019 19:19:23 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gjUF6-0004EA-FB; Tue, 15 Jan 2019 19:19:22 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 089D41808; Tue, 15 Jan 2019 14:19:17 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Tue, 15 Jan 2019 14:19:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=8ItWjXFgvcVYt5wGCkV6Pxa60b/ 2Z4uaaXs9rJT3AZc=; b=J7zzWXMh/83RicBjyaAINWaQ9ZpL8twR8ub4BUvQoFc f+u6oELiIuurqxNOBfZDAW2xYWBuZRcPicWymWKS2T2FK8wo909N7Wr2cJzO79iE D3oKjr4LOsHGfpWesILzWtvWraeG8lnB1sSI+3WuAP7tYLikamE3mN2Yj479somm IiK938B1qZ7JWLrOrH0ETJwL2t9HBdcNzCo4+MYKInNKqhT0u7f0OCTQNRVXQvL1 ad0Shu/obG9eTTypMKgeaUh19yZ6CASeNzAQEjXzyJKoNJWITCvYyMFNRpS8Uctb 9oT2kygQIwvCLWAJwZrsIeo8F4sAA9lR5BZ4Co9yFAw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=8ItWjX FgvcVYt5wGCkV6Pxa60b/2Z4uaaXs9rJT3AZc=; b=BbftlvhG83ZMkMzXmqs5b8 dF6gZvEfyDX1YayRHS/X+WZqk8fQuL1p4pnRcP7OtcZ4f5arrd285kLuXLEaumZh ovdwVDPpYu9rSrDMjuzSqlrRbprgCJ2yQuNHbnLCRpX0DFHyQgcvmuL/ntH41jDy VckYGI0rZioDfwH02H0wx+5pIi/Qi+0mWwFLaNFv1fMbEnQklXGJYSb8mf99PVaA nF4RuFgiJmrB0yXZ3eDYgVO9BVRSgCII6CoNNWtxAvWjGtovV0MDaMURovJH53w4 oPoNHv0ddYSB4f4iiHhCAUjHfWHXQDGtq71yS3lEt/Lav5IODVudNp28FfACApMg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledrgeefgdduvddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfquhhtnecuuegrihhlohhuthemucef tddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpeffhffvuffkfh ggtggujgesthdtredttddtvdenucfhrhhomheptehnughrvghsucfhrhgvuhhnugcuoegr nhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuffhomhgrihhnpehpohhsthhgrhdrvg hspdhpohhsthhgrhgvshhqlhdrohhrghenucfkphepleekrddvuddtrddugedtrddujedu necurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvshesrghnrghrrgiivghlrdguvg enucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from intern.anarazel.de (c-98-210-140-171.hsd1.ca.comcast.net [98.210.140.171]) by mail.messagingengine.com (Postfix) with ESMTPA id C049BE4043; Tue, 15 Jan 2019 14:19:16 -0500 (EST) Date: Tue, 15 Jan 2019 11:19:15 -0800 From: Andres Freund To: Magnus Hagander Cc: "Jonathan S. Katz" , PostgreSQL WWW Subject: Re: mailing list redirect for bug numbers? Message-ID: <20190115191915.eavj4i4mmf5wmoaf@alap3.anarazel.de> References: <20190114221809.eymqah36d6uq5nir@alap3.anarazel.de> <9cfc2880-0623-7cc3-45f4-342c3af881fe@postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2019-01-15 11:57:21 +0100, Magnus Hagander wrote: > On Tue, Jan 15, 2019 at 11:43 AM Jonathan S. Katz > wrote: > > > Hi Andres, > > > > On 1/14/19 5:18 PM, Andres Freund wrote: > > > Hi, > > > > > > How hard would it be to have a redirect similar to > > > https://www.postgresql.org/message-id/ > > > > > > that accepted bug numbers instead of message ids? I don't know the > > > precise database schema of the archives, but I assume it could be done > > > with a prefix query that filters the sender to @postgresql.org, the list > > > to pgsql-bugs, and the prefix to "BUG #" or such. > > > > The bug ID numbers are generated from pgweb using: > > > > SELECT nextval('bug_id_seq') > > > > And then prefixed to the email thread as per the above. > > > > Worth noticing is that it's also prefixed to the message-id, but that's a > fairly new thing. So we can't rely on that for reconstructing the historic mapping... > > > It'd be neat to link to bugs from commit messages in a clearer format > > > (i.e. to the bug number, rather than it being one of potentially > > > multiple message ids), and it also makes manual lookup nicer. > > > > Agreed, that sounds like a nicer UX. > > > > The only big catch I see is that if someone emails -bugs directly, no > > number is assigned, so we would have to leave that be. > > Yeah, those would be entirely out of scope. Agreed. I previously wished there were an email based interface to submitting a bug, but that'd just be that, a new interface for submitting a bug. > I don't know if we would want to use "/message-id/" as the parent URL, > > just in case someone sent a message with an ID of just digits (for > > whatever reason). Dare I suggest something like "/bugs//? > > > > Or would we perhaps want tp use the postgr.es urls-shorterner with just a > /b/ (like we have /m/ for messageids)? Both? postgr.es/b/ redirects to the /bugs/ address, similar to /m/ redirecting to /message-id/? > > - Adjust the message import script to parse inbound messages with above > > message beginning to -bugs. Determine if it is the first message to the > > thread / bug ID is already registered. If it does not exist, record the > > bug ID, message ID combo in a new table > > > > That would suddenly put a very hard coded assumption into the archives code > about this format, which I think is a bad idea in general since the > archives code is not specific to the pgsql list usage *at all* today.... Couldn't the bug form instead just insert the message id it got from the email it sent into the mapping database? That ought to be pretty easy, and would make the redirect dirt-cheap. And reconstructing the historic mapping shouldn't be more than one or two slow queries over the archive. Greetings, Andres Freund