Bug #1680
TBX: X.X, corpus export command doesn't include sub-corpus and partitions created during the current TXM session
Status: | Closed | Start date: | 02/17/2016 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 100% |
|
Category: | Commands | Spent time: | - | |
Target version: | TXM 0.8.0 |
Description
Currently, sub-corpora and partitions created during a TXM working session are not included into binary corpora exported during the session.
Diagnostic¶
The export command uses the 'import.xml' file to decide which sub-corpora and partitions are associated to the corpus to export.
The 'import.xml' file is used to persist sub-corpora and partitions information of corpora.
The 'import.xml' file is updated with sub-corpora and partitions created during a TXM working session only when quitting TXM -> this is why the export command cannot see them.
Solution A¶
Use a corpus source information related to the current session (if available - eg from the corpus view?) instead of the persistence data structure.
Solution B¶
Save sub-corpora and partitions corpus information in the 'import.xml' file when they are created.
Solution C¶
Save sub-corpora and partitions corpus information in the 'import.xml' file when the export command is called.
Solution D¶
Use another persistence model for sub-corpora and partitions corpus information (datastructure and workflow), and decide which of persistence or live data structure to use for export.
History
#1 Updated by Sebastien Jacquot over 4 years ago
- Target version changed from TXM 0.8.0a (split/restructuration) to TXM 0.8.0
#2 Updated by Matthieu Decorde almost 4 years ago
- % Done changed from 0 to 80
Solution D implemented
#3 Updated by Sebastien Jacquot about 3 years ago
- Status changed from New to Closed
- % Done changed from 80 to 100