From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/88974 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Adam_Sj=C3=B8gren?= Newsgroups: gmane.emacs.gnus.general Subject: Re: Gnus backend for GitHub/GitLab? Date: Tue, 14 Jan 2020 23:03:26 +0100 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Message-ID: <87v9pdu24x.fsf@tullinup.koldfront.dk> References: <8736ejsehi.fsf@tullinup.koldfront.dk> <87lfq9vkh0.fsf@tullinup.koldfront.dk> <87d0blspf3.fsf@dick> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="96840"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: ding@gnus.org Original-X-From: ding-owner+M37177@lists.math.uh.edu Tue Jan 14 23:04:21 2020 Return-path: Envelope-to: ding-account@m.gmane-mx.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1irUIO-000Opb-Q6 for ding-account@m.gmane-mx.org; Tue, 14 Jan 2020 23:04:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.92.3) (envelope-from ) id 1irUHs-000270-S0; Tue, 14 Jan 2020 16:03:48 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1irUHo-00024F-QZ for ding@lists.math.uh.edu; Tue, 14 Jan 2020 16:03:44 -0600 Original-Received: from quimby.gnus.org ([95.216.78.240]) by mx1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1irUHk-0003dH-Ej for ding@lists.math.uh.edu; Tue, 14 Jan 2020 16:03:44 -0600 Original-Received: from blaine.gmane.org ([195.159.176.226]) by quimby.gnus.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1irUHc-0002Mq-Hw for ding@gnus.org; Tue, 14 Jan 2020 23:03:36 +0100 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1irUHb-000LtH-JN for ding@gnus.org; Tue, 14 Jan 2020 23:03:31 +0100 X-Injected-Via-Gmane: http://gmane.org/ OpenPGP: id=476630590A231909B0A0961A49D0746121BDE416; url=https://asjo.koldfront.dk/gpg.asc Mail-Follow-Up-To: never X-Now-Playing: Cold Turkey, TTRH2 - 25 - Cold (John Lennon) X-Face: )qY&CseJ?.:=8F#^~GcSA?F=9eu'{KAFfL1C3/A&:nE?PW\i65"ba0NS)97,Q(^@xk}n4Ou rPuR#V8I(J_@~H($[ym:`K_+]*kjvW>xH5jbgLBVFGXY:(#4P>zVBklLbdL&XxL\M)%T}3S/IS9lMJ ^St'=VZBR Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:88974 Archived-At: dick writes: > It's unimportant how gitlab numbers messages. I don't understand how it is? At the very least Gnus needs the ids to get the information about each issue/comment from the API. > I've written gnus backends whose messages are keyed off non-numeric > strings. Do you have any examples online I can look at? > Gitlab merely needs to provide the parent issue id for each incoming > child comment. Then I'd write a suitable nngitlab-retrieve-headers > that spits out the parent id in the `References` header. How would you map issues and comments to article numbers? Let's say you have a project team/project as a group team.project. It has 4 issues with 4, 2, 0 and 1 comments each: issue 1 comment 1 comment 2 comment 3 comment 4 issue 2 comment 1 comment 2 issue 3 issue 4 comment 1 As far as I can see, these need to be mapped to article numbers, so Gnus can get information about max number and min number for the group, and to retrieve articles by number. How do you construct a mapping that allows new comments and issues to arrive, and keeps no state, using only the GitLab API? Best regards, Adam -- "6666 - extra evil" Adam Sjøgren asjo@koldfront.dk