-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[Admin][Settings] Introduce role creation and modification capability #5823
Comments
Going to repost my questions form this PR for visibility! Additional QuestionsThis is the first piece for the new [Admin][Settings] Introduce role creation and modification capability ticket.
I am assuming that to support the example designs, I will be adding those attributes to the Additionally, the example designs seem to differentiate between "custom" and "standard" roles. Will we be creating new stock roles with default permissions sets and adding them to core/db/default/spree/roles.rb? If so, what will those default roles and permissions be? |
Just my two cents:
|
@rainerdema @kennyadsl What do you guys think of the above? Was any of this discussed internally during the sprint planning/design stages? |
Good points @MadelineCollier and @benjaminwil. I think that the design in Figma is an implementation of Solidus with the solidus_user_roles gem installed. That's where the confusion comes from, I guess. Now, it's still to be discovered how we want to get to the state described by the design. We could incorporate the code of the gem into Solidus core/admin. @MadelineCollier can you please explore if that's doable? That gem doesn't have a lot of code, I think the trickiest part will be keeping backward compatibility with people with custom roles and people who already have that gem installed.
👍 I also do
It could be useful to differentiate the roles that come with Solidus and those made custom by the merchant, but yeah, we can live without it.
Right, I think this was more to keep all the tables uniform, we can get rid of that part
Absolutely, maybe only custom roles (with no user associated) can be destroyed? That's where the type might be used. |
For sure I can look into this. Is the main backward compatibility issue just with re-running migrations on tables/columns that already exist? If so that should be easy to work around. Anything else I should look out for give me a shout but I'll get started.
Definitely, should be pretty easy. Same question though @kennyadsl should these new additions be added to
I agree that this is probably most valuable when comparing stock vs custom roles, so if core remains as is then it provides little value, but if
Sounds good, I can remove these once the other work is out of the way.
Agreed that we should just make "standard" or "stock" roles non-destroyable (at least non-destroyable from the web UI). Also agree that we can and should add validations that prevent any roles with associated users from being destroyed. |
I'd say that the changes to the models and business logic should be done in core. |
Description
Introduce a new interface for creating and editing roles.
Features
Figma Design
Storyboard
The text was updated successfully, but these errors were encountered: