-
Notifications
You must be signed in to change notification settings - Fork 10
Issue 335 update targeting event #352
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
Conversation
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.
There was an Event that was no longer used iirc
can you double check if it's true and remove it?
@@ -45,8 +47,10 @@ pub async fn check_access( | |||
events: &[Event], | |||
) -> Result<(), Error> { | |||
let is_close_event = |e: &Event| matches!(e, Event::Close); | |||
let is_update_targeting_event = |e: &Event| matches!(e, Event::UpdateTargeting { .. }); |
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.
Do we allow only 1 event to update the targeting per request?
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.
Looks almost ready 👍
Regarding testing and Redis, check this issue that can be tackled separately: #357
closes #335