Skip to content

feat!: sdk consumes context engine - #89

Merged
Zaimwa9 merged 18 commits into
feat/evaluation-get-resultfrom
feat/sdk-consumes-context-engine
Nov 12, 2025
Merged

feat!: sdk consumes context engine#89
Zaimwa9 merged 18 commits into
feat/evaluation-get-resultfrom
feat/sdk-consumes-context-engine

Conversation

@Zaimwa9

@Zaimwa9Zaimwa9 commented Oct 28, 2025

Copy link
Copy Markdown
Contributor

Contributes to #81

In this 3/3 PR related to evaluation context in local evaluation mode

In this PR:

  • SDK layer uses the new engine in the client local evaluation
  • Implementation of a proper JSONPath library
  • Clean-up deprecated code and methods

@Zaimwa9
Zaimwa9 requested a review from a team as a code ownerOctober 28, 2025 15:03
@Zaimwa9
Zaimwa9 requested review from khvn26 and removed request for a teamOctober 28, 2025 15:03
@Zaimwa9
Zaimwa9 marked this pull request as draft October 28, 2025 15:03
@Zaimwa9Zaimwa9 changed the title feat: sdk consumes context engine [draft]feat: sdk consumes context engineOct 29, 2025
@Zaimwa9
Zaimwa9 marked this pull request as ready for review October 29, 2025 09:41
@khvn26khvn26 mentioned this pull request Oct 30, 2025

@khvn26khvn26 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Left three comments.

Comment threadlib/flagsmith/engine/segments/models.rb Outdated
Comment threadlib/flagsmith/sdk/models/flags.rb Outdated
Comment threadlib/flagsmith/engine/core.rb Outdated
Comment threadlib/flagsmith/engine/segments/evaluator.rb
Co-authored-by: Kim Gustyr <kim.gustyr@flagsmith.com>
Comment threadlib/flagsmith/engine/segments/models.rb Outdated
@khvn26khvn26 changed the title feat: sdk consumes context enginefeat!: sdk consumes context engineNov 11, 2025
@khvn26

Copy link
Copy Markdown
Member

I'm still reluctant to approve this without seeing tests pass in CI. Can we modify branches in .github/workflows/pull_request.yaml so tests are ran against all PRs, not just the ones to main/release* branches?

@Zaimwa9
Zaimwa9 marked this pull request as draft November 11, 2025 13:55
@Zaimwa9
Zaimwa9 marked this pull request as ready for review November 11, 2025 13:55
…gsmith-ruby-client into feat/sdk-consumes-context-engine
@Zaimwa9

Copy link
Copy Markdown
ContributorAuthor

@khvn26 done for both

@Zaimwa9
Zaimwa9 requested a review from khvn26November 11, 2025 13:57
@khvn26

Copy link
Copy Markdown
Member

@Zaimwa9 Can you resolve the merge conflict?

@khvn26khvn26 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Happy to approve 👍

