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

fix(ESSNTL-4938): Hide systems count if no hosts:read #1933

Merged
merged 1 commit into from
Jul 12, 2023

Conversation

gkarat
Copy link
Contributor

@gkarat gkarat commented Jul 12, 2023

Fixes https://issues.redhat.com/browse/ESSNTL-4937?focusedId=22605892&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-22605892.

If users don't have inventory:hosts:read, then the groups table (/groups) must not show number of hosts for each group. "N/A" must be rendered instead. This was broken with https://github.com/RedHatInsights/insights-inventory-frontend/pull/1928/files#diff-8a000812b9df4b6f250a6030383a065b82497add0b572416ef6e92fc4f469b95R132.

How to test

Have an account with groups:read but with not hosts:read permissions. Go to /groups and check that all groups have "N/A" in their total systems number.

@gkarat gkarat added the bug Something isn't working label Jul 12, 2023
@gkarat gkarat requested a review from a team as a code owner July 12, 2023 15:36
@gkarat gkarat self-assigned this Jul 12, 2023
@computercamplove
Copy link
Contributor

lgtm! without hosts:read not able to see Total systems

@gkarat gkarat merged commit 6d164c5 into RedHatInsights:master Jul 12, 2023
@gkarat gkarat deleted the fix-4938 branch July 12, 2023 17:57
@gkarat
Copy link
Contributor Author

gkarat commented Jul 12, 2023

🎉 This PR is included in version 1.32.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants