Summary: | Mana - Add reading suggestions (crontab and scripts for Koha) | ||
---|---|---|---|
Product: | Koha | Reporter: | Baptiste <baptiste.wojtkowski> |
Component: | Web services | Assignee: | Bugs List <koha-bugs> |
Status: | BLOCKED --- | QA Contact: | Testopia <testopia> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | alexbuckley, katrin.fischer, lisetteslatah, m.de.rooy, paul.poulain, victor.grousset |
Version: | master | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Change sponsored?: | --- | Patch complexity: | Medium patch |
Bot Control: | --- | When did the bot last check this: | |
Who signed the patch off: | Text to go in the release notes: | ||
Bug Depends on: | 17047 | ||
Bug Blocks: | |||
Attachments: |
Bug 18618: Mana - Add scripts to send readings
Bug 18618: Mana - Add reading suggestion Bug 18618: Add a pagination for suggestions Bug 18618: Correct Plack issues Bug 18618: Mana - Add scripts to send readings Bug 18618: Mana - Add scripts to send readings Bug 18618: Mana - Add reading suggestion Bug 18618: Add a pagination for suggestions Bug 18618: Correct Plack issues |
Description
Baptiste
2017-05-17 08:03:51 UTC
Created attachment 63496 [details] [review] Bug 18618: Mana - Add scripts to send readings - There are 2 differents scripts: misc/cronjobs/mana_send_pairs.pl -> please use it if Mana is installed misc/cronjobs/mana_send_pairs_without_mana.pl -> designed to work if mana isn't enabled - Both of scripts anonymize the datas and send them to mana. Created attachment 63497 [details] [review] Bug 18618: Mana - Add reading suggestion There is now a module to get suggestions from Mana. - It is activated by default on Mana. - When you browse on a notice, there is now a tab called "Suggestions" - On click on the tab, it will check in the database if it has suggestions. - Else, it will ask to Mana for suggestions and will store in the database. - The suggestions are stored in the NEW table reading_pairs - Implement new dbix objets: Reading_suggestion and Reading_suggestions FYI: we've setup this cron for one of our customer (a modified version, with hardcoded token). It's harvesting pairs since more than 2 weeks now. We'll add 10 more in the next days. Most of them having about 100 to 1000 issues/day The mana-side code is available here : https://git.biblibre.com/biblibre/koha-mana. It's been deployed already on mana-kb and mana-test.koha-community.org (this has no consequence on existing API. It just add new routes for managing reading suggestions) Created attachment 64531 [details] [review] Bug 18618: Add a pagination for suggestions *** Suggestions are now sent from Mana as follows - Koha requests the first 20 suggestions - It processes them and estimates how much it will need to get all suggestions - It requests Mana the number of suggestions needed - It repeats the 3 first steps until (1) Mana doesn't have suggestions anymore (2) It got 10 suggestions to display *** Koha interface is a bit more verbose while searching (just a bit). Created attachment 64960 [details] [review] Bug 18618: Correct Plack issues Split one command line into two in order to be accepted by Plack Created attachment 65066 [details] [review] Bug 18618: Mana - Add scripts to send readings - There are 2 differents scripts: misc/cronjobs/mana_send_pairs.pl -> please use it if Mana is installed misc/cronjobs/mana_send_pairs_without_mana.pl -> designed to work if mana isn't enabled - Both of scripts anonymize the datas and send them to mana. Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com> Created attachment 65067 [details] [review] Bug 18618: Mana - Add scripts to send readings - There are 2 differents scripts: misc/cronjobs/mana_send_pairs.pl -> please use it if Mana is installed misc/cronjobs/mana_send_pairs_without_mana.pl -> designed to work if mana isn't enabled - Both of scripts anonymize the datas and send them to mana. Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com> Created attachment 65068 [details] [review] Bug 18618: Mana - Add reading suggestion There is now a module to get suggestions from Mana. - It is activated by default on Mana. - When you browse on a notice, there is now a tab called "Suggestions" - On click on the tab, it will check in the database if it has suggestions. - Else, it will ask to Mana for suggestions and will store in the database. - The suggestions are stored in the NEW table reading_pairs - Implement new dbix objets: Reading_suggestion and Reading_suggestions Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com> Created attachment 65069 [details] [review] Bug 18618: Add a pagination for suggestions *** Suggestions are now sent from Mana as follows - Koha requests the first 20 suggestions - It processes them and estimates how much it will need to get all suggestions - It requests Mana the number of suggestions needed - It repeats the 3 first steps until (1) Mana doesn't have suggestions anymore (2) It got 10 suggestions to display *** Koha interface is a bit more verbose while searching (just a bit). Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com> Created attachment 65070 [details] [review] Bug 18618: Correct Plack issues Split one command line into two in order to be accepted by Plack Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com> Baptiste doesn't work anymore at BibLibre. Unassigning to avoid signaling that this bug it still being supervized. Which could wrongly discourage someone to continue the work. BLOCKED by failed base patch bug 17047 *** Bug 18646 has been marked as a duplicate of this bug. *** |