OpenFeature: Use types from Go Feature Flag pkg (#108802)

* Use go feature flag types

* Add go-feature-flag module

* Update go.mod

* Update test

* Fix
This commit is contained in:
Tania
2025-07-29 15:05:59 +02:00
committed by GitHub
parent ef9f9c2d8e
commit 2c7349f863
13 changed files with 189 additions and 65 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ package ofrep
import (
"net/http"
"github.com/grafana/grafana/pkg/services/featuremgmt"
goffmodel "github.com/thomaspoignant/go-feature-flag/cmd/relayproxy/model"
)
func (b *APIBuilder) evalAllFlagsStatic(isAuthedUser bool, w http.ResponseWriter, r *http.Request) {
@@ -15,7 +15,7 @@ func (b *APIBuilder) evalAllFlagsStatic(isAuthedUser bool, w http.ResponseWriter
}
if !isAuthedUser {
var publicOnly []featuremgmt.OFREPFlag
var publicOnly []goffmodel.OFREPFlagBulkEvaluateSuccessResponse
for _, flag := range result.Flags {
if isPublicFlag(flag.Key) {