Skip to content

Additional metadata attached to the endpoints for files. #91

@Bud-Macaulay

Description

@Bud-Macaulay

Documenting this even though it may be fixed in the new version already

Currently on the aiida-explorer, I am listing two types of files in the "raw view" that are collated differingly;

Raw Files:
comes from /repo/ and is completely indiscriminant of the file (just lists the paths to /repo/contents.)

Download By format:
comes from /download_formats/ and /download?download_format=type.

I am allowing the user to basically view (via streaming) and download both of these two types. This is usually fine, however some data comes as raw binary and there is no way of easily knowing file size before downloading.

It would be nice if we could attach metadata through the restapi (or atleast fetch some expectations of the files from somewhere). Although there may be a sound reason this is not done/it may be hard to implement.

Thing that would be good:

  1. Filesize
    • A user should know through the GUI how much they are planning on downloading, also it would be nice to have a frontend flag to not allow 'viewing' large files...
  2. Some information of how the data is stored in aiida?
    • A user should know through the UI if the file they are about to view is raw binary, so it would be nice to have a frontend flag to not allow 'viewing' binary files...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions