~khumba/public-inbox

3 2

RFC: using hut instead of sending emails

Details
Message ID
<D1DYXDLBKN0O.30G0T9M26Z2WE@cepl.eu>
DKIM signature
pass
Download raw message
The following changes since commit 350d5fd31d5255b71041858c6a2085d3b1d8daa8:

  Add git config for subjectPrefix to the readme. (2024-05-06 23:21:48 -0700)

are available in the Git repository at:

  https://git.cepl.eu/cgit/git/lazygl2srht 

for you to fetch changes up to 66d4ce7856cf5d54689b5a606d0f4b1d2cf2d3dc:

  feat: check existence of labels (2024-05-20 00:13:30 +0200)

----------------------------------------------------------------
Matěj Cepl (7):
      Add .gitignore.
      Bit reformatting
      refactor: it is a general delay, not just the SMTP one.
      refactor: simplify API signature
      feat: add 'hut' option to the current 'print' and 'send' ones.
      refactor: all runs of the hut cmd to special function run_hut().
      feat: check existence of labels

 .gitignore       |   1 +
 import_issues.py | 246 +++++++++++++++++++++++++++++++++++--------------------
 2 files changed, 159 insertions(+), 88 deletions(-)
 create mode 100644 .gitignore

-- 
http://matej.ceplovi.cz/blog/, @mcepl@floss.social
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
And religious texts are a bit like software standards, the
interpretation is always the tricky and complicated bit.
    -- Alan Cox
Details
Message ID
<20240520203851.13b824a8@khumba.net>
In-Reply-To
<D1DYXDLBKN0O.30G0T9M26Z2WE@cepl.eu> (view parent)
DKIM signature
pass
Download raw message
On Mon, 20 May 2024 00:18:41 +0200
Matěj Cepl <mcepl@cepl.eu> wrote:

> The following changes since commit 350d5fd31d5255b71041858c6a2085d3b1d8daa8:
> 
>   Add git config for subjectPrefix to the readme. (2024-05-06 23:21:48 -0700)
> 
> are available in the Git repository at:
> 
>   https://git.cepl.eu/cgit/git/lazygl2srht 
> 
> for you to fetch changes up to 66d4ce7856cf5d54689b5a606d0f4b1d2cf2d3dc:
> 
>   feat: check existence of labels (2024-05-20 00:13:30 +0200)

This looks really good so far.  Nothing major to comment on, I like
the direction it's going.  Thanks for cleaning the code up as you go.

This has me wondering how much work it is to talk to Gitlab's API.
Maybe that wouldn't be too hard to hook up.  Although then we would
have to drop 'lazy' from the name...

Will you add a copyright notice for yourself as part of this?

> ----------------------------------------------------------------
> Matěj Cepl (7):
>       Add .gitignore.
>       Bit reformatting
>       refactor: it is a general delay, not just the SMTP one.

I wonder whether we even need a delay between calls to hut.  If so,
maybe its delay could be much lower.  I expect that hut doesn't have
the same asynchronous issues that email does, and five seconds is
obnoxiously long.

>       refactor: simplify API signature
>       feat: add 'hut' option to the current 'print' and 'send' ones.
>       refactor: all runs of the hut cmd to special function run_hut().
>       feat: check existence of labels
> 
>  .gitignore       |   1 +
>  import_issues.py | 246 +++++++++++++++++++++++++++++++++++--------------------
>  2 files changed, 159 insertions(+), 88 deletions(-)
>  create mode 100644 .gitignore

Thanks,
Bryan
Details
Message ID
<D1F3GEEXZLS4.2E13B16T1TIU5@cepl.eu>
In-Reply-To
<20240520203851.13b824a8@khumba.net> (view parent)
DKIM signature
pass
Download raw message
On Tue May 21, 2024 at 5:38 AM CEST, Bryan Gardiner wrote:
> This has me wondering how much work it is to talk to Gitlab’s API.
> Maybe that wouldn’t be too hard to hook up.  Although then we would
> have to drop ‘lazy’ from the name...

My first priority is to get M2Crypto issue tracker up and going,
not to get ideal solution. So, I will certainly work out of the
downloaded files. Switching to GitLab API will be certainly left
as an excercise for the reader.

> Will you add a copyright notice for yourself as part of this?

Gladly.

(side note: I am an avid reader of Pride and Prejudice fanfiction
stories, and Gardiners are my beloved characters in most of them
:))

> I wonder whether we even need a delay between calls to hut.  If so,
> maybe its delay could be much lower.  I expect that hut doesn’t have
> the same asynchronous issues that email does, and five seconds is
> obnoxiously long.

I would certainly keep SOME delay (with couple of thousand API
calls for a modest repository like M2Crypto it could be quite
a DOS machine), but yes, you are right, it could be probably
a second or something.

Let’s see how it actually works (I will try later today).

Best,

Matěj

-- 
http://matej.ceplovi.cz/blog/, @mcepl@floss.social
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
The main idea of the pope’s asking for forgiveness was not to be
afraid of the truth. DO NOT BE AFRAID OF TRUTH! We have to have
faith in the God’s governing power to be able not to be afraid.
    -- On NPR The Connection from March 13, 2000
Details
Message ID
<20240601105709.7845ec83@kyouma>
In-Reply-To
<D1F3GEEXZLS4.2E13B16T1TIU5@cepl.eu> (view parent)
DKIM signature
pass
Download raw message
On Tue, 21 May 2024 08:04:16 +0200
Matěj Cepl <mcepl@cepl.eu> wrote:

> On Tue May 21, 2024 at 5:38 AM CEST, Bryan Gardiner wrote:
> > This has me wondering how much work it is to talk to Gitlab’s API.
> > Maybe that wouldn’t be too hard to hook up.  Although then we would
> > have to drop ‘lazy’ from the name...  
> 
> My first priority is to get M2Crypto issue tracker up and going,
> not to get ideal solution. So, I will certainly work out of the
> downloaded files. Switching to GitLab API will be certainly left
> as an excercise for the reader.

For sure.  I didn't mean for this to be a request.  I might try it,
but after your hut work to avoid merge conflicts.

> (side note: I am an avid reader of Pride and Prejudice fanfiction
> stories, and Gardiners are my beloved characters in most of them
> :))

Sadly I am missing out on having read Jane Austen, but thank you!

Cheers,
Bryan
Reply to thread Export thread (mbox)