chicken-janitors
[Top][All Lists]
Advanced

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

[Chicken-janitors] Re: #236: extend "list" command for henrietta CGI


From: Chicken Trac
Subject: [Chicken-janitors] Re: #236: extend "list" command for henrietta CGI
Date: Mon, 17 May 2010 20:09:33 -0000

#236: extend "list" command for henrietta CGI
----------------------------+-----------------------------------------------
 Reporter:  felix           |       Owner:     
     Type:  enhancement     |      Status:  new
 Priority:  minor           |   Milestone:     
Component:  infrastructure  |     Version:     
 Keywords:  henrietta       |  
----------------------------+-----------------------------------------------

Comment(by mario):

 Here's a suggestion for the henrietta API:

 Have an {{{action}}} query string variable which could assume the
 following values: {{{list}}}, {{{meta}}}, {{{version}}} and {{{versions}}}

 So we could have requests like (the first three examples consider
 compatibility with the current henrietta):

 {{{
 http://server/henrietta?name=<name>
 }}}

 Return the files for the latest version of egg {{{<name>}}}

 {{{
 http://server/henrietta?name=<name>&version=<version>
 }}}

 Return the files for the version {{{<version>}}} of egg {{{<name>}}}


 {{{
 http://server/henrietta?action=list

 or

 http://server/henrietta?list=1 (for backward compatibility)
 }}}

 List the egg names

 {{{
 http://server/henrietta?name=<name>&action=versions
 }}}

 Return a list of the available versions for egg {{{<name>}}} (most recent
 versions first).

 {{{
 http://server/henrieta?action=versions
 }}}

 Return a text response in the following format (one egg per line):

 {{{
 egg1 versionN versionN-1 ... version0
 egg2 versionN versionN-1 ... version0
 ...
 eggN versionN versionN-1 ... version0
 }}}

 where {{{versionN}}} is the latest version and {{{version0}}} is the
 oldest version in the eggs repo.


 {{{
 http://server/henrietta?name=<name>&action=meta
 }}}

 Return the meta file for the latest version of egg {{{<name>}}}

 {{{
 http://server/henrietta?name=<name>&action=meta&version=<version>
 }}}

 Return the meta file for version {{{<version>}}} of egg {{{<name>}}}


 {{{
 http://server/henrietta?action=meta
 }}}

 Return all the meta files for the most recent egg versions.  (Is it
 feasible?)

 On the current repo for release 4, we have

 {{{
 $ find -name "*.meta" | grep trunk | xargs du -csh
 ...
 796K    total
 }}}

 That's just a quick measurement.  Some eggs don't use the trunk/tags
 layout and the meta file should be picked from the latest tag directory,
 but that gives an idea about the size of the response.

 Maybe that's too overengineered...

-- 
Ticket URL: <http://www.irp.oist.jp/trac/chicken/ticket/236#comment:1>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]