metacatui icon indicating copy to clipboard operation
metacatui copied to clipboard

Some files missing name & info in data table for large datasets

Open robyngit opened this issue 7 months ago • 0 comments

Packages with over ~1000 files don't display properly in the datatable on dataset landing pages. Some files, seemingly at random, are listed with only the uuid and not the file name and file type, e.g.:

Image

The information for these objects exists in both solr and the eml, and it is not a permissions issue.

(When testing, I found that logging while trying to view these large data packages made my browser tab crash)

Example packages with this issue:

  • https://doi.org/10.18739/A22F7JS1B
  • https://drp.dataone.org/view/urn:uuid:5490c3be-9dae-44e0-9926-b87077d6bf15
  • https://drp.dataone.org/view/urn:uuid:32d91687-9efa-4906-a233-d56ed16b7062
  • https://drp.dataone.org/view/urn:uuid:37d34bf0-ac9c-49d9-8c06-3f4e66fba79f

To fix this, we should make use of the new batch fetching functionality in the DataPackage collection, see:

https://github.com/NCEAS/metacatui/blob/7bd3cebabdef35e84182b452c8d4204de6582c19/src/js/collections/DataPackage.js#L436-L456

It appears we use batch fetching in the editor but not the view mode of the data table.

robyngit avatar Apr 24 '25 18:04 robyngit