Bug #1516
RCP: 0.7.7, new corpus architecture
Status: | New | Start date: | 09/22/2015 | ||
---|---|---|---|---|---|
Priority: | Normal | Due date: | |||
Assignee: | - | % Done: | 80% |
||
Category: | Corpus | Spent time: | - | ||
Target version: | TXM 0.7.8 |
Description
Mail BP:
I already have a VOEUX corpus in TXM before upgrading to 0.7.7.
When TXM is upgraded to 0.7.7, I see two instances of the VOEUX corpus, one at the top of the list, and the second at the bottom (or near the bottom).
These two instances correspond to the previous version of VOEUX corpus : it is smaller than the one delivered with TXM 0.7.7 (T=61102 vs T=61162) and has no mention of date, author, etc. at the beginning of the Description.
These two instances look like two views of the same object : every modification on one is also applied on the other one. Except deletion : deleting the "bottom" view of VOEUX doesn't suppress the "top" view (but this top view "is not ready").
If one delete every view of VOEUX and then load again this corpus, one gets a warning, like "Le corpus voeux existe déjà".
Discussion¶
MD:- due to corpora architecture evolution in 0.7.8, some corpora directories have the same name in lower and uppercase.
- those corpora may have the same CQP name (in the registry file), this incoherence prevents to load the second corpus (the second corpus cannot be loaded at startup or session time).
Solution¶
Rustine 1¶
The rustine is to prevent loading corpus with the same name (lower or upper cased). The corpus less recent is not loaded and removed from the loaded corpus list (in the "$TXM/workspaces/default.xml" file).
Note: the files of the corpora not loaded are not removed from disk.
History
#1 Updated by Matthieu Decorde almost 8 years ago
- Description updated (diff)
- Category set to Corpus
#2 Updated by Matthieu Decorde almost 8 years ago
- Description updated (diff)
#3 Updated by Matthieu Decorde almost 8 years ago
- Description updated (diff)
#4 Updated by Matthieu Decorde almost 8 years ago
- Description updated (diff)
#5 Updated by Matthieu Decorde almost 8 years ago
- Description updated (diff)
- % Done changed from 0 to 70
#6 Updated by Serge Heiden over 7 years ago
- Description updated (diff)
- % Done changed from 70 to 50
#7 Updated by Serge Heiden over 7 years ago
- Subject changed from RCP: 0.7.7, Corpus VOEUX is duplicated to RCP: 0.7.7, new corpus architecture
- Description updated (diff)
#8 Updated by Matthieu Decorde about 6 years ago
- Description updated (diff)
- % Done changed from 50 to 80
ticket splited: #2241