nexus icon indicating copy to clipboard operation
nexus copied to clipboard

Studio distribution items don't have filenames

Open Dinika opened this issue 2 years ago • 0 comments

Distribution items in studios sometimes dont have a label or filename. For example, for this table in studios, the resource with @id = ""https://bbp.epfl.ch/neurosciencegraph/data/reconstructedcell/24de2dd7-53c3-48c1-bf24-cf2eaf3abf5f"" has the following distributions. Note the lack of name in the first object. In the second object there is no extension. Almost all resources in this table have a similar problem:

Ideally the backend should send us the correct extension based on encoding format so in the frontend we don't rely on the filename.

[
    {
        "@type": "DataDownload",
        "contentUrl": "http://microcircuits.epfl.ch/#/article/article_3_mph",
        "repository": {
            "@id": "http://microcircuits.epfl.ch/#/article/article_3_mph"
        }
    },
    {
        "@type": "DataDownload",
        "contentSize": {
            "unitCode": "bytes",
            "value": 560074
        },
        "contentUrl": "https://staging.nise.bbp.epfl.ch/nexus/v1/files/bbp/nmc/cbaa5bfe-897b-4c8c-b1c0-92a04d80fe34",
        "digest": {
            "algorithm": "SHA-256",
            "value": "46b296ea4ada645e3be3c18472c1bad45bba596fc2774861246a23ea0c41d897"
        },
        "encodingFormat": "text/plain; charset=UTF-8",
        "name": "file"
    }
]

Dinika avatar May 26 '23 09:05 Dinika