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: add evaluation details to finally hook #328

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bbland1
Copy link
Contributor

@bbland1 bbland1 commented Feb 26, 2025

This PR

  • adds evaluation details to finally hook stage
  • utilized InterfaceEvaluationDetails similar to the After method of the hook

Related Issues

Fixes #327

Notes

This breaks the signature of the finally stages based on this spec enhancement. It is not considered a breaking change to the SDK because hooks are marked as experimental in the spec, and the change has no impact on known hooks.

- Finally(ctx context.Context, hookContext HookContext, hookHints HookHints)
+ Finally(ctx context.Context, hookContext HookContext, flagEvaluationDetails InterfaceEvaluationDetails, hookHints HookHints)

Follow-up Tasks

Update the go-sdk-contrib repo, with a quick search the few places finally is being used that I saw.

How to test

  • Running local unit tests passed again with change to interface.

Signed-off-by: bbland1 <104288486+bbland1@users.noreply.github.com>
Copy link

codecov bot commented Feb 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.78%. Comparing base (de5f7c3) to head (2f0edc0).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #328   +/-   ##
=======================================
  Coverage   86.78%   86.78%           
=======================================
  Files          13       13           
  Lines        1362     1362           
=======================================
  Hits         1182     1182           
  Misses        156      156           
  Partials       24       24           
Flag Coverage Δ
e2e 86.78% <100.00%> (ø)
unit 86.78% <100.00%> (ø)

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

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

@bbland1 bbland1 marked this pull request as ready for review February 26, 2025 07:24
@bbland1 bbland1 requested a review from a team as a code owner February 26, 2025 07:24
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.

Add evaluation details to finally hook stage
1 participant