server icon indicating copy to clipboard operation
server copied to clipboard

[ENHANCEMENT]: newUI: frontend sort for tables that are not paginated

Open jessevz opened this issue 5 months ago • 2 comments

Description

In one of the latest pull request we changed sorting to backend sorting. But for a few tables we disable pagination because it doesn't make sense there. In this case, it would be nice, when pagination has been set to false, to perform frontend sorting (the old way of sorting), so that no backend requests have to be made to sort the data. This way it is also possible to sort on included data.

This should be done in the following tables:

  • Assigned agents (http://localhost:4200/#/tasks/show-tasks/4/edit)
  • Included hashlists in superhashlist (http://localhost:4200/#/hashlists/hashlist/250/edit)
  • Included files in pretasks (http://localhost:4200/#/tasks/preconfigured-tasks/27/edit) (This one even has pagination enabled while it cant be paginated currently)
  • included files in tasks (http://localhost:4200/#/tasks/show-tasks/185/edit)
  • sub tasks of running supertask (http://localhost:4200/#/tasks/show-tasks), also the default sort should be on priority

jessevz avatar Jul 31 '25 09:07 jessevz

Technically this could result into out of memory errors, because there wont be backend pagination, but for these scenarios i dont see that happening, since there would be a very high number of agents or hashlists in superhashlist

jessevz avatar Sep 03 '25 11:09 jessevz

@cv5ch @gluafamichl @gpascal123 can you please disable pagination for Included files in pretasks?

ObsidianOracle avatar Oct 21 '25 12:10 ObsidianOracle