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: support multi-kind contexts in template interpolation #48

Merged
merged 4 commits into from
Nov 19, 2024

Conversation

cwaldren-ld
Copy link
Contributor

@cwaldren-ld cwaldren-ld commented Nov 19, 2024

In the existing SDK, it's not possible to access individual context kind attributes via Mustache template. This is because only the top level attributes of a context were added to the interpolation dict.

This PR adds all of the single kinds within a multi-kind context.

@cwaldren-ld cwaldren-ld force-pushed the cw/sdk-922-multicontext branch from 2817759 to 00f19aa Compare November 19, 2024 00:12
@cwaldren-ld cwaldren-ld marked this pull request as ready for review November 19, 2024 00:17
@cwaldren-ld cwaldren-ld requested a review from a team as a code owner November 19, 2024 00:17
pkgs/sdk/server-ai/test/InterpolationTests.cs Outdated Show resolved Hide resolved
pkgs/sdk/server-ai/test/InterpolationTests.cs Outdated Show resolved Hide resolved
pkgs/sdk/server-ai/test/InterpolationTests.cs Outdated Show resolved Hide resolved
@cwaldren-ld cwaldren-ld merged commit 40ff539 into main Nov 19, 2024
11 checks passed
@cwaldren-ld cwaldren-ld deleted the cw/sdk-922-multicontext branch November 19, 2024 22:34
cwaldren-ld pushed a commit that referenced this pull request Nov 19, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.2.0](LaunchDarkly.ServerSdk.Ai-v0.1.1...LaunchDarkly.ServerSdk.Ai-v0.2.0)
(2024-11-19)


### Features

* support multi-kind contexts in template interpolation
([#48](#48))
([40ff539](40ff539))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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