From bc63aac79a4640f951b050c537ba040bb231449b Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Thu, 16 Feb 2023 18:37:12 +0100 Subject: dashboard: display the subsystem list Take the counts from the cache, include links to the filtered bug views. --- pkg/subsystem/service.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'pkg/subsystem') 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 +} -- cgit mrf-deployment