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

Error reporting improvements #86

Merged
merged 7 commits into from
Apr 29, 2024
Merged

Conversation

adams85
Copy link
Contributor

@adams85 adams85 commented Jan 4, 2024

Describe the purpose of your pull request

Define error codes (EvaluationErrorCode, RefreshErrorCode) and expose them to the user (EvaluationDetails.ErrorCode, RefreshResult.ErrorCode) so they can reliably identify the error type without resorting to guess it by checking the error message (see also: open-feature/dotnet-sdk-contrib#119 (comment))

The PR also proposes a new hook named ConfigFetched which could be used to observe config fetching-related errors even when refreshing is done by the SDK.

Related issues (only if applicable)

https://trello.com/c/0KrZmHgQ

Requirement checklist (only if applicable)

  • I have covered the applied changes with automated tests.
  • I have executed the full automated test set against my changes.
  • I have validated my changes against all supported platform versions.
  • I have read and accepted the contribution agreement.

@adams85 adams85 requested a review from a team as a code owner January 4, 2024 20:02
@adams85 adams85 marked this pull request as draft January 4, 2024 20:02
Copy link

sonarcloud bot commented Jan 4, 2024

Quality Gate Failed Quality Gate failed

Failed conditions

67.8% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

…pose them to the user (EvaluationDetails.ErrorCode)
@adams85 adams85 force-pushed the error-reporting-improvements branch from 4d3f5de to d2f0b0c Compare March 25, 2024 10:29
@adams85 adams85 force-pushed the error-reporting-improvements branch from d9034e5 to b24c576 Compare April 15, 2024 14:37
@adams85 adams85 force-pushed the error-reporting-improvements branch from 7fcf0bb to 63bc9be Compare April 16, 2024 12:01
@adams85 adams85 force-pushed the error-reporting-improvements branch from 63bc9be to 73ab47d Compare April 16, 2024 17:24
Copy link

sonarcloud bot commented Apr 16, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
79.8% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

@adams85 adams85 marked this pull request as ready for review April 16, 2024 17:30
@adams85 adams85 merged commit 241634c into master Apr 29, 2024
6 of 7 checks passed
@adams85 adams85 deleted the error-reporting-improvements branch April 29, 2024 11:47
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.

4 participants