Skip to content

feat!: EvaluationDetails.reason should be a string, Reason enum should export default reasons per spec - #126

Merged
beeme1mr merged 1 commit into
open-feature:mainfrom
jamescarr:evaluation-details-reason
Jun 28, 2023
Merged

feat!: EvaluationDetails.reason should be a string, Reason enum should export default reasons per spec#126
beeme1mr merged 1 commit into
open-feature:mainfrom
jamescarr:evaluation-details-reason

Conversation

@jamescarr

Copy link
Copy Markdown
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
jamescarrforce-pushed the evaluation-details-reason branch 2 times, most recently from 9534a2f to 2946e01CompareJune 28, 2023 16:40
@beeme1mrbeeme1mr changed the title Add tests for fleg_detailsAdd tests for flag_detailsJun 28, 2023
@jamescarr
jamescarrforce-pushed the evaluation-details-reason branch from 15e9036 to 94dc60cCompareJune 28, 2023 17:16
@jamescarrjamescarr changed the title Add tests for flag_detailsfeat!: EvaluationDetails.reason should be a string, Reason enum should export default reasons per specJun 28, 2023
… export default set of reasons.
Signed-off-by: James Carr <james.r.carr@gmail.com>
@jamescarr
jamescarrforce-pushed the evaluation-details-reason branch from 94dc60c to 2d6b6cdCompareJune 28, 2023 17:19
@codecov

codecovBot commented Jun 28, 2023

Copy link
Copy Markdown

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 
FlagCoverage Δ
unittests93.09% <100.00%> (+0.15%)⬆️

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

Impacted FilesCoverage Δ
...feature/flag_evaluation/flag_evaluation_details.py100.00% <100.00%> (ø)
open_feature/flag_evaluation/reason.py100.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, hlipsig, tcarrio and toddbaert and removed request for ajhelsbyJune 28, 2023 17:34

@toddbaerttoddbaert left a comment

Copy link
Copy Markdown
Member

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:mainJun 28, 2023
@github-actionsgithub-actionsBot mentioned this pull request Jun 28, 2023
@jamescarr
jamescarr deleted the evaluation-details-reason branch June 28, 2023 18:55
Sign up for freeto 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

@jamescarr@beeme1mr@toddbaert