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:

    group-filter-sort

Steps to reproduce

  1. Go to any of the following pages:
  • Project Overview
  • Your/Explore Projects
  • Your/Explore Groups
  1. Filter objects with any search term.
  2. Use the sort dropdown to sort objects on the page.
  3. 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

filter-sort-snafu-groups-projects

Possible fixes

Something to the tune of accounting/preserving the filter parameter while sorting.

Edited Aug 13, 2018 by Dennis Tang
Assignee Loading
Time tracking Loading