-
Notifications
You must be signed in to change notification settings - Fork 6
feat: get evaluation get result #88
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: get evaluation get result #88
Conversation
| 'Integer' => ->(v) { | ||
| i = v.to_i; | ||
| i.to_s == v.to_s ? i : v | ||
| }, | ||
| 'Float' => ->(v) { | ||
| f = v.to_f; | ||
| f.to_s == v.to_s ? f : v | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This implementation is problematic and was fixed in incoming PR.
This would end up coerciting 123abc to 123abc 🔴
khvn26
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leaving some comments as a first pass.
I'd really like to see which engine tests fail for this PR — if it's something to better pursue locally rather than in CI, let me know, @Zaimwa9.
…h/flagsmith-ruby-client into feat/evaluation-get-result
…h/flagsmith-ruby-client into feat/evaluation-get-result
…h/flagsmith-ruby-client into feat/evaluation-get-result
* 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>
* 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>
No description provided.