https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21820
--- Comment #23 from Thomas Klausner <[email protected]> --- Created attachment 196216 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196216&action=edit Bug 21820: Add ElasticsearchEnableZebraQueue syspref to control Zebra indexing when using Elasticsearch Previously, Koha always added items to the Zebra queue when indexing via Elasticsearch. This adds a new system preference ElasticsearchEnableZebraQueue that allows disabling this behavior. Unit Test: * run the unit test t/db_dependent/Koha/SearchEngine/Elasticsearch/Indexer.t * there should be a new subtest like this: 1..5 ok 1 - We start with an empty zebra queue ok 2 - new entry in zebraqueue for auth ok 3 - new entry in zebraqueue for biblio ok 4 - no new entry in zebraqueue for auth ok 5 - no new entry in zebraqueue for biblio ok 5 - syspref ElasticsearchEnableZebraQueue Manual Test Plan: * Start ktd with Elasticsearch enabled * As there is no interface to the zebraqueue, you need to connect to the DB and use SQL directly * ktd --dbshell * `select count(*) from zebraqueue;` * remember that number * Edit any biblio or auth * Check the zebraqueue again via SQL * There should be one more entry * Now apply the patch * Then got to Sysprefs and set ElasticsearchEnableZebraQueue to `Disable` * Edit another biblio or auth * has to be a different one, because Koha will prevent the same ID to be added again to zebraqueue * Again check zebraqueue via SQL * There should be *no* new entry QA Note: the qa tool reports [FAIL] Koha/SearchEngine/Elasticsearch/Indexer.pm FAIL pod_coverage sub _get_record has no pod coverage. But this patch does not touch this code, so I guess this fail is caused by a stricter qa tool -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
