Skip to content

Error reporting improvements#86

Merged
adams85 merged 7 commits intomasterfrom
error-reporting-improvements
Apr 29, 2024
Merged

Error reporting improvements#86
adams85 merged 7 commits intomasterfrom
error-reporting-improvements

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/mU63054x

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
@sonarqubecloud
Copy link

sonarqubecloud 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
@sonarqubecloud
Copy link

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
@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