Commit 0937e18
committed
Fix GetServices never returns nil
Some storage backends return nil when no services exist, which caused
the getServices API to omit the services field or serialize it as null.
This breaks the UI schema expectations, which always require an array.
Normalize nil to an empty slice in QueryService.GetServices so that
all callers receive a consistent, non-nil response.
Fixes #7921.
Signed-off-by: Sujal Shah <sujalshah28092004@gmail.com>1 parent 435a23d commit 0937e18
File tree
2 files changed
+19
-1
lines changed- cmd/jaeger/internal/extension/jaegerquery/querysvc
2 files changed
+19
-1
lines changedLines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
123 | 127 | | |
124 | 128 | | |
125 | 129 | | |
| |||
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
749 | 749 | | |
750 | 750 | | |
751 | 751 | | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
0 commit comments