Eurotermbank / Federated-Network-Toolkit-deployment

Other
2 stars 1 forks source link

Collection empty after update #79

Closed mariask2 closed 2 years ago

mariask2 commented 2 years ago
Screen Shot 2022-02-17 at 11 39 09

It says that the entry count is 28, but no terms are shown. No error message was given when the collection was last updated:

The following was returned: add_terms_responses: [{'updatedEntries': 2, 'addedNewEntries': 0, 'skippedAsDuplicates': 0, 'skippedAsCorrupted': 0, 'totalImportedEntries': 2}]

This happened for collection with id 1 från Isof

mariask2 commented 2 years ago

The corruption of the data seems to have happened when I uploaded more data. The error response above is from when I uploaded a small collection again.

I created a new collection and uploaded the same tbx again, and the same problem occurred again.

The collection is called: "A replica of the Faketerms collection that seems to have been corrupted" And I have given it Id 3 (the internal id is 42)

When uploading the tbx, I got the following response: add_terms_responses: [{'updatedEntries': 2, 'skippedAsCorrupted': 0, 'addedNewEntries': 26, 'totalImportedEntries': 28, 'skippedAsDuplicates': 0}]

So all seem to have been imported, and nothing was skipped as corrupted.

mariask2 commented 2 years ago

I think I've found the problem: non-ascii characters in the id. Perhaps you could add a check when pushing the tbx to make sure that the id only contains ascii characters (if that is required for things to work).

mariask2 commented 2 years ago

I added new terms to the collection "Faketerms third try" (id 44, Isof Id 4), and got the following response: add_terms_responses: [{'totalImportedEntries': 40, 'updatedEntries': 14, 'skippedAsDuplicates': 14, 'skippedAsCorrupted': 0, 'addedNewEntries': 26}]. However, the error occurs again, despite having removed non-asci id:s

mariask2 commented 2 years ago

I tried again, to create a new collection with the same tbx (still no id:s with non-ascii), and got the following response when uploading: (Isof id: 5, id, 45) add_terms_responses: [{'skippedAsDuplicates': 0, 'addedNewEntries': 54, 'skippedAsCorrupted': 0, 'updatedEntries': 0, 'totalImportedEntries': 54}]

However, it is still empty (with an entry count of 54)

empty and 54 added
makulatura commented 2 years ago

I believe this one is solved together with #88