Skip to content

Conversation

@Zaimwa9
Copy link
Contributor

@Zaimwa9 Zaimwa9 commented Oct 28, 2025

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 owner October 28, 2025 15:03
@Zaimwa9 Zaimwa9 requested review from khvn26 and removed request for a team October 28, 2025 15:03
@Zaimwa9 Zaimwa9 marked this pull request as draft October 28, 2025 15:03
@Zaimwa9 Zaimwa9 changed the title feat: sdk consumes context engine [draft] feat: sdk consumes context engine Oct 29, 2025
@Zaimwa9 Zaimwa9 marked this pull request as ready for review October 29, 2025 09:41
Copy link
Member

@khvn26 khvn26 left a comment

Choose a reason for hiding this comment

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

Left three comments.

Co-authored-by: Kim Gustyr <kim.gustyr@flagsmith.com>
@khvn26 khvn26 changed the title feat: sdk consumes context engine feat!: sdk consumes context engine Nov 11, 2025
@khvn26
Copy link
Member

khvn26 commented Nov 11, 2025

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 requested a review from gagantrivedi November 11, 2025 12:25
@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
Contributor Author

Zaimwa9 commented Nov 11, 2025

@khvn26 done for both

@Zaimwa9 Zaimwa9 requested a review from khvn26 November 11, 2025 13:57
@khvn26
Copy link
Member

khvn26 commented Nov 11, 2025

@Zaimwa9 Can you resolve the merge conflict?

Copy link
Member

@khvn26 khvn26 left a comment

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-result Nov 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 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.

4 participants