Skip to content
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

fix(OFREP): keep targetingKey in the custom data to continue to have rules enabled #1905

Merged
merged 5 commits into from
May 21, 2024

Conversation

thomaspoignant
Copy link
Owner

Description

When calling the evaluation for OFREP we had an issue writing rules using targetingKey as key because it was removed from the evaluation context (in favor of key).

In this PR we stop removing targetingKey to be able to use both key names.

Closes issue(s)

Resolve #1898

Checklist

  • I have tested this code
  • I have added unit test to cover this code
  • I have updated the documentation (README.md and /website/docs)
  • I have followed the contributing guide

Copy link

netlify bot commented May 21, 2024

Deploy Preview for go-feature-flag-doc-preview canceled.

Name Link
🔨 Latest commit 8779da2
🔍 Latest deploy log https://app.netlify.com/sites/go-feature-flag-doc-preview/deploys/664cde958abea00008c86709

Copy link

codecov bot commented May 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.80%. Comparing base (7ad4754) to head (8779da2).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1905      +/-   ##
==========================================
- Coverage   86.80%   86.80%   -0.01%     
==========================================
  Files          95       95              
  Lines        3433     3432       -1     
==========================================
- Hits         2980     2979       -1     
  Misses        349      349              
  Partials      104      104              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

sonarcloud bot commented May 21, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@thomaspoignant thomaspoignant merged commit 8185c5f into main May 21, 2024
22 checks passed
@thomaspoignant thomaspoignant deleted the fix-1898 branch May 21, 2024 21:01
thomaspoignant added a commit that referenced this pull request Sep 5, 2024
…rules enabled (#1905)

* keep targetingKey in the custom data to continue to have rules enabled

Signed-off-by: Thomas Poignant <[email protected]>

* Fix tests

Signed-off-by: Thomas Poignant <[email protected]>

---------

Signed-off-by: Thomas Poignant <[email protected]>
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.

(bug) targetingKey does not work in the query of targeting rule using OFREP
1 participant