-
-
Notifications
You must be signed in to change notification settings - Fork 170
Meteor 3 support for v2 branch #404
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
Comments
Thank you for submitting this issue! We, the Members of Meteor Community Packages take every issue seriously. However, we contribute to these packages mostly in our free time. If you think this issue is trivial to solve, don't hesitate to submit Please also consider sponsoring the maintainers of the package. |
@alanning I like this idea. Curious, why'd you close the issue? |
Hi @jamauro, since we are updating our app from Roles v1, we have some flexibility in what we do. After taking a closer look at v2 and the parts that we actually use in our app, I felt it would be better for us to just do a minimal update to Roles v1 and keep the API small. Actually we plan to reduce the exposed functions to only:
We will also be changing the DB structure of v1 to allow it to be indexable:
I had thought v2 used this structure but rather than a permissions array, v2 uses a separate object for each permission. If you are interested in this minimal version of Roles, let me know and we can release it publicly. Otherwise, we will probably just have it be a private package. |
Cool, even better. I'm interested in a minimal version. My only quick feedback would be:
|
@jamauro Sounds good. Regarding your usage, yes, we can keep Also, do you have code that would use Roles outside of a Meteor environment? For us, we use it both inside the Meteor context on our webservers and also in our AWS Lambda functions. In the AWS Lambda we use a minimal NPM port of Roles which doesn't include any Meteor-specific features: https://github.com/alanning/roles-npm I'm curious if we could structure this new "tiny-roles" package as a NPM package at its core with a Meteor package wrapper that hooks it into the Meteor Mongo collections... |
@alanning Cool sounds good. Yes, I’m basically using it to determine if they have any type of membership. Thanks for the tip.
No but I think the approach you mentioned sounds fine. Would be curious to hear how the experience goes. If it’s relatively smooth, I’d imagine others would be interested to hear and could follow a similar strategy where it makes sense with their packages. |
Our company is starting to research adding Meteor 3 support to the v2 branch and I wanted to post here in case others had already done any work towards that or would be interested in using the result.
Re: why v2, we prefer the nosql db structure of the v2 branch over the relational-style db structure of the v3 branch.
Goal is not to be feature-complete with Roles v3 or v4. Personally, I'm interested in exploring whether the library could be made to run both inside the Meteor environment and outside for use in Lambda functions, for example.
Any thoughts on making the transition are welcome.
The text was updated successfully, but these errors were encountered: