0.8.0, when deleting a corpus the KR is not deleted
When a corpus is removed, the associated knowledge repository (KR) is not removed. If the corpus is re-imported, the old KR is used instead of a fresh new empty KR.
The Corpus<->KR relation life cycle is the following:
- a corpus is imported and a fresh empty KR is available
- a corpus is re-imported and a reused empty KR is available
- a corpus is updated and its KR is preserved
Solution
Catch the CQP “Corpus delete” event and remove the corpus KR from the KRs database.
In both TXM 0.8.0 and TXM 0.8.1beta, the KR is removed but changes are only visible after restarting TXM.
The corpus update process raises a “CQP corpus delete” event ->the KRs database must check if the corpus is being updated, if true the KR must not be deleted.
(from redmine: issue id 2819, created on 2020/05/14 by Matthieu Decorde)
- Changesets:
- Revision 2864 by Matthieu Decorde on 2020/05/29 12:16:40 +0200:
fix kr line decorators
fix kr removal when a corpus is deleted refs #2819
- Revision 2914 by Matthieu Decorde on 2020/06/19 15:35:13 +0200:
fix KR history refs #2819
add SaveAnnotations command refs #2860