Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: evaluator module #192

Merged
merged 7 commits into from
Sep 18, 2023
Merged

feat: evaluator module #192

merged 7 commits into from
Sep 18, 2023

Conversation

khvn26
Copy link
Member

@khvn26 khvn26 commented Sep 14, 2023

  • Move segment rule evaluators to flag_engine.segments.evaluator module
  • Add missing runtime type checks

- Move segment rule evaluators to flag_engine.segments.evaluator module
- Add missing runtime type checks
@github-actions
Copy link

github-actions bot commented Sep 14, 2023

File Coverage
All files 100%

Minimum allowed coverage is 100%

Generated by 🐒 cobertura-action against 1d2b802

flag_engine/segments/evaluator.py Outdated Show resolved Hide resolved
flag_engine/segments/evaluator.py Outdated Show resolved Hide resolved
@khvn26 khvn26 requested a review from gagantrivedi September 15, 2023 17:34
from pydantic import BaseModel, Field

from flag_engine.features.models import FeatureStateModel
from flag_engine.segments import constants
from flag_engine.segments.types import ConditionOperator, RuleType
from flag_engine.utils.semver import is_semver
from flag_engine.utils.types import get_casting_function


class SegmentConditionModel(BaseModel):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_EXCEPTION_OPERATOR_METHODS can be removed now, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call. Done.

@khvn26 khvn26 requested a review from gagantrivedi September 18, 2023 08:46
Copy link
Member

@gagantrivedi gagantrivedi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great stuff

@khvn26 khvn26 merged commit 2064e9e into main Sep 18, 2023
@khvn26 khvn26 deleted the feat/evaluator-module branch September 18, 2023 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants