-
Notifications
You must be signed in to change notification settings - Fork 9
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
chore: Remove User.in_test_group?/2, which isn't called anywhere #2357
Conversation
de24b7f
to
19a2a72
Compare
Coverage of commit
|
Coverage of commit
|
I have slightly mixed feelings on this because we're not using it at the moment but we'll probably use it again plenty of times, but thanks to git history and everything it will be very easy to resurrect this function whenever we need it. |
@lemald I actually wonder if we might be able to use something like user
|> User.all_test_group_names()
|> Enum.member?("whatever") instead? Which would then have an a priori guarantee that listing a user's test groups and checking whether a user is in a test group will never get out of sync with one another (I almost goofed on that when I was adding the override feature. |
But if we think we're going to want to resurrect this, then I almost would rather not delete it. |
Yes, that's a good point, and it's simple enough logic for a user of the test group API to implement. I say go ahead and delete! |
No description provided.