summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-webteam/2011-March/000433.html
diff options
context:
space:
mode:
Diffstat (limited to 'zarb-ml/mageia-webteam/2011-March/000433.html')
-rw-r--r--zarb-ml/mageia-webteam/2011-March/000433.html251
1 files changed, 251 insertions, 0 deletions
diff --git a/zarb-ml/mageia-webteam/2011-March/000433.html b/zarb-ml/mageia-webteam/2011-March/000433.html
new file mode 100644
index 000000000..fb90d1953
--- /dev/null
+++ b/zarb-ml/mageia-webteam/2011-March/000433.html
@@ -0,0 +1,251 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [Mageia-webteam] Proposal for maintainers database API
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <LINK REL="made" HREF="mailto:mageia-webteam%40mageia.org?Subject=Re%3A%20%5BMageia-webteam%5D%20Proposal%20for%20maintainers%20database%20API&In-Reply-To=%3CAANLkTik7CWDvcRtXo1k%2BJwvULB5Mmbor8J-O58d3AMM8%40mail.gmail.com%3E">
+ <META NAME="robots" CONTENT="index,nofollow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ <LINK REL="Previous" HREF="000432.html">
+ <LINK REL="Next" HREF="000434.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[Mageia-webteam] Proposal for maintainers database API</H1>
+ <B>Kosmas Chatzimichalis</B>
+ <A HREF="mailto:mageia-webteam%40mageia.org?Subject=Re%3A%20%5BMageia-webteam%5D%20Proposal%20for%20maintainers%20database%20API&In-Reply-To=%3CAANLkTik7CWDvcRtXo1k%2BJwvULB5Mmbor8J-O58d3AMM8%40mail.gmail.com%3E"
+ TITLE="[Mageia-webteam] Proposal for maintainers database API">Kosmas at mach7x.com
+ </A><BR>
+ <I>Tue Mar 8 11:04:08 CET 2011</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="000432.html">[Mageia-webteam] Proposal for maintainers database API
+</A></li>
+ <LI>Next message: <A HREF="000434.html">[Mageia-webteam] Proposal for maintainers database API
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#433">[ date ]</a>
+ <a href="thread.html#433">[ thread ]</a>
+ <a href="subject.html#433">[ subject ]</a>
+ <a href="author.html#433">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>On 8 March 2011 08:48, Michael Scherer &lt;<A HREF="https://www.mageia.org/mailman/listinfo/mageia-webteam">misc at zarb.org</A>&gt; wrote:
+
+&gt;<i> Le mardi 08 mars 2011 &#224; 03:53 +0100, nicolas vigier a &#233;crit :
+</I>&gt;<i> &gt; Here is a proposal for an API that can be used on the maintainers
+</I>&gt;<i> &gt; database, with the list of URLs and what they should do :
+</I>&gt;<i> &gt;
+</I>&gt;<i> &gt; ***
+</I>&gt;<i> &gt; An html page with the list of all packages, and their maintainer :
+</I>&gt;<i> &gt; <A HREF="http://maintdb.mageia.org/packages.html">http://maintdb.mageia.org/packages.html</A>
+</I>&gt;<i> &gt; As we have many packages, the page will be long, so maybe we want to
+</I>&gt;<i> &gt; split the list by first letter of package name :
+</I>&gt;<i> &gt; <A HREF="http://maintdb.mageia.org/packages_a.html">http://maintdb.mageia.org/packages_a.html</A>
+</I>&gt;<i> &gt; <A HREF="http://maintdb.mageia.org/packages_b.html">http://maintdb.mageia.org/packages_b.html</A>
+</I>&gt;<i> &gt; <A HREF="http://maintdb.mageia.org/packages_c.html">http://maintdb.mageia.org/packages_c.html</A>
+</I>&gt;<i>
+</I>&gt;<i> Hi,
+</I>&gt;<i>
+</I>&gt;<i> Thee is other paging system in rails and similar framework, no need to
+</I>&gt;<i> specify this ( and I also think this is not part of a API ).
+</I>&gt;<i>
+</I>
+
+ Indeed that is the case, so we can have a paging system, with no need for
+different pages.
+ If on the other hand we want to split them by the first letter, again that
+is possible.
+ So we could try with the simple paging system and if people find it more
+useful to have them split by name, we can do that later on.
+
+
+&gt;<i>
+</I>&gt;<i> &gt; The list of all packages and their maintainers, in text format :
+</I>&gt;<i> &gt; <A HREF="http://maintdb.mageia.org/packages.txt">http://maintdb.mageia.org/packages.txt</A>
+</I>&gt;<i> &gt; With the output like this :
+</I>&gt;<i> &gt; package1:maintainerlogin1
+</I>&gt;<i> &gt; package2:maintainerlogin2
+</I>&gt;<i> &gt; package3:maintainerlogin3
+</I>&gt;<i> &gt; ...
+</I>&gt;<i> &gt;
+</I>&gt;<i> &gt; ***
+</I>&gt;<i> &gt; An html page to show the maintainer of one package (with
+</I>&gt;<i> &gt; [packagename] replaced with the name of a package) :
+</I>&gt;<i> &gt; <A HREF="http://maintdb.mageia.org/packages/[packagename">http://maintdb.mageia.org/packages/[packagename</A>].html
+</I>&gt;<i> &gt; The same in text format :
+</I>&gt;<i> &gt; <A HREF="http://maintdb.mageia.org/packages/[packagename">http://maintdb.mageia.org/packages/[packagename</A>].txt
+</I>&gt;<i> &gt; With output like this (only one line):
+</I>&gt;<i> &gt; packagename:maintainerlogin
+</I>&gt;<i> &gt; If the package is unmaintained, it appears like this :
+</I>&gt;<i> &gt; packagename:nobody
+</I>&gt;<i> &gt; If the package does not exist, an empty file is returned.
+</I>&gt;<i>
+</I>&gt;<i> I would rather say :
+</I>&gt;<i> packagename:
+</I>&gt;<i>
+</I>&gt;<i> Using a name with a special meaning is just a special case to be placed
+</I>&gt;<i> everywhere.
+</I>&gt;<i>
+</I>&gt;<i>
+</I> It currently uses the package id for displaying information, but I could
+have a look to see if it's possible to have it using the package name, which
+I have the feeling that it is.
+At the moment you can find information about a package by using the All link
+at the top.
+There will also be a search box that gives the same information.
+For finding information about a specific package the format used is:
+url/spackage/id
+(spackage was named like that to dinstinguish it from the compiled packages
+- cpackage. If there is no need for compiled packages information as I've
+seen somewhere that can be removed)
+
+
+&gt;<i> &gt; ***
+</I>&gt;<i> &gt; The list of maintainers (all maintainers who maintain at least one
+</I>&gt;<i> &gt; package) :
+</I>&gt;<i> &gt; <A HREF="http://maintdb.mageia.org/people.html">http://maintdb.mageia.org/people.html</A>
+</I>&gt;<i> &gt;
+</I>&gt;<i> &gt; ***
+</I>&gt;<i> &gt; The list of packages maintained by someone (with [loginname] replaced by
+</I>&gt;<i> &gt; a login) :
+</I>&gt;<i> &gt; <A HREF="http://maintdb.mageia.org/people/[loginname">http://maintdb.mageia.org/people/[loginname</A>].html
+</I>&gt;<i> &gt; And the same in text format :
+</I>&gt;<i> &gt; <A HREF="http://maintdb.mageia.org/people/[loginname">http://maintdb.mageia.org/people/[loginname</A>].txt
+</I>&gt;<i> &gt; With the same format for output :
+</I>&gt;<i> &gt; package1:loginname
+</I>&gt;<i> &gt; package2:loginname
+</I>&gt;<i> &gt; package3:loginname
+</I>&gt;<i> &gt; ...
+</I>&gt;<i> &gt; If the login does not exist, an empty file is returned.
+</I>&gt;<i>
+</I>&gt;<i> A REST API would give a 404, that's also something everybdy doing HTTP
+</I>&gt;<i> should grasp and understand.
+</I>&gt;<i>
+</I>&gt;<i>
+</I> That's what is used at the moment (REST-404).
+ For the list of maintainers the url is:
+ <A HREF="http://maintdb.mageia.orgl/maintainers">http://maintdb.mageia.orgl/maintainers</A>
+The extra information in there about first name, surname can be removed.
+
+
+&gt;<i> &gt; ***
+</I>&gt;<i> &gt; The list of unmaintained packages :
+</I>&gt;<i> &gt; <A HREF="http://maintdb.mageia.org/people/nobody.html">http://maintdb.mageia.org/people/nobody.html</A>
+</I>&gt;<i> &gt; And the same in text format :
+</I>&gt;<i> &gt; <A HREF="http://maintdb.mageia.org/people/nobody.txt">http://maintdb.mageia.org/people/nobody.txt</A>
+</I>&gt;<i> &gt; With this output :
+</I>&gt;<i> &gt; package1:nobody
+</I>&gt;<i> &gt; package2:nobody
+</I>&gt;<i> &gt; package3:nobody
+</I>&gt;<i> &gt; ...
+</I>&gt;<i>
+</I>&gt;<i> I would use a different url for unmaintained packages rather than
+</I>&gt;<i> nobody. Adding special case is not very clean, as said before.
+</I>&gt;<i>
+</I>
+ I agree with Michael, and say that probably a url like:
+ <A HREF="http://maintdb.mageia.org/umaintained">http://maintdb.mageia.org/umaintained</A>
+ would give the list of all umaintained packages
+
+
+&gt;<i>
+</I>&gt;<i> &gt; ***
+</I>&gt;<i> &gt; The URL to add a package, used by the buildsystem when a package is
+</I>&gt;<i> &gt; uploaded on the repository :
+</I>&gt;<i> &gt; <A HREF="https://maintdb.mageia.org/admin/setnewpackage">https://maintdb.mageia.org/admin/setnewpackage</A>
+</I>&gt;<i> &gt; Protected with basic http authentication (with a login/password that was
+</I>&gt;<i> &gt; set in maintdb or apache configuration).
+</I>&gt;<i> &gt; Accessed with a POST request and the following two arguments :
+</I>&gt;<i> &gt; package: [packagename]
+</I>&gt;<i> &gt; maintainer: [maintainername]
+</I>&gt;<i> &gt; If the package already exists in the database, it is not updated.
+</I>&gt;<i> &gt;
+</I>&gt;<i> &gt; ***
+</I>&gt;<i> &gt; The same as the previous URL, but the package maintainer is updated when
+</I>&gt;<i> &gt; the package already exists in the database :
+</I>&gt;<i> &gt; <A HREF="https://maintdb.mageia.org/admin/setpackage">https://maintdb.mageia.org/admin/setpackage</A>
+</I>&gt;<i>
+</I>&gt;<i> IMHO, it would be easier to have just 1 url :
+</I>&gt;<i>
+</I>&gt;<i> /upload/$package/$login/ ( and either protect this at http level, or
+</I>&gt;<i> using a key somewhere in the url )
+</I>&gt;<i>
+</I>&gt;<i>
+</I> Agree. Either way is possible so if there a preferred way we can try that
+first.
+
+
+&gt;<i>
+</I>&gt;<i> &gt; If we compare with the maintainers db website used at mandriva, their
+</I>&gt;<i> &gt; version also has :
+</I>&gt;<i> &gt; - media name for each package, with pages to list packages from only
+</I>&gt;<i> &gt; one media
+</I>&gt;<i> &gt; - a search box to search for a package
+</I>&gt;<i> &gt; - links to bugzilla for each package
+</I>&gt;<i> &gt; But I don't think we should store the media name in maintdb.
+</I>&gt;<i>
+</I>&gt;<i> That's indeed inflexible, if we want to have a package in more than one
+</I>&gt;<i> media.
+</I>&gt;<i>
+</I>
+ That shouldn't be any problem.
+ We would only need to change the relationship between media and packages,
+which is fine.
+ Again, if we don't want it to look like the mandriva, then we are flexible
+to decide how it would work and what we can display.
+ We had to base it on something to start, but that could change easily.
+
+
+&gt;<i>
+</I>&gt;<i> &gt; maintdb should mainly be used in the following cases :
+</I>&gt;<i> &gt; - by sophie, mageia-app-db and other package databases which want to
+</I>&gt;<i> show
+</I>&gt;<i> &gt; maintainers of packages. They download the full list of packages and
+</I>&gt;<i> &gt; maintainers every day (or hours) from the text file, to synchronize
+</I>&gt;<i> &gt; with their database.
+</I>&gt;<i>
+</I>&gt;<i> So then we should ask them what they would prefer. I knw for usre that
+</I>&gt;<i> reusing the mandriva format, or the fedora format will ease the work on
+</I>&gt;<i> sophie side.
+</I>&gt;<i>
+</I>&gt;<i>
+</I> Not sure which format was used before, but again I don't see any problem
+using whatever makes it easier for people that use it.
+ Let me know what you would like it to do and then I'll try and do it.
+
+
+Kosmas
+-------------- next part --------------
+An HTML attachment was scrubbed...
+URL: &lt;/pipermail/mageia-webteam/attachments/20110308/bec52acb/attachment-0001.html&gt;
+</PRE>
+
+
+
+
+
+
+
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="000432.html">[Mageia-webteam] Proposal for maintainers database API
+</A></li>
+ <LI>Next message: <A HREF="000434.html">[Mageia-webteam] Proposal for maintainers database API
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#433">[ date ]</a>
+ <a href="thread.html#433">[ thread ]</a>
+ <a href="subject.html#433">[ subject ]</a>
+ <a href="author.html#433">[ author ]</a>
+ </LI>
+ </UL>
+
+<hr>
+<a href="https://www.mageia.org/mailman/listinfo/mageia-webteam">More information about the Mageia-webteam
+mailing list</a><br>
+</body></html>