It would be helpful to have the logs sort by date descending so that you can view the newest items at the top of the page rather than having to scroll to the bottom.
Created attachment 106769 [details] [review] Bug 25968: Make logs sort by date descending as a default This patch adds DataTables with columns configuration to the log viewer. The table of log entries is now sorted by default by date descending. To test, apply the patch and go to Administration -> Table settings. - Expand the "Tools" section and confirm that there is a section for "logviewer." - Go to Tools -> Log viewer. - Perform a search which will return multiple results. - Confirm that the results are sorted by date descending. - Test that the table controls work correctly: Paging, columns, export. - Return to the Table settings administration page and test that changes to those settings are correctly reflected in the log viewer table.
Created attachment 106967 [details] [review] Bug 25968: Make logs sort by date descending as a default This patch adds DataTables with columns configuration to the log viewer. The table of log entries is now sorted by default by date descending. To test, apply the patch and go to Administration -> Table settings. - Expand the "Tools" section and confirm that there is a section for "logviewer." - Go to Tools -> Log viewer. - Perform a search which will return multiple results. - Confirm that the results are sorted by date descending. - Test that the table controls work correctly: Paging, columns, export. - Return to the Table settings administration page and test that changes to those settings are correctly reflected in the log viewer table. Signed-off-by: barbara <barbara.johnson@bedfordtx.gov>
*** Bug 24251 has been marked as a duplicate of this bug. ***
Created attachment 107552 [details] [review] Bug 25968: Make logs sort by date descending as a default This patch adds DataTables with columns configuration to the log viewer. The table of log entries is now sorted by default by date descending. To test, apply the patch and go to Administration -> Table settings. - Expand the "Tools" section and confirm that there is a section for "logviewer." - Go to Tools -> Log viewer. - Perform a search which will return multiple results. - Confirm that the results are sorted by date descending. - Test that the table controls work correctly: Paging, columns, export. - Return to the Table settings administration page and test that changes to those settings are correctly reflected in the log viewer table. Signed-off-by: barbara <barbara.johnson@bedfordtx.gov> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Extended the bug description a bit and it looks like this also fixed the date sorting for different formats?
Created attachment 107593 [details] [review] Bug 25968: Make logs sort by date descending as a default This patch adds DataTables with columns configuration to the log viewer. The table of log entries is now sorted by default by date descending. To test, apply the patch and go to Administration -> Table settings. - Expand the "Tools" section and confirm that there is a section for "logviewer." - Go to Tools -> Log viewer. - Perform a search which will return multiple results. - Confirm that the results are sorted by date descending. - Test that the table controls work correctly: Paging, columns, export. - Return to the Table settings administration page and test that changes to those settings are correctly reflected in the log viewer table. Signed-off-by: barbara <barbara.johnson@bedfordtx.gov> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> JD amended patch: Fix indentation in .yml to match other entries
Pushed to master for 20.11, thanks to everybody involved!
Handy and small enhancement, choosing to backport to 20.05.x for 20.05.03
enhancement, not backported to 19.11.x (even though I agree, it is a handy one)
(In reply to Lucas Gass from comment #8) > Handy and small enhancement, choosing to backport to 20.05.x for 20.05.03 Lucas, there is a failure coming from this backport: 23:25:27 koha_1 | # Failed test '/kohadevbox/koha/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt' 23:25:27 koha_1 | # at xt/author/valid-templates.t line 141. 23:25:27 koha_1 | # plugin error - TablesSettings: plugin not found ColumnsSettings has been replaced by TablesSettings.
While handy, this patch does cause some problems in 20.05 as Jonathan mentions. Since it is an enhancement I am reverting it from the 20.05.x series. no 20.05.x backport
*** Bug 27809 has been marked as a duplicate of this bug. ***