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

feat: Redact anonymous attributes within feature events #246

Merged
merged 2 commits into from
Jan 16, 2024

Conversation

keelerm84
Copy link
Member

No description provided.

@keelerm84 keelerm84 requested a review from a team January 9, 2024 16:10
Copy link

This pull request has been linked to Shortcut Story #228721: Anonymous attribute redaction for feature events.

@keelerm84 keelerm84 force-pushed the mk/sc-228721/anonymous-redaction branch from e9b0c8b to a3bfde1 Compare January 9, 2024 19:26
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)
Copy link
Contributor

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.

Copy link
Member Author

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.

Base automatically changed from mk/sc-223829/inline-contexts to feat/inline-contexts January 16, 2024 15:14
@keelerm84 keelerm84 force-pushed the mk/sc-228721/anonymous-redaction branch from c2eb498 to 77ebb82 Compare January 16, 2024 15:15
@keelerm84 keelerm84 merged commit f894a33 into feat/inline-contexts Jan 16, 2024
1 check passed
@keelerm84 keelerm84 deleted the mk/sc-228721/anonymous-redaction branch January 16, 2024 15:17
keelerm84 pushed a commit that referenced this pull request Mar 14, 2024
🤖 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>
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.

2 participants