-
Notifications
You must be signed in to change notification settings - Fork 53
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: Redact anonymous attributes within feature events #246
feat: Redact anonymous attributes within feature events #246
Conversation
This pull request has been linked to Shortcut Story #228721: Anonymous attribute redaction for feature events. |
e9b0c8b
to
a3bfde1
Compare
lib/ldclient-rb/events.rb
Outdated
out[:default] = event.default unless event.default.nil? | ||
out[:variation] = event.variation unless event.variation.nil? | ||
out[:version] = event.version unless event.version.nil? | ||
out[:prereqOf] = event.prereq_of unless event.prereq_of.nil? | ||
out[:context] = @context_filter.filter(event.context) | ||
out[:context] = @context_filter.filter(event.context, true) |
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.
I'm not so sure as with Go so I'll defer to you, but I think it'd be clearer to have another method that takes the boolean param (filter_redact_anonymous
) or something? That way most callers don't change.
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.
I went ahead and introduced it to keep it consistent. I'll do this in the other implementations when possible.
c2eb498
to
77ebb82
Compare
🤖 I have created a release *beep* *boop* --- ## [8.3.0](8.2.0...8.3.0) (2024-03-14) ### Features * Inline contexts for all evaluation events ([#245](#245)) ([bd30c3b](bd30c3b)) * Redact anonymous attributes within feature events ([#246](#246)) ([640ac39](640ac39)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
No description provided.