@Zaimwa9
Zaimwa9 merged commit fc1369a into feat/evaluation-get-resultNov 12, 2025
4 checks passed
Zaimwa9 added a commit that referenced this pull request Nov 12, 2025
* feat: added-engine-function-signatures
* feat: moved-engine-to-core
* feat: implemented-process-segment-overrides
* feat: implemented-evalute-segments-partially
* feat: implemented-should-apply-override
* feat: implemented-get-identity-segments
* feat: implemented-new-in-and-fixed-remaining-tests
* feat: run-lint
* feat: misc
* feat: json-path-lib-implementation
* remove dup
* feat: made-legacy-functions-public
* feat: updated-tests-to-match-engine-in-operator-accepting-numbers
* feat: engine-agnostic-to-empty-identity-in-segment-evaluation
* feat: renamed-to-is-higher-priority
* feat: renamed-get-identity-segments-func
* feat: reverted-to-is-primitive
* feat: use-weakest-priority-constant
* feat: upgraded-engine-test-data-and-fixed-mv-evaluation-bug
* feat: removed-targeting-reason-func
* feat: linter-rubocop-autocorrect
* feat: linter
* feat: linter
* feat: moved-mappers-to-engine-namespace
* feat: enrich-context-with-identity-key
* feat: run-ci-on-all-branches
* feat: removed-comments
* feat!: sdk consumes context engine (#89)
* fix: sdk-uses-new-engine-methods
* feat: introduced-jsonpath-library
* feat: fixed-conflict
* Update lib/flagsmith/engine/segments/models.rb
Co-authored-by: Kim Gustyr <kim.gustyr@flagsmith.com>
* Update lib/flagsmith/engine/segments/models.rb
* feat: removed-normalize
* feat: linter
* feat: replaced-flagsmith-id-with-id
* feat: removed-comments
---------
Co-authored-by: Kim Gustyr <kim.gustyr@flagsmith.com>
---------
Co-authored-by: Gagan Trivedi <gagandeeptrivedi47@gmail.com>
Co-authored-by: Kim Gustyr <kim.gustyr@flagsmith.com>
Zaimwa9 added a commit that referenced this pull request Nov 12, 2025
* fix: main-mappers-and-tests
* fix: added-metadata
* fix: renaming
* fix: comments
* fix: remoevd-redundant-test
* feat: reviewed-engine-test-todos
* Update lib/flagsmith/engine/evaluation/mappers.rb
Co-authored-by: Kim Gustyr <kim.gustyr@flagsmith.com>
* feat: use-overrides-key-hash
* feat: removed-identifiers-join
* feat: flagsmith-id-in-snake-case
* feat: run-lint
* feat: renamed-module-evaluation
* feat: fixed-priority-0-being-skipped
* feat: reverted-to-hash
* feat: linter
* feat: split-functions-and-module-for-linting
* feat: get-rid-of-extra-map-nested-rule-function
* feat: renaming-identity-methods
* feat: fixed-forgotten-func-renaming
* Update lib/flagsmith/engine/evaluation/mappers/environment.rb
Co-authored-by: Kim Gustyr <kim.gustyr@flagsmith.com>
* feat: added-name-env-model-and-fixture
* feat: moved-mappers-to-engine-namespace
* feat: removed-feature-key
* feat: linter
* feat: get evaluation get result (#88)
* feat: added-engine-function-signatures
* feat: moved-engine-to-core
* feat: implemented-process-segment-overrides
* feat: implemented-evalute-segments-partially
* feat: implemented-should-apply-override
* feat: implemented-get-identity-segments
* feat: implemented-new-in-and-fixed-remaining-tests
* feat: run-lint
* feat: misc
* feat: json-path-lib-implementation
* remove dup
* feat: made-legacy-functions-public
* feat: updated-tests-to-match-engine-in-operator-accepting-numbers
* feat: engine-agnostic-to-empty-identity-in-segment-evaluation
* feat: renamed-to-is-higher-priority
* feat: renamed-get-identity-segments-func
* feat: reverted-to-is-primitive
* feat: use-weakest-priority-constant
* feat: upgraded-engine-test-data-and-fixed-mv-evaluation-bug
* feat: removed-targeting-reason-func
* feat: linter-rubocop-autocorrect
* feat: linter
* feat: linter
* feat: moved-mappers-to-engine-namespace
* feat: enrich-context-with-identity-key
* feat: run-ci-on-all-branches
* feat: removed-comments
* feat!: sdk consumes context engine (#89)
* fix: sdk-uses-new-engine-methods
* feat: introduced-jsonpath-library
* feat: fixed-conflict
* Update lib/flagsmith/engine/segments/models.rb
Co-authored-by: Kim Gustyr <kim.gustyr@flagsmith.com>
* Update lib/flagsmith/engine/segments/models.rb
* feat: removed-normalize
* feat: linter
* feat: replaced-flagsmith-id-with-id
* feat: removed-comments
---------
Co-authored-by: Kim Gustyr <kim.gustyr@flagsmith.com>
---------
Co-authored-by: Gagan Trivedi <gagandeeptrivedi47@gmail.com>
Co-authored-by: Kim Gustyr <kim.gustyr@flagsmith.com>
---------
Co-authored-by: Kim Gustyr <kim.gustyr@flagsmith.com>
Co-authored-by: Gagan Trivedi <gagandeeptrivedi47@gmail.com>
Sign up for freeto 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.

4 participants

@Zaimwa9@khvn26@gagantrivedi@matthewelwell