Skip to content

Strict mode warning when calling Flipper.add() on a new feature #1026

Description

@pelletencate

When strict mode is enabled (:raise or true), calling Flipper.add("feature_name") immediately warns or raises "Could not find feature" before the feature is actually created.

Steps to reproduce

  1. Set config.flipper.strict = true (or :raise)
  2. In an IRB session, call Flipper.add(:bulk_gift_card_checkout)
  3. Observe the warning: "Could not find feature... Call Flipper.add() to create it"

Expected behavior

Flipper.add() should create the feature without triggering strict mode warnings, since that's the method's purpose.

Actual behavior

Strict mode warning/error is raised before the feature is added to the database.

Environment

  • Flipper version: 1.4.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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