Tiny improvement for Jira - Was: Re: github OAuth authentication need ?

Sandro Tosi morph at debian.org
Tue Dec 8 10:28:41 UTC 2015


On Tue, Dec 8, 2015 at 10:09 AM, Olivier Berger
<olivier.berger at telecom-sudparis.eu> wrote:
> Hi.
>
> I've been hit by rate-limiting on puppetlabs' Jira, and made sure to
> reset credentials to the normal.
>
> In the meantime, I've added a tiny bit of exception handling to propery
> report the faulty SOAP endpoint.
>
> You'll find it in cc161f3262df50c0c0f705ac482a4e31975228f7 on the
> 'obergix-master' branch.

it must not die() but failwith()

>
> An intereting improvement, though, would be to only initialize the WSDL
> proxies for SOAP endpoints only when bugs on such trackers are actually
> processed by btspull instead of at every run. It would avoid
> authenticating unnecessarily, thus avoiding burning tokens^Wkittens for
> nothing. I've put that in my TODO, but anyone faster would be much
> welcome ;)

that's true for all the remotes, as it's done at initializatiokn time,
and they are all init'd

>
> Hope this helps,
>
> Sandro Tosi <morph at debian.org> writes:
>
>>
>>> I'd like to make the token configurable in the yaml file (and possibly
>>> document its generation) but I'm in doubt about its actuall need.
>>
>> it's not different than all the other auth methods we use in the other btses
>>
>
> --
> Olivier BERGER
> http://www-public.telecom-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8
> Ingenieur Recherche - Dept INF
> Institut Mines-Telecom, Telecom SudParis, Evry (France)



-- 
Sandro "morph" Tosi
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi
G+: https://plus.google.com/u/0/+SandroTosi



More information about the Bts-link-devel mailing list