Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-1269

Enable deletion of older terms

    XMLWordPrintable

Details

    Description

      Background information

      It should be possible to delete all terms from a termCollection, that are not part of a TBX file any more.

      Implementation

      The following lines are added to filesystem-import.config and crossapi-import.config:

      ;Deletes all termEntries in all listed termCollections, that have a modification date older than the listed one.
      ;Since every entry that exists in a TBX gets a new updated date on TBX-import, even if it is not changed: Simply set this date to yesterday to delete all terms, that are not part of the current import
      ;The updated date is a date internal to translate5 and different from the modified date of the term, that is shown in the interface
      
      deleteEntriesModifiedOlderThan=2018-05-01

      The import plug-ins than will delete all terms, that have an updated date older than the one entered in the config. This deletion is run after the current import is finished, so the currently imported terms stay in the database.

      Please ensure, that termEntries are also deleted, if they do not contain any term any more.

      Implementation part 2

      We also need to add the following lines to the filesystem-import.config and ensure they work
      ;Deletes all termEntries in all listed termCollections, that have a modification date older than the the start of the current import.
      ;possible values: true or false
      deleteEntriesOlderThanCurrentImport=true

      Attachments

        Activity

          People

            aleksandar Aleksandar Mitrev
            marcmittag Marc Mittag [Administrator]
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: