-
Notifications
You must be signed in to change notification settings - Fork 43
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
Groupify v1.0.0: Better STI/polymorphism and various fixes #61
base: master
Are you sure you want to change the base?
Groupify v1.0.0: Better STI/polymorphism and various fixes #61
Conversation
59626c5
to
1a598c9
Compare
This looks promising, but I shall want to see tests in order to have confidence that the solution here works. Also, it seems that |
@dwbutler changed out the What are some specific tests you would want to see? |
@dwbutler added some tests. Some direction on what tests to add is welcome. Thanks. |
@dwbutler Wanted to see if you had a chance to look at this? Thanks. |
@joelvh Sorry been a crazy few weeks. Definitely planning to get to this soon. |
@dwbutler got it. Will stand by. |
hi @dwbutler saw you were able to make some updates recently. Did you get a chance to look at these updates? |
d180018
to
c375da3
Compare
…ection for polymorphic groups compatibility
…ent is given otherwise returns collection
Fixed error by removing GROUP BY all together because selecting the ID column without being listed in the GROUP BY clause is not allowed in MySQL when in “strict” mode.
@dwbutler wanted to see if you had any more time to review this? |
@dwbutler checking in on your review of this. Anything I can do to help make the review easier for you? |
Hey @joelvh thanks for following up. Going through some personal stuff right now so I haven't had time to spend on open source like I usually do. I pretty much have full trust in you at this point. So when I have time, I'll figure out how to give you full access to the project so you can merge and release it. |
@dwbutler sorry to hear that. I'm happy to help maintain. I'll try to get a list of devs who might be interested in testing a Release Candidate, unless you have a list of people that might be interested. |
@joelvh Sorry for the long long delay. You should have full access now to this repository and to push the gem on rubygems. Welcome aboard! |
Would love to see this merged. Anything I can do to help? |
@rposborne Would you be interested in helping maintain Groupify as well? |
@dwbutler I don't have much time to offer, I do offer "gem gardening" though, If you just need someone else with the keys to make sure those who are eager have a point of contact. But I cannot take on any real responsibility :/ |
would be great to see this merged! Curious if you ended up getting access @joelvh ? |
Is this gem still being monitored and updated? |
I am no longer maintaining this gem. I don't write Ruby any more and don't use this gem, so it's difficult for me to stay involved in its maintenance. If anyone is interested in maintaining it, I would recommend forking it to a new organization. I can facilitate this if anyone is willing to take on the mantle. |
This has turned into an extensive refactor to improve STI/polymorphism. It also attempts to DRY up some aspects of the code.
has_group
andhas_member
class methods to configure associations (for STI)polymorphic_groups
andpolymorphic_members
groups
andmembers
association namesmembership_types_for_*
method on groups and group members to get list of membership typesas(membership_types)
or helper methods likeuser.in_any_group?(group1, group2, as: membership_types)
(using SQLIN(...)
/OR
query)merge!
on groups anddelete
ordestroy
on associationsPlease provide feedback.
Thanks!