diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2023-02-16 18:37:12 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2023-02-17 12:00:36 +0100 |
| commit | bc63aac79a4640f951b050c537ba040bb231449b (patch) | |
| tree | 45c308692b866132b65cb219c16742657808b868 /pkg/subsystem | |
| parent | 5fe5301b69de36dc64cf350d6924cb3e7b54b9ba (diff) | |
dashboard: display the subsystem list
Take the counts from the cache, include links to the filtered bug views.
Diffstat (limited to 'pkg/subsystem')
| -rw-r--r-- | pkg/subsystem/service.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/subsystem/service.go b/pkg/subsystem/service.go index b27200c30..d8c144cc4 100644 --- a/pkg/subsystem/service.go +++ b/pkg/subsystem/service.go @@ -45,3 +45,11 @@ func MakeService(list []*Subsystem) (*Service, error) { func (s *Service) ByName(name string) *Subsystem { return s.perName[name] } + +func (s *Service) List() []*Subsystem { + ret := []*Subsystem{} + for _, item := range s.perName { + ret = append(ret, item) + } + return ret +} |
