[Koha-bugs] [Bug 19707] Add new operations for synchronizing Elasticsearch mappings

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon May 7 13:56:05 CEST 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19707

David Gustafsson <glasklas at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #75107|0                           |1
        is obsolete|                            |

--- Comment #10 from David Gustafsson <glasklas at gmail.com> ---
Created attachment 75108
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=75108&action=edit
Bug 19707 - Add new operations for synchronizing Elasticsearch mappings

Add new "merge", "revert" and "add" operations for synchronizing
Elasticsearch mappings stored in database with mappings.yaml

How to test:

1)  Make sure mappings.yaml contains mappings not present in database.
    (Also be aware that steps below will result in changed search engine
    configuration, so use a test environment and/or make sure to
    backup database before starting)
2)  Go to "Administration" and "Search Engine Configuration"
3)  Append ?i_know_what_i_am_doing=1&op=add to url and perform request
    in browser
4)  Verify that any new mappings in mappings.yaml has been added, but
    no current mappings has been modified or deleted
5)  Edit mappings.yaml and add a new mapping for some field (new item
    below "mappings:" key)
6)  Add a new mapping for the same field in the database (through admin ui)
7)  Append ?i_know_what_i_am_doing=1&op=merge to url and perform request
    in browser
8)  Verify that the new mapping from mappings.yaml has been added for this
field,
    while the field added in database was preserved
10) Append ?i_know_what_i_am_doing=1&op=revert to url and perform request
    in browser
11) Verify that the mapping previously added the field in database has
    been deleted, and the mappings for this field are identical to those
    in mappings.yaml

Sponsored-by: Gothenburg University Library

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list