-
-
Notifications
You must be signed in to change notification settings - Fork 399
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
Rename "Show Exceptions" checkbox to "Only Show Exceptions" which more actually reflects its function #4056
Comments
From my perspective it's working as designed. If the default is to deny, then an exception would be where the user has access. If the default is to allow, then an exception would be where the user does not have access. The behavior is right. If you have a problem with the wording, I'm all in for ideas. |
It's not an 'Access Granted' or 'Access Denied' thing. But maybe it should be. You should write a very precise description of:
Keep it simple. |
I think the confusion comes in that the selection toggles what is displayed rather than including more. This may be one of those situations where either a two value drop down or a pair of on/off buttons are used to toggle between the two? One for further thought. |
Thank you for your replies. I'm sorry if the explanation was not clear.
It's something along those lines, yes. To be clear:
When the list of trees is first shown, "Show Exceptions" is checked. This becomes more confusing when the checkbox is unchecked and all tree items appear. Maybe this description was more complicated, I'm sorry if so.
Given the current behavior, it should be called "Only Show Exceptions". |
I will agree with that conclusion. |
I'm okay with adding 'Only'. |
Alright, I can do a PR soon. Also, could you please confirm that the same applies in: I could also do a PR for that; not sure it's worth opening another issue. |
Users and groups have common permission interface. |
Now that I'm trying to fix it, I've realized that it also applies in "Device Perms" and "Template Perms". Also, it requires the string to be updated in all supported languages. |
Your pull request needs to include the updated |
@TheWitness the |
Regardless, don't commit any of those changes to your local repo. |
Should I commit only the lines changed in |
All the php changes and then the whole cacti.pot after you run the command. Don't forget the CHANGLELOG too. |
Ok, I've done that. Is this alright (notice a lot of things were changed there)? Also, I haven't touched the CHANGLELOG yet. |
"Show Exceptions" checkbox appears to behave as if it were "Only Show Exceptions"
Sorry about the confusion and thank you for fixing it, @TheWitness. |
Describe the bug
When editing tree permissions for a given user (or user group, although not tested), the "Show Exceptions" checkbox appears to behave as if it were "Only Show Exceptions".
In addition, it is checked by default; therefore, by default, only exceptions are shown. Because of this, a user might think that default policies which are not exceptions do not exist.
e.g. suppose the default policy is "Allow". If I want to change it to "Deny" for a tree, I'd have to the uncheck "Show Exceptions" checkbox to see the trees with default value in the list, which does not make sense.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
When the "Show Exceptions" checkbox is checked, all values should be shown, not just the exceptions.
When presented with a list of "search results" and a checkbox saying "show X", the idea I get as a user is that having that checkbox marked will cause the results to show "X" in addition to other things. However, what is happening is that when the checkbox is marked, only X are shown. Therefore, the checkbox should read "Show Exceptions Only".
Also, I would argue that it should be unchecked by default, as to show everything explicitly.
Screenshots
"Show exceptions" is checked. Exceptions would appear if there were any. The problem is that policies with the default value are hidden:
![default](https://user-images.githubusercontent.com/6828187/104621661-464e2700-5688-11eb-8138-099959a0fb4d.png)
When "show exceptions" is unckecked, default value appears for each tree which does not have an expection:
![not_default](https://user-images.githubusercontent.com/6828187/104621726-5534d980-5688-11eb-8b34-533b04ee78d0.png)
Additional context
Tested on
1.2.11
and1.2.16
.The text was updated successfully, but these errors were encountered: