FeatureFlags: Remove enabled from FeatureFlag model (#79960)

This commit is contained in:
Ryan McKinley
2024-01-10 21:34:18 -08:00
committed by GitHub
parent 48b5ac779b
commit 85d68b88cf
8 changed files with 95 additions and 98 deletions

View File

@@ -110,8 +110,8 @@ func (s *FeatureFlagStage) UnmarshalJSON(b []byte) error {
return nil
}
// These are properties about the feature, but not the current state or value for it
type FeatureFlag struct {
// Required properties
Name string `json:"name" yaml:"name"` // Unique name
Description string `json:"description"`
Stage FeatureFlagStage `json:"stage,omitempty"`
@@ -131,9 +131,6 @@ type FeatureFlag struct {
FrontendOnly bool `json:"frontend,omitempty"` // change is only seen in the frontend
HideFromDocs bool `json:"hideFromDocs,omitempty"` // don't add the values to docs
// This field is only for the feature management API. To enable your feature toggle by default, use `Expression`.
Enabled bool `json:"enabled,omitempty"`
// These are currently unused
DocsURL string `json:"docsURL,omitempty"`
RequiresRestart bool `json:"requiresRestart,omitempty"` // The server must be initialized with the value