Re: Allura API

2015-09-06 Thread Trevor Daniels
Phil Holmes wrote Thursday, September 03, 2015 2:38 PM

> From: "Phil Holmes" 
> Sent: Monday, August 31, 2015 4:10 PM
>
>> From: "Phil Holmes" 
>> Sent: Monday, August 31, 2015 2:26 PM
>>
>>> You might like to know that I'm investigating the Allura API to see how 
>>> we
>>> could use it for Patchy, git-cl, etc.  With any luck I'll have a demo web
>>> page up in an hour or so.
>>
>> Very quick and dirty proof of concept.  This lists all the patches with 
>> the status "Started" and finds their Rietveld URLs.  The theory works just 
>> as well with patch:new, but there were so few results it didn't 
>> demonstrate much.
>>
>> http://philholmes.net/lilypond/allura/
>
> Been doing other things recently, but this link is now updated to show 
> patch:new and to provide links to the issue tracker and the Rietveld.

At last we have a couple of patch:new issues to see!
Looks good!

Trevor
___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: Allura API

2015-09-03 Thread Phil Holmes
- Original Message - 
From: "Phil Holmes" <m...@philholmes.net>

To: <lilypond-devel@gnu.org>
Sent: Monday, August 31, 2015 4:10 PM
Subject: Re: Allura API


- Original Message - 
From: "Phil Holmes" <m...@philholmes.net>

To: <lilypond-devel@gnu.org>
Sent: Monday, August 31, 2015 2:26 PM
Subject: Allura API


You might like to know that I'm investigating the Allura API to see how 
we

could use it for Patchy, git-cl, etc.  With any luck I'll have a demo web
page up in an hour or so.


Very quick and dirty proof of concept.  This lists all the patches with 
the status "Started" and finds their Rietveld URLs.  The theory works just 
as well with patch:new, but there were so few results it didn't 
demonstrate much.


http://philholmes.net/lilypond/allura/

--
Phil Holmes



Been doing other things recently, but this link is now updated to show 
patch:new and to provide links to the issue tracker and the Rietveld.


--
Phil Holmes 



___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: Allura API

2015-08-31 Thread Phil Holmes
- Original Message - 
From: "Phil Holmes" 

To: 
Sent: Monday, August 31, 2015 2:26 PM
Subject: Allura API



You might like to know that I'm investigating the Allura API to see how we
could use it for Patchy, git-cl, etc.  With any luck I'll have a demo web
page up in an hour or so.


Very quick and dirty proof of concept.  This lists all the patches with the 
status "Started" and finds their Rietveld URLs.  The theory works just as 
well with patch:new, but there were so few results it didn't demonstrate 
much.


http://philholmes.net/lilypond/allura/

--
Phil Holmes 



___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: Allura API

2015-08-31 Thread Trevor Daniels

Phil Holmes wrote Monday, August 31, 2015 4:10 PM
>
> Very quick and dirty proof of concept.  This lists all the patches with the 
> status "Started" and finds their Rietveld URLs.  The theory works just as 
> well with patch:new, but there were so few results it didn't demonstrate 
> much.
> 
> http://philholmes.net/lilypond/allura/

Promising start, Phil!  Shows you've mastered the authentication and API 
documentation.  No mean feat.

I think you've found status:Started && _patch:review, rather than just 
status:Started, yes?
Or maybe just _patch:review.

Trevor
___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: Allura API

2015-08-31 Thread Phil Holmes
- Original Message - 
From: "Trevor Daniels" <t.dani...@treda.co.uk>

To: "Phil Holmes" <m...@philholmes.net>; <lilypond-devel@gnu.org>
Sent: Monday, August 31, 2015 4:23 PM
Subject: Re: Allura API




Phil Holmes wrote Monday, August 31, 2015 4:10 PM


Very quick and dirty proof of concept.  This lists all the patches with 
the

status "Started" and finds their Rietveld URLs.  The theory works just as
well with patch:new, but there were so few results it didn't demonstrate
much.

http://philholmes.net/lilypond/allura/


Promising start, Phil!  Shows you've mastered the authentication and API 
documentation.  No mean feat.


I think you've found status:Started && _patch:review, rather than just 
status:Started, yes?

Or maybe just _patch:review.

Trevor



No authentication needed to do this, so I've not mastered that :-(.  I meant 
what you said about the labels, but posted inaccurately.


Most difficult bit was working out how to parse JSON in c# :-o  Oh: and 
navigating the almost impenetrable documentation to the one page I found 
useful: https://sourceforge.net/p/forge/documentation/Allura%20API/


This points out that something like

https://sourceforge.net/rest/p/testlilyissues/issues/4584

returns the JSON representation of ticket 4584.

--
Phil Holmes 



___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: Allura API

2015-08-31 Thread Trevor Daniels

Phil, you wrote Monday, August 31, 2015 4:28 PM

> No authentication needed to do this, so I've not mastered that :-(.  I meant 
> what you said about the labels, but posted inaccurately.

Ah, maybe authentication is only needed for making changes.
 
> Most difficult bit was working out how to parse JSON in c# :-o  Oh: and 
> navigating the almost impenetrable documentation to the one page I found 
> useful: https://sourceforge.net/p/forge/documentation/Allura%20API/
> 
> This points out that something like
> 
> https://sourceforge.net/rest/p/testlilyissues/issues/4584
> 
> returns the JSON representation of ticket 4584.

Export provides the JSON representation of the entire DB.  I use that to change 
the original author from *anonymous to GoogleImporter before re-importing, so 
the whole world doesn't have write access.

Trevor
___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: Allura API

2015-08-31 Thread David Kastrup
Phil Holmes  writes:

> You might like to know that I'm investigating the Allura API to see
> how we could use it for Patchy, git-cl, etc.  With any luck I'll have
> a demo web page up in an hour or so.

Well, that would certainly be something rather valuable.

-- 
David Kastrup

___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel