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

--- Comment #16 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 211472
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211472&action=edit
Bug 39287: (QA follow-up) Add the rcn-volumes search field to existing
installations

The Elasticsearch mappings are stored in the database, and
mappings.yaml is only read when the mappings are reset. An existing
installation would not get the new rcn-volumes field, so "Show volumes"
would find nothing with Elasticsearch until the mappings had been reset.

Add the search field and its mappings in an atomic update, as was done
for other fields. It also completes the mappings of an installation that
only has some of them.

To test:
1. Make sure that you have Elasticsearch, and remove the rcn-volumes
   search field and its mappings if you have them:
   DELETE FROM search_field WHERE name = 'rcn-volumes';
2. Run
   $ perl installer/data/mysql/updatedatabase.pl
   => The field and its 5 mappings are added
3. Run it again
   => Nothing is added twice
4. Rebuild the Elasticsearch index and follow the test plan of the
   previous patch
5. Sign off

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to