[Bug 41508] New: bulkmarcimport.pl: Add option to clean deleted* tables when -d is used
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41508 Bug ID: 41508 Summary: bulkmarcimport.pl: Add option to clean deleted* tables when -d is used Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Command-line Utilities Assignee: koha-bugs@lists.koha-community.org Reporter: katrin.fischer@bsz-bw.de QA Contact: testopia@bugs.koha-community.org CC: robin@catalyst.net.nz As bulkmarcimport is mostly used for doing the initial loading of a database and already allows to delete all bibliographic and authority records using the -d parameter, it would also make sense to offere an option to clean the deleted* tables in the same step as starting a new import. Maybe this should be optional as bulkmarcimport also provides some matching capabilities that indicate it's not always used on an empty db. But if you delete "all" with -d it might still be a safe assumption? Having some warnings in place about the change might be good. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41508 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=41008 -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41508 Alexander Wagner <alexander.wagner@desy.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |alexander.wagner@desy.de --- Comment #1 from Alexander Wagner <alexander.wagner@desy.de> --- I wonder: if you delete in the db here, shouldn't this also happen to the search index (whatever one is used)? Just as I ran into some funny behaviour the other day that was cured by cleaning up the Zebras. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41508 --- Comment #2 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- It's an interesting question. We used to stop the koha-indexer and do a full index after, that will reset properly. If you want to use the koha-indexer, you can reset the indexes before importing, we use: $ sudo koha-shell -l SITE $ zebraidx -c /etc/koha/sites/SITE/zebra-biblios-dom.cfg init $ zebraidx -c /etc/koha/sites/SITE/zebra-authorities-dom.cfg init I am not sure if that could be built into the script, but it woudld certainly be for another bug. :) -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41508 --- Comment #3 from Alexander Wagner <alexander.wagner@desy.de> ---
We used to stop the koha-indexer and do a full index after, that will reset properly.
This is what my installer does as well. Most likely we even discussed the steps back when I added this. I was just wondering as your initial bug heads quite a bit towards "make it consistent" and it might not be too obvious that the index isn't cleared if you `bulkmarcimport -d`. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41508 --- Comment #4 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- (In reply to Alexander Wagner from comment #3)
We used to stop the koha-indexer and do a full index after, that will reset properly.
This is what my installer does as well. Most likely we even discussed the steps back when I added this.
I was just wondering as your initial bug heads quite a bit towards "make it consistent" and it might not be too obvious that the index isn't cleared if you `bulkmarcimport -d`.
I was just trying to keep the changes required as small as possible, as I probably won't be able to work on this anytime soon. I think handling the indexes could be a separate bug as we also need to check Zebra and/or Elasticsearch. Maybe a visible hint/reminder when the script is run would help for a start? -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41508 --- Comment #5 from Alexander Wagner <alexander.wagner@desy.de> ---
Maybe a visible hint/reminder when the script is run would help for a start?
Sounds good. It avoids that you assume some magic that doesn't happen. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org