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

chore: Add hook support to contract tests #257

Merged
merged 2 commits into from
Mar 28, 2024

Conversation

keelerm84
Copy link
Member

No description provided.

@keelerm84 keelerm84 requested a review from a team March 20, 2024 20:24
Copy link

This pull request has been linked to Shortcut Story #237269: Add evaluation-hook capability to contract tests.

Base automatically changed from mk/sc-236778/hooks to feat/hooks March 21, 2024 14:46
payload = {
evaluationHookContext: {
flagKey: hook_context.key,
context: @context_filter.filter(hook_context.context),
Copy link
Contributor

Choose a reason for hiding this comment

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

Why the filtered context?

Copy link
Member Author

Choose a reason for hiding this comment

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

The SDK has no other way of converting a context into a hash other than attribute redaction. We haven't needed it yet, and unless the tests require some special handling of private attributes (which seems odd), I figured I could get away with this.

@cwaldren-ld
Copy link
Contributor

evaluationHookContext -> evaluationSeriesContext
evaluationHookData -> evaluationSeriesData

(latest updates to the contract test PR)

@keelerm84
Copy link
Member Author

evaluationHookContext -> evaluationSeriesContext evaluationHookData -> evaluationSeriesData

(latest updates to the contract test PR)

Thanks. Updated!

@keelerm84 keelerm84 merged commit ed62ded into feat/hooks Mar 28, 2024
1 check passed
@keelerm84 keelerm84 deleted the mk/sc-237269/hook-tests branch March 28, 2024 18:49
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.

2 participants