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

Group management filtering #387

Merged
merged 27 commits into from
Feb 6, 2024
Merged

Group management filtering #387

merged 27 commits into from
Feb 6, 2024

Conversation

benwaples
Copy link
Contributor

Description

Adds a Filter section to Group Managment tab where one can filter on Node Type and custom member.

Motivation and Context

This should help with narrowing search results in the group management tab.

How Has This Been Tested?

Manual Tests. Adding unit and integration tests in a later PR

Screenshots (if appropriate):

Screen.Recording.2024-02-05.at.8.27.28.AM.mov

Types of changes

  • Chore (a change that does not modify the application functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • Documentation updates are needed, and have been made accordingly.
  • I have added and/or updated tests to cover my changes.
  • All new and existing tests passed.
  • My changes include a database migration.

@definitelynotagoblin definitelynotagoblin marked this pull request as ready for review February 5, 2024 18:51
@definitelynotagoblin definitelynotagoblin marked this pull request as draft February 5, 2024 18:52
@benwaples benwaples marked this pull request as ready for review February 5, 2024 19:25
const { screen } = await setup({ filterParams, availableNodeKinds });
const checkbox = screen.getByTestId('asset-groups-custom-member-filter');

expect((checkbox.firstChild as HTMLInputElement)?.checked).toBe(true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we explicitly set the filterParams value to true here instead of trusting that the mock factory provides this value?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah great suggestion! And it's more explicit

@benwaples benwaples merged commit 8cceb88 into main Feb 6, 2024
3 checks passed
@benwaples benwaples deleted the group-management-filtering branch February 6, 2024 18:05
@github-actions github-actions bot locked and limited conversation to collaborators Feb 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants