Skip to content

fix: various custom operator conformance fixes#1778

Merged
toddbaert merged 7 commits intomainfrom
chore/update-test-harness
Apr 30, 2026
Merged

fix: various custom operator conformance fixes#1778
toddbaert merged 7 commits intomainfrom
chore/update-test-harness

Conversation

@toddbaert
Copy link
Copy Markdown
Member

@toddbaert toddbaert commented Apr 21, 2026

fix: various custom operator conformance fixes

  • support v/V prefix in semver
  • support partial versions in semver
  • support numeric context values in semver
  • return null on errors
  • fix fractional single-entry flattening

⚠️ wait until flagd/RPC is updated to merge.

Fixes: #1774


Related:

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces several improvements to the flagd core evaluation logic, including enhanced type handling for context values, more robust SemVer parsing with support for partial versions and numeric coercion, and fixes for fractional evaluation edge cases. I have provided a suggestion to optimize the fractional evaluation logic by using List operations instead of manual array copying to improve performance.

@toddbaert toddbaert marked this pull request as draft April 21, 2026 00:37
@toddbaert toddbaert force-pushed the chore/update-test-harness branch from 7c5c7cd to 6977314 Compare April 21, 2026 16:57
@toddbaert toddbaert changed the title Chore/update test harness fix: various custom operator conformance fixes Apr 21, 2026
@toddbaert toddbaert force-pushed the chore/update-test-harness branch 5 times, most recently from 6f64b40 to d7c20b4 Compare April 22, 2026 17:33
@toddbaert toddbaert requested review from aepfli, alexandraoberaigner, chrfwow, guidobrei and liran2000 and removed request for Kavindu-Dodan April 23, 2026 19:55
@toddbaert toddbaert marked this pull request as ready for review April 24, 2026 15:26
* support v/V prefix in semver
* support partial versions in semver
* support numeric context values in semver
* return null on errors
* fix fractional single-entry flattening

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
@toddbaert toddbaert force-pushed the chore/update-test-harness branch from 0c7570a to 23abf5a Compare April 30, 2026 13:06
@github-actions github-actions Bot requested a review from Kavindu-Dodan April 30, 2026 13:06
toddbaert added a commit to open-feature/flagd that referenced this pull request Apr 30, 2026
* support V prefix in semver
* return null on errors in semver, ends_with, and fractional (already
existed on starts_with)
* fix fractional fallback when total weight is zero

Fixes: #1942

---

Related:
* open-feature/java-sdk-contrib#1778
* open-feature/js-sdk-contrib#1519
* open-feature/dotnet-sdk-contrib#635
* open-feature/python-sdk-contrib#386

---------

Signed-off-by: Lea Konvalinka <lea.konvalinka@dynatrace.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Co-authored-by: Todd Baert <todd.baert@dynatrace.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.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.

Update flagd-testbed to v3.6.2 and fix in-process evaluation edge cases

7 participants