Skip to content

Migrate to native flag-engine v10 APIs and remove vendored models #6654

@gagantrivedi

Description

@gagantrivedi

Context

This is a follow-up to #5991 and the engine v10 compatibility work.

Phase 1 (completed in #6653) upgraded flagsmith-flag-engine to v10 and vendored Pydantic models from the fix/missing-export branch to maintain backwards compatibility with the existing codebase.

This issue tracks Phase 2: fully migrating to flag-engine v10's native APIs and removing the vendored code.

Goals

  • Remove vendored models from api/util/engine_models/

  • Remove dependency on legacy Pydantic models

Additional work

  • Update flagsmith-schemas (in flagsmith-common) to use v10's ContextValue type with correct ordering/constraints, or accept the schema changes
  • Remove vendored code in api/util/engine_models/
  • Update any mappers in api/util/mappers/engine.py that depend on vendored models

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions