Skip to content

Commit

Permalink
fix(ESSNTL-3727): Hide Group filter (#1823)
Browse files Browse the repository at this point in the history
Hides the Group filter on the group systems view (/groups/%id).
  • Loading branch information
gkarat authored Apr 3, 2023
1 parent 9f97e0e commit 7657a7e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/GroupSystems/GroupSystems.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
checkTableHeaders,
CHIP,
CHIP_GROUP,
DROPDOWN_ITEM,
DROPDOWN_TOGGLE,
hasChip,
MODAL,
Expand Down Expand Up @@ -252,6 +253,10 @@ describe('filtering', () => {
cy.wait('@getHosts'); // TODO: reset filters shouldn't trigger this second extra call
});

it('should not contain group filter', () => {
cy.get('button[data-ouia-component-id="ConditionalFilter"]').click();
cy.get(DROPDOWN_ITEM).should('not.contain', 'Group');
});
// TODO: add more filter cases
});

Expand Down
1 change: 1 addition & 0 deletions src/components/GroupSystems/GroupSystems.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ const GroupSystems = ({ groupName, groupId }) => {
{
!isModalOpen &&
<InventoryTable
hideFilters={{ hostGroupFilter: true }}
columns={prepareColumns}
getEntities={async (items, config, showTags, defaultGetEntities) =>
await defaultGetEntities(
Expand Down

0 comments on commit 7657a7e

Please sign in to comment.