-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
A license should have multiple users #534
Comments
|
Current plan is to add a To retain backwards compatibility with current API behavior, we should leave the existing One difficultly with this decision is creating a |
After writing a couple POC implementations, I decided that rather than dealing with unioning a new has-many association with the old |
How should permissions be handled for a license? We'll be moving from a license intersecting its user's permissions, to…? Should we have a "primary" user for a license, for the license's permissions to intersect with? Should we drop the concept of a license's permissions intersecting their users' permissions? How could we do this in a backwards compatible way? Should see if we can swing intersecting a license's permissions with all of its users? Lots of questions here that I hadn't thought about… Intersecting a license's permissions with a primary user, or with all of its users' permissions seem like the only 2 solutions here that are backwards compatible. Need to think on what would be the most performant way to accomplish that. What's funny is that the |
With the permissions problem in mind, what if we went in a new direction with #768…
This could let us recycle the Moving to an owner model also allows for use-cases where a manager can assign/unassign users to a license, which is pretty common and one of the use-cases #604 was meant to accomplish (on a larger scale). |
One of the challenges here would be that But that may actually be worth exploring a solution for: has_many :users, union_of: %i[owner licensees] Let's write up a POC and see what it looks like. (Such a solution could also eventually be used for entitlements as well.) |
What if we kept the API changes to a minimum — keep the Would still need the |
We'd also need to union has_many :licenses, UserHasManyLicensesAssociation.new I may explore this idea in particular. |
Should we also rename |
Reopening because #774 had to be reverted. |
Related to #533. For project-based licenses, where a main licensee can invite other licensees to utilize the same license. Or for company-wide licenses for particular named-users.
The text was updated successfully, but these errors were encountered: