Skip to content
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

UI component constraints #472

Open
andreysubbotin opened this issue Feb 16, 2021 · 4 comments
Open

UI component constraints #472

andreysubbotin opened this issue Feb 16, 2021 · 4 comments
Labels
candidate Possible candidate for future releases in: flowui in: security size: L

Comments

@andreysubbotin
Copy link
Contributor

andreysubbotin commented Feb 16, 2021

Like CUBA screen component permissions.

@alexbudarov
Copy link

For now decided we don't want them (they are out of deny-by-default concept).

@fredbar
Copy link

fredbar commented Nov 14, 2021

That is pretty unfortunate, imho.
To circumvent, this forces to add ugly tests everywhere based on role parsing OR duplicate pages and trick with fragments OR duplicate pages and end up with a maintenance nightmare.
None of this has the elegance of the previous permission system.

However, nothing forbids you from implementing it as a deny-by-default system. "Just" add tools to ease user task of deep-enabling, or add permission/role based fields to components so that can be set in xml and controller.
I was pretty happy of working in jmix compared to cuba, until now. I seriously think about going back just for this feature.

@gorbunkov gorbunkov transferred this issue from jmix-projects/jmix-security Mar 20, 2022
@umeshhodwala
Copy link

This is very much required and i was using it frequently. without this jmix just become LOB app tool for self projects.

I make apps in cuba/jmix and host them for clients. All clients have different requirements for roles and permission available to them. With cuba it was very easy as each resource cant be enabled/disabled/hide based on role. In jmix it is impossible unless i develop application separately for my clients.

On one of my projects (already in production) i have more than 200 such permutation & combination with roles. How can i implement this in code and what happens when some client ask for a new role (I re-code and re-build) the system?

The security model atleat as in cuba is must. for positive consideration

@mfpedrotti
Copy link

I apologize if the google translation doesn't help much, but I'll comment.

As simple as it may be, there are a number of actions outside the normal include, change, and delete pattern.

a tool like Jmix where the objective is to be agile and fast, but the same mechanics are not seen in this part, I understand why it is not simple to elaborate something, but having the resource, which is more agile and simple for the developer is very important

as others have commented above, there are many places to validate yourself.

But before that, I still think that the screen for configuring permissions could be more intelligent, for example, allowing editing whether the actions will be allowed or not, or copying a profile and changing it, excluding unwanted actions, but I see that the user would be too extensive, not being practical for the day-to-day user.

It would be of great value, at the very least, to evaluate it again and maybe think of something that could speed up and facilitate, for everyone, developer and end user.

@knstvk knstvk changed the title Support UI element constraints like in CUBA UI element constraints Mar 6, 2023
@knstvk knstvk changed the title UI element constraints UI component constraints Mar 6, 2023
@knstvk knstvk added this to Some day in Jmix Roadmap Mar 6, 2023
@knstvk knstvk moved this from Some day to February 2024 release 2.2 in Jmix Roadmap Jul 5, 2023
@knstvk knstvk added the size: L label Jul 5, 2023
@knstvk knstvk moved this from February 2024 release 2.2 to Some day in Jmix Roadmap Jul 12, 2023
@knstvk knstvk removed this from 2025 in Jmix Roadmap Feb 21, 2024
@gorbunkov gorbunkov added candidate Possible candidate for future releases and removed in: ui labels Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
candidate Possible candidate for future releases in: flowui in: security size: L
Projects
None yet
Development

No branches or pull requests

7 participants