Summary: | populate_db.pl should initialize ES mappings | ||
---|---|---|---|
Product: | Koha | Reporter: | Tomás Cohen Arazi (tcohen) <tomascohen> |
Component: | Installation and upgrade (command-line installer) | Assignee: | Tomás Cohen Arazi (tcohen) <tomascohen> |
Status: | CLOSED FIXED | QA Contact: | Testopia <testopia> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | jonathan.druart, kyle, nick |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Bug Depends on: | 10337 | ||
Bug Blocks: | |||
Attachments: |
Bug 17567: Make populate_db.pl initialize ES mappings
Bug 17567: Make populate_db.pl initialize ES mappings Bug 17567: Make populate_db.pl initialize ES mappings |
Description
Tomás Cohen Arazi (tcohen)
2016-11-07 14:15:58 UTC
Created attachment 57260 [details] [review] Bug 17567: Make populate_db.pl initialize ES mappings Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Created attachment 57262 [details] [review] Bug 17567: Make populate_db.pl initialize ES mappings To test: - Have a clean install, no DB - Run populate_db.pl: $ sudo koha-shell kohadev k$ cd kohaclone k$ misc/devel/populate_db.pl - Go to http://localhost:8081/cgi-bin/koha/admin/searchengine/elasticsearch/mappings.pl => FAIL: No mappings - Delete the DB and create an empty one: $ mysql -uroot > DROP DATABASE koha_kohadev; CREATE DATABASE koha_kohadev; > GRANT ALL PRIVILEGES ON koha_kohadev.* TO 'koha_kohadev'@'localhost'; - Run populate_db.pl: $ sudo koha-shell kohadev k$ cd kohaclone k$ misc/devel/populate_db.pl - Go to http://localhost:8081/cgi-bin/koha/admin/searchengine/elasticsearch/mappings.pl => SUCCESS: There are mappings! - Sign off :-D Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Tomas, I would build it on top of bug 17529, that way we could reindex the ES indexes as well. Created attachment 57454 [details] [review] Bug 17567: Make populate_db.pl initialize ES mappings To test: - Have a clean install, no DB - Run populate_db.pl: $ sudo koha-shell kohadev k$ cd kohaclone k$ misc/devel/populate_db.pl - Go to http://localhost:8081/cgi-bin/koha/admin/searchengine/elasticsearch/mappings.pl => FAIL: No mappings - Delete the DB and create an empty one: $ mysql -uroot > DROP DATABASE koha_kohadev; CREATE DATABASE koha_kohadev; > GRANT ALL PRIVILEGES ON koha_kohadev.* TO 'koha_kohadev'@'localhost'; - Run populate_db.pl: $ sudo koha-shell kohadev k$ cd kohaclone k$ misc/devel/populate_db.pl - Go to http://localhost:8081/cgi-bin/koha/admin/searchengine/elasticsearch/mappings.pl => SUCCESS: There are mappings! - Sign off :-D Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> Skipping QA, we need it ASAP. Pushed to master for 16.11, thanks Tomas! |