Skip to content

fix: IfMatchContext/AndMatchContext utilize context kind.#225

Merged
kinyoklion merged 3 commits intomainfrom
rlamb/sdk-1888/context-kind-matching
Feb 17, 2026
Merged

fix: IfMatchContext/AndMatchContext utilize context kind.#225
kinyoklion merged 3 commits intomainfrom
rlamb/sdk-1888/context-kind-matching

Conversation

@kinyoklion
Copy link
Member

@kinyoklion kinyoklion commented Feb 13, 2026

Fixes: #224


Note

Low Risk
Change is limited to TestData’s in-memory flag construction for tests plus new test coverage; it should not affect production data sources, with low regression risk outside test helpers.

Overview
Fixes TestData rule-building so clauses created via IfMatchContext/AndMatchContext (and the negated variants) actually store and emit the specified ContextKind into the SDK data model (Internal.Model.Clause), while treating ContextKind.Default as null for consistency.

Adds comprehensive unit and integration tests verifying correct clause serialization and end-to-end evaluation for single- and multi-context scenarios, mixed default/user vs custom kinds, and negated clauses.

Written by Cursor Bugbot for commit 39692cf. This will update automatically on new commits. Configure here.

}

[Fact]
public void AndMatchContext_TwoCustomContextKindsOnSameAttribute_StoresCorrectContextKinds()
Copy link
Member Author

Choose a reason for hiding this comment

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

Replication of github issue.

}

[Fact]
public void AndMatchContext_TwoCustomContextKindsOnSameAttribute_EvaluatesCorrectly()
Copy link
Member Author

Choose a reason for hiding this comment

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

Also customer replication.

@kinyoklion
Copy link
Member Author

bugbot review

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

@kinyoklion kinyoklion marked this pull request as ready for review February 13, 2026 23:02
@kinyoklion kinyoklion requested a review from a team as a code owner February 13, 2026 23:02
@kinyoklion kinyoklion merged commit 95bc949 into main Feb 17, 2026
17 checks passed
@kinyoklion kinyoklion deleted the rlamb/sdk-1888/context-kind-matching branch February 17, 2026 21:52
kinyoklion pushed a commit that referenced this pull request Feb 17, 2026
🤖 I have created a release *beep* *boop*
---


##
[8.11.1](LaunchDarkly.ServerSdk-v8.11.0...LaunchDarkly.ServerSdk-v8.11.1)
(2026-02-17)


### Bug Fixes

* IfMatchContext/AndMatchContext utilize context kind.
([#225](#225))
([95bc949](95bc949))

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

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Version/changelog-only release metadata updates with no functional
code changes in this PR.
> 
> **Overview**
> Bumps `LaunchDarkly.ServerSdk` release from `8.11.0` to `8.11.1`
(manifest + `LaunchDarkly.ServerSdk.csproj`).
> 
> Updates the `pkgs/sdk/server` changelog to document the `8.11.1` bug
fix: `IfMatchContext`/`AndMatchContext` now use the context kind.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
59dfd64. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

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.

TestData.IfMatchContext and AndMatchContext ignore the contextKind parameter

2 participants