Re: Fork a 119MB pagure project to updating monitoring?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 10, 2019 at 02:45:48PM +0200, Robert-André Mauchin wrote:
> On Wednesday, 10 April 2019 11:04:11 CEST Pierre-Yves Chibon wrote:
> > On Mon, Mar 25, 2019 at 02:55:23PM -0500, Richard Shaw wrote:
> > 
> > >    Other than having it as a direct option in [1]src.fp.org I think being
> > >    part of a special file in git would be next best.
> > 
> > 
> > In the recent releases pagure grew the possibility to have 3rd party
> > extensions
>  with their own URL endpoints and able to extend the current
> > database model to store extra information.
> > 
> > I've spent a little time using this feature to gain back support in pagure's
> > UI
>  to toggle the monitoring status.
> > 
> > Here is a small demo of how it looks like:
> > http://ambre.pingoured.fr/public/Screencast_pagure_distgit_anitya.webm
> > 
> > Basically, there would now be a button on the sidebar which would show the
> > current monitoring status and would allow project admins and pagure wide
> > admins
>  to update this setting.
> > 
> > Feedback most welcome :)
> > 
> > I'm going to clean up the code a little bit and open a PR on the
> > pagure-dist-git
>  project, reviews and suggestions welcome there as well.
> > 
> > 
> 
> Nice! But could it also come with an API endpoint to do this programatically?
> Like if I want to switch all my monitoring at once in a Python script.

That's how the button works, it calls on to the API endpoint, which is the one
of the tab you can see in the demo :)
The only thing is figuring out the discoverability of that this API endpoint
since it's not part of pagure itself.
For the moment it may end up being in the upstream doc only, I'll see if I can
find something better.


Pierre
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux