Skip to content

Conversation

@keelerm84
Copy link
Member

No description provided.

@keelerm84 keelerm84 requested a review from a team March 20, 2024 20:24
@shortcut-integration
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
@keelerm84 keelerm84 force-pushed the mk/sc-237269/hook-tests branch from bdeea90 to 2bf50de Compare March 21, 2024 14:46
@keelerm84 keelerm84 force-pushed the mk/sc-237269/hook-tests branch from 2bf50de to 7a62bac Compare March 21, 2024 17:21
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 keelerm84 requested a review from cwaldren-ld March 28, 2024 15:35
@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
@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