Description of problem:
Button group is shown in self-service portal even when no buttons or rights are assigned.
Version-Release number of selected component (if applicable):
How reproducible: 100%
Steps to Reproduce:
Create one button group with one button.
- Navigate to Automation -> Automate -> Customization -> Buttons -> Configuration -> Add a new button group under VM and instance.
- Create a button with Visibility Expression "VM and Instance.My Company Tags : Department CONTAINS 'Marketing'".
- Set the button visibility to all.
Refer - button.png
In the Operational portal, the button group is not shown in VM and Instances.
In self UI, the button group is visible in VM and Instances.
It should not be shown when visibility expression does not match.
Created attachment 1450866 [details]
I took a look this ticket and believe it should be assigned over to API team because Service UI doesn't do any work to figure out what should be displayed when data comes back from the API. If the API returns it, service UI will render it. Let me know if you would like me to help test this later after they have made a change to ensure the API doesn't return this information.
New commit detected on ManageIQ/manageiq/master:
Author: Dávid Halász <firstname.lastname@example.org>
AuthorDate: Tue Jun 19 07:10:50 2018 -0400
Commit: Dávid Halász <email@example.com>
CommitDate: Tue Jun 19 07:10:50 2018 -0400
Reject empty button groups from the result of #custom_actions
app/models/mixins/custom_actions_mixin.rb | 2 +-
spec/models/mixins/custom_actions_mixin_spec.rb | 31 +
2 files changed, 32 insertions(+), 1 deletion(-)
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.