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-5210): Check RBAC for null group id when hosts are not in any group #1976

Merged
merged 2 commits into from
Aug 15, 2023

Conversation

gkarat
Copy link
Contributor

@gkarat gkarat commented Aug 13, 2023

Implements https://issues.redhat.com/browse/ESSNTL-5210.

Must be merged after RedHatInsights/frontend-components#1886 is released.

At /inventory, users must have Delete (both bulk and per-row) and Edit actions enabled for hosts that are not in any group if the users have write permissions with group.id set to null.

  • Write cy tests

How to test

  1. Limit your inventory:hosts:write and inventory:hosts:read permission to only ungroupped hosts by setting group.id to null (see more details in the attached Jira)
    2.Navigate to /inventory and make sure you see the ungroupped hosts and able to edit or delete them.

@gkarat gkarat added the enhancement New feature or request label Aug 13, 2023
@gkarat gkarat self-assigned this Aug 13, 2023
@codecov-commenter
Copy link

codecov-commenter commented Aug 13, 2023

Codecov Report

Patch coverage: 16.66% and project coverage change: -1.37% ⚠️

Comparison is base (070d9e2) 63.45% compared to head (65917af) 62.09%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1976      +/-   ##
==========================================
- Coverage   63.45%   62.09%   -1.37%     
==========================================
  Files         151      151              
  Lines        4726     4741      +15     
  Branches     1369     1366       -3     
==========================================
- Hits         2999     2944      -55     
- Misses       1727     1797      +70     
Files Changed Coverage Δ
src/routes/InventoryTable.cy.js 0.00% <0.00%> (ø)
src/routes/InventoryTable.js 59.34% <100.00%> (-20.88%) ⬇️

... and 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gkarat gkarat marked this pull request as ready for review August 14, 2023 15:51
@gkarat gkarat requested a review from a team as a code owner August 14, 2023 15:51
@gkarat gkarat requested a review from Fewwy August 14, 2023 15:51
@gkarat gkarat merged commit 467fb37 into RedHatInsights:master Aug 15, 2023
@gkarat gkarat deleted the essntl-5210 branch August 15, 2023 16:23
@gkarat
Copy link
Contributor Author

gkarat commented Aug 15, 2023

🎉 This PR is included in version 1.36.1 🎉

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants