aboutsummaryrefslogtreecommitdiffstats
path: root/bug/bug.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-07-29 20:58:22 +0200
committerMichael Muré <batolettre@gmail.com>2018-07-29 20:58:22 +0200
commitc58aa18a2d0683b0a1e6f0597724e67b500503a0 (patch)
tree06b7611ebce2a4cbe0c99f72729517cb8114e3f1 /bug/bug.go
parent08f03ecf3cbbc350585acf0492966681ec449a94 (diff)
downloadgit-bug-c58aa18a2d0683b0a1e6f0597724e67b500503a0.tar.gz
graphql: lazy loading for the bug relay connection
Diffstat (limited to 'bug/bug.go')
-rw-r--r--bug/bug.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/bug/bug.go b/bug/bug.go
index 713d6edc..d3cc41dd 100644
--- a/bug/bug.go
+++ b/bug/bug.go
@@ -204,6 +204,11 @@ func readAllBugs(repo repository.Repo, refPrefix string) <-chan StreamedBug {
return out
}
+// List all the available local bug ids
+func ListLocalIds(repo repository.Repo) ([]string, error) {
+ return repo.ListIds(bugsRefPattern)
+}
+
// IsValid check if the Bug data is valid
func (bug *Bug) IsValid() bool {
// non-empty