Bug 26991: Add action logs to search engine administration
authorFridolin Somers <fridolin.somers@biblibre.com>
Tue, 10 Nov 2020 14:51:24 +0000 (15:51 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 25 Jan 2021 13:57:22 +0000 (14:57 +0100)
commit106bc0b1b6f8aef7656669a0d480667d968f03c4
treec641112f55a498bcd9ebd5ffe64c82b194ce728e
parentfce635efb52ab4d954cfa663c83148bfc2da1a61
Bug 26991: Add action logs to search engine administration

Search engine administration is very important,
we should log who/when it is changed.
I don't add a preference system to disable it,
like there is no for preference system logs.

Test plan :
1) Use searchengine Elasticsearch
2) Go to Administation > Search engine configuration (Elasticsearch)
3) Click on 'Reset Mappings' and accept
4) Edit some lines and save
5) Go to 'Tools' > 'Log viewer'
6) Select only 'Search engine' in Modules and submit
7) Select only 'Edit mappings' in Actions
8) Check you see a log
9) Select only 'Reset mappings' in Actions
10) Check you see a log

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 5bc62d240cfa0e026876cbbbef79731ed3877949)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
admin/searchengine/elasticsearch/mappings.pl
koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt