diff options
author | Clément Lassieur <clement@lassieur.org> | 2018-07-02 17:25:31 +0200 |
---|---|---|
committer | Clément Lassieur <clement@lassieur.org> | 2018-07-14 21:35:14 +0200 |
commit | be713f8a30788861806a74865b07403aa6774117 (patch) | |
tree | 41a687a50f29b5bd4eca36906fb8daf14d8b440c /src/cuirass/http.scm | |
parent | 03c4095f0a1a614af3b1e1cd63270d28d98b39a3 (diff) | |
download | cuirass-be713f8a30788861806a74865b07403aa6774117.tar cuirass-be713f8a30788861806a74865b07403aa6774117.tar.gz |
database: Call a specification 'jobset' instead of 'project'.
This removes the possibility to filter specifications by branch, because
branches were previously called 'jobset'. But it doesn't matter because later
on, specifications will have as many branches as inputs. And people should
filter by specification name instead.
* doc/cuirass.texi (Build Information, Latest builds): Remove 'jobset',
replace 'project' with 'jobset'.
* src/cuirass/http.scm (build->hydra-build): Idem.
* tests/database.scm (db-get-builds): Idem.
* tests/http.scm (build-query-result, /api/latestbuilds?nr=1&jobset=guix,
/api/latestbuilds?nr=1&jobset=gnu): Idem.
* src/cuirass/database.scm (db-format-build, db-get-builds): Don't associate
builds with branches (which were called 'jobset' afterwards).
(db-get-builds): Remove the #:project filter.
Diffstat (limited to 'src/cuirass/http.scm')
-rw-r--r-- | src/cuirass/http.scm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cuirass/http.scm b/src/cuirass/http.scm index e911b9b..a45e6b1 100644 --- a/src/cuirass/http.scm +++ b/src/cuirass/http.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2016 Mathieu Lirzin <mthl@gnu.org> ;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com> ;;; Copyright © 2018 Ludovic Courtès <ludo@gnu.org> +;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org> ;;; ;;; This file is part of Cuirass. ;;; @@ -45,8 +46,7 @@ (build-status started))))) `((#:id . ,(assq-ref build #:id)) - (#:project . ,(assq-ref build #:repo-name)) - (#:jobset . ,(assq-ref build #:branch)) + (#:jobset . ,(assq-ref build #:repo-name)) (#:job . ,(assq-ref build #:job-name)) ;; Hydra's API uses "timestamp" as the time of the last useful event for |