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!: EvaluationDetails.reason should be a string, Reason enum should export default reasons per spec #126

Merged
merged 1 commit into from
Jun 28, 2023

Conversation

jamescarr
Copy link
Contributor

This PR

  • bring FlagEvaluationDetails in-line with the spec

Related Issues

Fixes #98

Notes

Follow-up Tasks

How to test

make test TEST=tests/test_open_feature_flag_evaluation.py

@jamescarr jamescarr force-pushed the evaluation-details-reason branch 2 times, most recently from 9534a2f to 2946e01 Compare June 28, 2023 16:40
@beeme1mr beeme1mr changed the title Add tests for fleg_details Add tests for flag_details Jun 28, 2023
@jamescarr jamescarr changed the title Add tests for flag_details feat!: EvaluationDetails.reason should be a string, Reason enum should export default reasons per spec Jun 28, 2023
… export default set of reasons.

Signed-off-by: James Carr <james.r.carr@gmail.com>
@codecov
Copy link

codecov bot commented Jun 28, 2023

Codecov Report

Merging #126 (2d6b6cd) into main (959159e) will increase coverage by 0.15%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #126      +/-   ##
==========================================
+ Coverage   92.93%   93.09%   +0.15%     
==========================================
  Files          20       20              
  Lines         354      362       +8     
==========================================
+ Hits          329      337       +8     
  Misses         25       25              
Flag Coverage Δ
unittests 93.09% <100.00%> (+0.15%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...feature/flag_evaluation/flag_evaluation_details.py 100.00% <100.00%> (ø)
open_feature/flag_evaluation/reason.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@toddbaert toddbaert requested review from ajhelsby, tcarrio, toddbaert and hlipsig and removed request for ajhelsby June 28, 2023 17:34
Copy link
Member

@toddbaert toddbaert left a comment

Choose a reason for hiding this comment

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

I'm a Python novice, but from a spec POV this looks right to me.

Awaiting one more review (hopefully from somebody with more Python chops 😅 )

@beeme1mr beeme1mr merged commit c2d225e into open-feature:main Jun 28, 2023
@jamescarr jamescarr deleted the evaluation-details-reason branch June 28, 2023 18:55
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.

EvaluationDetails should be a string, SDK should export list of standard Reasons.
3 participants