]> git.decadent.org.uk Git - dak.git/commitdiff
Use changes table to include historic data.
authorAnsgar Burchardt <ansgar@debian.org>
Fri, 14 Aug 2015 09:10:47 +0000 (11:10 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Fri, 14 Aug 2015 09:11:56 +0000 (11:11 +0200)
Requested-by: Enrico Zini <enrico@enricozini.org>
config/debian/contributor.source

index c801d1fd1296b8e9875d1f06f2a2d96917c3de80..67982c21e6b8d22bc49650cfdfa788782285ddc9 100644 (file)
@@ -2,21 +2,20 @@ contribution: upload
 method: postgres
 db: service=projectb
 query:
-        SELECT s.install_date as date,
-               u.uid as id,
-               u.name as desc
-          FROM source s
-          JOIN fingerprint f ON s.sig_fpr = f.id
-          JOIN uid u ON f.uid = u.id
-url: https://qa.debian.org/developer.php?login={id}&comaint=yes
+        SELECT fingerprint AS id,
+               SUBSTRING(fingerprint FROM 40-7) AS key_id,
+               seen AS date
+          FROM changes
+         WHERE architecture LIKE '%source%'
+         ORDER BY seen DESC
+url: https://qa.debian.org/developer.php?login={key_id}&comaint=yes
 
 contribution: maint
 method: postgres
 db: service=projectb
 query:
-        SELECT s.install_date as date,
-               c.name as id
-          FROM source s
-          JOIN maintainer c ON s.changedby = c.id
+        SELECT changedby AS id,
+               seen AS date
+          FROM changes
+         WHERE architecture LIKE '%source%'
 url: https://qa.debian.org/developer.php?login={id}&comaint=yes
-