ILIAS icon indicating copy to clipboard operation
ILIAS copied to clipboard

T&A: Refactor ilTestTopList according to data table component

Open lukas-heinrich opened this issue 1 year ago • 0 comments

Refactors ilTestTopListTable by using the DataTable component instead of ilTable2GUI inheritance. Removes unnecessary code and adjusts the unit tests:

  • Outsources database query to new repository class and use a generator instead of returning the complete array
  • Creates a new Table class that implements the creation and formatting of columns and rows
  • Adapts unit tests to the new structure and creates test case for formatting the time span
  • Streamlines the code by passing queries with parameters for sorting and display type to general functions

lukas-heinrich avatar Oct 21 '24 13:10 lukas-heinrich