Sort by start date and end date in the roadmap view and epics list view
Description
- Have identical sorting options and UI in the roadmap view and the epics list view, to make things simple and reusable.
- Sorting should occur "after" you have rendered the roadmap page.
- That is, after you have loaded the page, and you have made your timescale selection, that will automatically determine which set of epic bars appear on the screen.
- And then from there, of those roadmap bars that appear on the screen, it should sort them per the sort chosen.
Details
- This issue adds sort by start date of the epic and the end date of the epic.
-
In the UI you should have functionality to sort in both directions. So sort by ascending/descending start date and the same for end date.https://gitlab.com/gitlab-org/gitlab-ee/issues/7210 - The sort direction is ascending for both dates. (ie closest to negative infinity time first).
- If a date is not set for a particular epic, and you sort on that date (regardless of direction), that epic appears last in the view.
- The sorting choice should be stored in the backend per user, for the entire instance. So if the user makes a different choice, that choice is saved and will be remembered anywhere else they log in. This one choice carries over to all roadmap and epic list views that the user views.
- To be clear: the sorting choice is applied to both epic list and epic roadmap, so if you switch between them, the sorting is the same.
- The new date sort options should be added to the epics list API.
- The dropdown should show these sorts:
Planned start date
Planned finish date
Created date
Last updated
The dropdown should be added to the roadmap view to the right of the search bar. It should be in the same as the epics list.
Edited by 🤖 GitLab Bot 🤖