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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user