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

Term term entries older than current import deletes also unchanged terms

    XMLWordPrintable

Details

    • High
    • TBX Import: The setting "Term term entries older than current import" did also delete the terms which are contained unchanged in the TBX.

    Description

      problem

      The setting "Term term entries older than current import" does also delete the terms which are contained unchanged in the TBX.

      This is solved!

      What is still open is a test covering that. (Testdata locally available)

      → Test also with and without transacgrps

      reason

      The adding of the tbxUpdateAt / tbxCreatedAt fields in combination with the DB setting "NOT NULL DEFAULT 0000-00-00 00:00:00" was breaking the whole import stuff.

      Term which are already in DB and coming in again with the TBX are now recognized as modified (since "0000-00-00 00:00:00" != null). Therefore a UPDATE was performed, modifying no data in DB (since for the DB null equalds "0000-00-00 00:00:00", therefore the updateAt timestamp was not updated.

      The result is now, that all terms (expect the new ones) are deleted later on.

      Attachments

        Activity

          People

            tlauria Thomas Lauria
            tlauria Thomas Lauria
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: