Skip to content

[FEATURE] Treat disabled flag evaluation as success with reason=DISABLED #1918

@suthar26

Description

@suthar26

Requirements

flagd currently treats disabled flags as errors (reason=ERROR, errorCode=FLAG_DISABLED). This should instead resolve successfully with reason=DISABLED, returning the flag's defaultVariant value.

Expected behavior:

  • Disabled flags resolve successfully across gRPC, OFREP, and in-process evaluation
  • Missing flags still return FLAG_NOT_FOUND
  • ResolveAll includes disabled flags instead of omitting them
  • Telemetry records disabled evaluations as non-errors
  • This would align flagd with the OpenFeature resolution reason model and avoid conflating intentionally disabled flags with missing flags.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs TriageThis issue needs to be investigated by a maintainerenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions