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: Support Returning Error Resolutions from Providers #323

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

chrfwow
Copy link
Contributor

@chrfwow chrfwow commented Nov 25, 2024

This PR

  • When a Flag evaluation fails without throwing an exception, the registered error hooks are invoked, and the after hooks are not invoked.

Related Issues

Fixes #307

How to test

test/OpenFeature.Tests/OpenFeatureClientTests#When_Error_Is_Returned_From_Provider_Should_Not_Run_After_Hook_But_Error_Hook verifies the behaviour

@chrfwow chrfwow changed the title 307: [FEATURE] Support Returning Error Resolutions from Providers [FEATURE] Support Returning Error Resolutions from Providers Nov 25, 2024
@chrfwow chrfwow changed the title [FEATURE] Support Returning Error Resolutions from Providers [FEAT] Support Returning Error Resolutions from Providers Nov 25, 2024
@chrfwow chrfwow changed the title [FEAT] Support Returning Error Resolutions from Providers feat: Support Returning Error Resolutions from Providers Nov 25, 2024
Copy link
Member

@askpt askpt left a comment

Choose a reason for hiding this comment

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

Small question. Other than that it seems fine 👍

src/OpenFeature/OpenFeatureClient.cs Show resolved Hide resolved
Copy link

codecov bot commented Nov 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.91%. Comparing base (25bc54b) to head (c444e52).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #323      +/-   ##
==========================================
+ Coverage   85.75%   85.91%   +0.15%     
==========================================
  Files          34       34              
  Lines        1362     1377      +15     
  Branches      147      148       +1     
==========================================
+ Hits         1168     1183      +15     
  Misses        162      162              
  Partials       32       32              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@chrfwow chrfwow marked this pull request as ready for review November 27, 2024 07:00
@chrfwow chrfwow requested a review from a team as a code owner November 27, 2024 07:00
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.

Looks great!

@toddbaert toddbaert merged commit bf9de4e into open-feature:main Dec 3, 2024
15 of 16 checks passed
arttonoyan pushed a commit to arttonoyan/dotnet-sdk that referenced this pull request Dec 4, 2024
…e#323)

When provider resolutions with error code set other than `None` are returned, the provider acts as if an error was thrown.

Signed-off-by: christian.lutnik <[email protected]>
Signed-off-by: Artyom Tonoyan <[email protected]>
askpt pushed a commit that referenced this pull request Dec 4, 2024
When provider resolutions with error code set other than `None` are returned, the provider acts as if an error was thrown.

Signed-off-by: christian.lutnik <[email protected]>
Signed-off-by: André Silva <[email protected]>
chrfwow added a commit to chrfwow/dotnet-sdk that referenced this pull request Dec 5, 2024
toddbaert pushed a commit that referenced this pull request Dec 12, 2024
🤖 I have created a release *beep* *boop*
---


##
[2.2.0](v2.1.0...v2.2.0)
(2024-12-12)


### ✨ New Features

* Feature Provider Enhancements-
[#321](#321)
([#324](#324))
([70f847b](70f847b))
* Implement Tracking in .NET
[#309](#309)
([#327](#327))
([cbf4f25](cbf4f25))
* Support Returning Error Resolutions from Providers
([#323](#323))
([bf9de4e](bf9de4e))


### 🧹 Chore

* **deps:** update dependency fluentassertions to v7
([#325](#325))
([35cd77b](35cd77b))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

[FEATURE] Support Returning Error Resolutions from Providers
4 participants