kitodo-production icon indicating copy to clipboard operation
kitodo-production copied to clipboard

Remember sort order in task, user and project list

Open thomaslow opened this issue 3 years ago • 1 comments

Currently, when working with the task, user and project list only the pagination is preserved when editing something and going back to the respective list. This is achieved via an URL parameter keepPagination that is added when navigating to the task, user or project list page. With pull request #5358, a new mechanism was introduced (based on the Primefaces property multiViewState) that can be used to preserve both the sort order and pagination state.

This ticket proposes to apply these changes also to the task, user and project list.

Tasks

  • [ ] Add multiViewState={true} to the DataTable components of the user, task, project lists
  • [ ] Remove the keepPagination url parameter and logic
  • [ ] Reset the multi view state via PrimeFaces.current().multiViewState().clear(...) whenever appropriate (e.g. when navigating via the main menu)
  • [ ] Add selenium tests to check that sort order is remembered correctly

thomaslow avatar Oct 13 '22 07:10 thomaslow

Hello, @thomaslow I would like to contribute.

DevPJ9 avatar Oct 14 '22 05:10 DevPJ9

Hi @DevPJ9, welcome to Kitodo. Please feel free to open a pull request if you want to participate in the development of Kitodo.Production. You can some coding guidelines https://www.kitodo.org/fileadmin/groups/kitodo/Dokumente/Kitodo_Developer_Guidelines_2017-06.pdf

solth avatar Dec 01 '22 23:12 solth