Sorting groups/projects clears search filter
Summary
Sorting clears the filter input and shows all objects sorted.
Might be good to sync up on the UX pattern with https://gitlab.com/gitlab-org/gitlab-ce/issues/49627 if it's decided that the sort should respect the filter input or not.
The following discussion from !20262 (merged) should be addressed:
-
@winh started a discussion: Filter is cleared when changing sort order:
Steps to reproduce
- Go to any of the following pages:
- Project Overview
- Your/Explore Projects
- Your/Explore Groups
- Filter objects with any search term.
- Use the sort dropdown to sort objects on the page.
- Observe the results come back sorted, but unfiltered with the filter input empty.
What is the current bug behavior?
Sorting clears the filter input and shows all objects sorted.
What is the expected correct behavior?
If there's a filter, sort and preserve the search term in the filter input.
Relevant logs and/or screenshots
Possible fixes
Something to the tune of accounting/preserving the filter parameter while sorting.
Edited by Dennis Tang
