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

Feature - Persistent groups #129

Closed

Conversation

yossi-eynav
Copy link
Contributor

We @ Fiverr often add the same users to new rollout.
Instead of adding them 1 by 1, we wanna create a persistent groups that holds all the user identifiers.
This way we can manage easily these groups from rollout dashboard.
what do you think ? @reneklacan
** unit tests should be added before any merge
thanks!

@yossi-eynav
Copy link
Contributor Author

@reneklacan ?

def include_in_group?(group, user_identifier)
group = group.to_s
user_identifier = user_identifier.to_s
refresh_persistent_groups

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would use more of cache pattern. move groups to be a method (getter) that refreshes the groups if needed.
refresh_persistent_groups not interesting in this method.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @LitalFiverr 👍

@yossi-eynav
Copy link
Contributor Author

@reneklacan ?

@yossi-eynav yossi-eynav closed this Nov 6, 2018
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.

None yet

2 participants