Skip to content

Improve ORM enum ergonomics for feature health choices #7878

Description

@emyller

FeatureHealthEventType and FeatureHealthProviderName subclass base models.Choices, so their members aren't str and depend on .value unwrapping to evaluate correctly in DB queries. Normalise to TextChoices (as done for TagType in #7877).

Acceptance criteria

  • Both evaluate correctly in queries without .value unwrapping.
  • Stored values unchanged.
  • Tests exercise the members directly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions