Skip to content

Engine V7: get_evaluation_result interface #234

@khvn26

Description

@khvn26

Blocked by Flagsmith/flagsmith#5808.

In order to improve coupling/cohesion and simplify later Evaluation Context extensions:

  1. Retire/deprecate the following interfaces:
  • get_environment_flags
  • get_environment_flag
  • get_identity_flags
  • get_identity_flag
  • evaluate_identity_in_segment/is_context_in_segment
  • get_identity_segments/get_context_segment
  1. Implement a single get_evaluation_result(context: EvaluationContext) -> EvaluationResult interface, returning the following information:
  • List of evaluated flags with corresponding values.
  • List of segments that include the provided context.

Note that we'll need to extend the Evaluation object with:

  • Environment features
  • Segments

Metadata

Metadata

Assignees

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