Giter VIP home page Giter VIP logo

Comments (4)

joelvh avatar joelvh commented on June 2, 2024

What it should do is match the number of groups (as it does), but also LEFT OUTER JOIN on the group_memberships table again and filter on the group IDs to see if the total number of groups they're a member of equals the specific groups given.

Is there another way to solve that without the additional join?

from groupify.

joelvh avatar joelvh commented on June 2, 2024

One more thought. This gets complicated with calling User.in_only_groups(group1, group2).as('role') because the role needs to be factored in on both joins when as is called.

from groupify.

dwbutler avatar dwbutler commented on June 2, 2024

Yes, you're right. I noticed this problem before and fixed it in #58. It's been a busy few weeks and I haven't had a chance to release it.

IIRC my fix doesn't work with role filtering.

from groupify.

joelvh avatar joelvh commented on June 2, 2024

@dwbutler OK, great. I'll close this issue.

from groupify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.