From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/88975 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: dick Newsgroups: gmane.emacs.gnus.general Subject: Re: Gnus backend for GitHub/GitLab? Date: Tue, 14 Jan 2020 17:18:35 -0500 Message-ID: <871rs1smv8.fsf@dick> References: <8736ejsehi.fsf@tullinup.koldfront.dk> <87lfq9vkh0.fsf@tullinup.koldfront.dk> <87d0blspf3.fsf@dick> <87v9pdu24x.fsf@tullinup.koldfront.dk> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="22209"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.60 (gnu/linux) To: ding@gnus.org Original-X-From: ding-owner+M37178@lists.math.uh.edu Tue Jan 14 23:19:13 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 1irUWm-0005NN-D2 for ding-account@m.gmane-mx.org; Tue, 14 Jan 2020 23:19:12 +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 1irUWa-0002IS-KR; Tue, 14 Jan 2020 16:19:00 -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 1irUWX-0002Fk-GF for ding@lists.math.uh.edu; Tue, 14 Jan 2020 16:18:57 -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 1irUWW-00076F-8L for ding@lists.math.uh.edu; Tue, 14 Jan 2020 16:18:57 -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 1irUWL-0002VP-0Z for ding@gnus.org; Tue, 14 Jan 2020 23:18:46 +0100 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1irUWK-0003x5-DY for ding@gnus.org; Tue, 14 Jan 2020 23:18:44 +0100 X-Injected-Via-Gmane: http://gmane.org/ Cancel-Lock: sha1:yDBQ9cHdzkjgUKoCMjfR1aUJe9A= List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:88975 Archived-At: AS> As far as I can see, these need to be mapped to article numbers, so Gnus AS> can get information about max number and min number for the group, and to AS> retrieve articles by number. Yes, absolutely, your backend needs to sequentially number articles (which in this context are issues/comments). But that numbering is one of your own making, not gitlab's. AS> How do you construct a mapping that allows new comments and issues to AS> arrive, and keeps no state, using only the GitLab API? I keep an array of articles (to go from our numbering to the issue/comment). And I maintain a hashtable to go from gitlab's arbitrary id to our numbering. Is there a requirement to keep no state? I need to at least persist state for .newsrc.eld to keep track of what has and hasn't been read and seen (yes, there's a difference in Gnus between "read" and "seen").