groupify icon indicating copy to clipboard operation
groupify copied to clipboard

nesting groups inside groups

Open eyalrosen opened this issue 7 years ago • 7 comments

Hi, Is it possible to nest groups inside groups? Thanks

eyalrosen avatar Apr 01 '17 14:04 eyalrosen

This is not currently possible out of the box. Supporting this would be very complex. What use case do you have in mind?

You can make a group a member of another group. But this does not affect group membership.

dwbutler avatar Apr 01 '17 15:04 dwbutler

I need to develop an app in hierarchical groups (School > Department > Class)

eyalrosen avatar Apr 01 '17 15:04 eyalrosen

I would recommend using an excellent gem such as Closure Tree to store the hierarchy. And then add some business logic in your application that adds the user to the parent groups when they are added to a group. (And removes them from the parent groups when they are removed.)

dwbutler avatar Apr 01 '17 15:04 dwbutler

Thanks!

eyalrosen avatar Apr 02 '17 10:04 eyalrosen

@eyalrosen I'm curious to know what your solution was. It's a common question and it would be great to document solutions in the readme.

dwbutler avatar Apr 11 '17 22:04 dwbutler

still checking it out, I'll keep you updated :)

eyalrosen avatar Apr 13 '17 19:04 eyalrosen

@eyalrosen Did you ever find a solution to your issue? I'm interested in the same functionality.

monroemann avatar Aug 19 '18 04:08 monroemann